OpenOneRec commited on
Commit
bbb13a5
Β·
verified Β·
1 Parent(s): 3818b7e

Update README model card (Kelix technique report)

Browse files
Files changed (1) hide show
  1. README.md +73 -41
README.md CHANGED
@@ -3,95 +3,127 @@ language:
3
  - en
4
  library_name: "muse"
5
  tags:
 
 
 
6
  - text-to-image
7
  - image-generation
8
  - diffusion
9
  - diffusion-transformer
10
  - DiT
11
  - flow-matching
12
- - unified-multimodal
13
- - discrete-token
14
- - instruction-following
15
  - kelix
16
  - sft
17
- base_model: "OpenOneRec/Kelix-DiT"
18
- pipeline_tag: text-to-image
19
- arxiv: "https://arxiv.org/pdf/2602.09843"
20
  ---
21
 
22
  # Kelix-SFT
23
 
24
- **Kelix-SFT** is the **supervised-fine-tuning (SFT) stage** checkpoint of the diffusion-based image de-tokenizer of **Kelix**, a fully discrete autoregressive unified multimodal model proposed by the OneRec Team. Built on top of [`OpenOneRec/Kelix-DiT`](https://huggingface.co/OpenOneRec/Kelix-DiT), it is fine-tuned on high-quality, rejection-sampled text-to-image data to improve **instruction-following** and **fine-grained control** while still rendering **1024Γ—1024** images.
25
 
26
- > πŸ“„ **Technical report**: <https://arxiv.org/pdf/2602.09843>
 
 
27
 
28
- ## Background
29
 
30
- Most vision–language models (VLMs) rely on a hybrid interface β€” discrete text tokens paired with continuous ViT features β€” and are biased toward understanding. Fully autoregressive unified models that use **discrete** visual tokens, on the other hand, have historically suffered from an information bottleneck: a single discrete code carries far less information than the continuous embedding it replaces, which degrades multimodal understanding (especially on text-rich tasks such as OCRBench).
31
 
32
- Kelix addresses this with a **multi-token vision tokenizer** (Kelix-Tok) that decomposes each patch embedding into `N` parallel discrete codes, expanding the coding capacity exponentially while keeping the LLM context length unchanged via sum pooling on the encoder side. The unified LLM (Qwen3-8B) is trained with a **Next-Block Prediction (NBP)** paradigm, and a diffusion-based **image de-tokenizer (Kelix-DiT)** turns the LLM's hidden states into high-resolution images β€” forming a modular *Tokenizer β†’ LLM β†’ Detokenizer* pipeline that unifies understanding and generation under a single autoregressive objective.
 
 
 
 
 
 
33
 
34
  Kelix achieves state-of-the-art results among comparable-scale unified models on both understanding and generation benchmarks; notably, it reaches **86.7 on OCRBench**, matching continuous-feature VLMs and surpassing the previous best discrete model by **+23%**.
35
 
36
- ## Model Overview
 
 
 
 
 
 
 
37
 
38
- | Item | Value |
39
- |---|---|
40
- | Role | Diffusion-based image de-tokenizer (SFT stage) |
41
- | Base architecture | SANA-DiT (customized), fine-tuned from `OpenOneRec/Kelix-DiT` |
42
- | Training objective | Flow-matching |
43
- | Latent VAE | DC-AE-F32C32 (32Γ— spatial downsampling β†’ 32Γ—32 latent) |
44
- | Condition | Last hidden states from the Kelix LLM (between vision start/end tokens) |
45
- | Output resolution | **1024 Γ— 1024** (strictly constrained) |
46
- | Training stage | **SFT** (Stage 2 of 2) |
47
 
48
  ## Training (SFT Stage)
49
 
50
- This checkpoint corresponds to the **SFT Stage** of Kelix-DiT, building directly on the pretraining-stage checkpoint:
51
 
 
 
 
 
 
 
52
  - **Data**: high-quality text-to-image data filtered via **rejection sampling** to remove low-quality pairs and mitigate hallucinations.
53
  - **Fine-grained control**: curated to cover key control dimensions β€” attribute control (color, size), subject control (quantity, type), scene generation (indoor/outdoor, time of day), artistic style (oil painting, sketch), and perspective (top-down, close-up).
54
  - **Target image**: strictly constrained to **1024Γ—1024**.
55
  - **Optimization**: all DiT parameters are updated; the Kelix LLM, DC-AE encoder, and DC-AE decoder are frozen.
56
 
57
- This stage significantly improves the model's adherence to diverse and precise textual instructions, enabling high-fidelity generation that strictly complies with complex prompts.
58
 
59
  ## Usage
60
 
61
- Kelix-SFT is designed to be driven by the hidden states of the Kelix unified LLM. A typical generation pipeline is:
 
 
 
 
 
62
 
63
- 1. Feed a text prompt (and optional images) into the **Kelix LLM**, which autoregressively produces last hidden states `{h_*}` for the image blocks.
64
- 2. Use `{h_*}` as the semantic condition (y-embedder input) for Kelix-SFT.
65
- 3. Run flow-matching denoising in the DC-AE latent space (32Γ—32) and decode with DC-AE to obtain a 1024Γ—1024 image.
 
66
 
67
- > ⚠️ This checkpoint is a **component** of the Kelix pipeline, not a standalone text-to-image model. To generate images end-to-end you also need the Kelix unified LLM and the frozen DC-AE-F32C32 VAE. For broader scenario generalization, see the pretraining-stage checkpoint [`OpenOneRec/Kelix-DiT`](https://huggingface.co/OpenOneRec/Kelix-DiT).
68
 
69
  ## Key Results
70
 
71
- Kelix (8B, with the SFT-stage de-tokenizer) image-generation results:
 
 
72
 
73
- | Benchmark | Score |
74
- |---|---|
75
- | GenEval (Overall) | **87.6** |
76
- | WISE (Overall) | **57.0** |
77
- | DPG-Bench (Overall) | **85.5** |
 
 
 
 
78
 
79
  Highlights (see the technical report for full tables):
80
- - GenEval **87.6** β€” SOTA among discrete-tokenization unified models, **+0.6** over the 27B Qwen-Image.
81
- - WISE **57.0** β€” 2nd only to Nextflow (7B, 59.0), beating all continuous-tokenization unified models and larger dedicated T2I models (e.g., FLUX.1-dev 12B, 50.0).
82
- - DPG-Bench **85.5** β€” competitive with the SOTA X-Omni (7B, 87.7) without using reinforcement learning.
 
 
83
 
84
  ## Citation
85
 
 
 
86
  ```bibtex
87
- @techreport{kelix2026,
88
  title = {Kelix Technique Report: Closing the Understanding Gap of Discrete Tokens in Unified Multimodal Models},
89
- author = {OneRec Team},
 
90
  year = {2026},
91
- url = {https://arxiv.org/pdf/2602.09843}
92
  }
93
  ```
94
 
95
  ## License
96
 
97
- Please contact the OneRec Team for the license of the Kelix series. The base SANA-DiT and DC-AE components are subject to their respective original licenses.
 
3
  - en
4
  library_name: "muse"
5
  tags:
6
+ - unified-multimodal
7
+ - discrete-token
8
+ - image-understanding
9
  - text-to-image
10
  - image-generation
11
  - diffusion
12
  - diffusion-transformer
13
  - DiT
14
  - flow-matching
15
+ - vision-language-model
16
+ - VLM
17
+ - next-block-prediction
18
  - kelix
19
  - sft
20
+ base_model: "Qwen/Qwen3-8B"
21
+ pipeline_tag: any-to-any
 
22
  ---
23
 
24
  # Kelix-SFT
25
 
26
+ [Paper](https://arxiv.org/pdf/2602.09843) | [Citation](#citation)
27
 
28
+ <p align="center">
29
+ <img src="assert/fig3.png" alt="Kelix training pipeline: Kelix-Tok, Unified LLM, and Image DiT" width="90%">
30
+ </p>
31
 
32
+ <p align="center"><b>Figure 1:</b> The auto-regressive training workflow of Kelix, including the Kelix Tokenizer, the Unified LLM, and the Image DiT de-tokenizer.</p>
33
 
34
+ ## Introduction
35
 
36
+ **Kelix-SFT** is the **complete end-to-end release** of **Kelix** at the supervised-fine-tuning (SFT) stage β€” a fully discrete autoregressive unified multimodal model. This release bundles **all three components** of the Kelix pipeline:
37
+
38
+ 1. **Kelix-Tok** β€” the multi-token discrete vision tokenizer (NaViT encoder + multi-token VQ codebooks),
39
+ 2. **Kelix-LLM** β€” the unified Qwen3-8B backbone trained with Next-Block Prediction (NBP), with the vocabulary expanded by 65,536 visual entries,
40
+ 3. **Kelix-DiT (SFT)** β€” the SFT-stage diffusion-based image de-tokenizer, fine-tuned from [`OpenOneRec/Kelix-DiT`](https://huggingface.co/OpenOneRec/Kelix-DiT).
41
+
42
+ Together they form a modular *Tokenizer β†’ LLM β†’ Detokenizer* system that unifies **multimodal understanding** and **image generation** under a single autoregressive objective. Use this repo if you want the full Kelix pipeline for both understanding and generation; use [`OpenOneRec/Kelix-DiT`](https://huggingface.co/OpenOneRec/Kelix-DiT) if you only need the pretraining-stage image de-tokenizer component.
43
 
44
  Kelix achieves state-of-the-art results among comparable-scale unified models on both understanding and generation benchmarks; notably, it reaches **86.7 on OCRBench**, matching continuous-feature VLMs and surpassing the previous best discrete model by **+23%**.
45
 
46
+ ## What's in this release
47
+
48
+ | Component | Description | Init / Base |
49
+ |---|---|---|
50
+ | **Kelix-Tok** | NaViT-style vision encoder + multi-token VQ (`N=8` independent sub-codebooks, total size `S=65,536`, sum-pooled on the encoder side). Encodes images into discrete visual codes aligned with the LLM text space. | NaViT initialized from Keye-VL 1.5; codebooks K-means initialized, trained with SimVQ |
51
+ | **Kelix-LLM** | Unified autoregressive backbone with Block Encoder / Block Decoder and a Next-Block Prediction (NBP) objective (text block size 2, visual block size `N+1=9`). | Qwen3-8B, vocabulary expanded by 65,536 visual entries |
52
+ | **Kelix-DiT (SFT)** | SFT-stage diffusion-based image de-tokenizer (flow-matching, SANA-DiT based), conditioned on the LLM's last hidden states. | Fine-tuned from `OpenOneRec/Kelix-DiT` |
53
+ | *(frozen, not included)* | DC-AE-F32C32 latent VAE (32Γ— spatial downsampling β†’ 32Γ—32 latent) | Used as-is from the original DC-AE release |
54
 
55
+ > ⚠️ The **DC-AE-F32C32** VAE used to map pixels ↔ latents for Kelix-DiT is **frozen and not retrained**, so it is not duplicated in this release. Please load it from its original repo when running the image-generation path.
 
 
 
 
 
 
 
 
56
 
57
  ## Training (SFT Stage)
58
 
59
+ This release corresponds to the **Stage 4: Supervised Fine-Tuning** of the Kelix-LLM pipeline and the **SFT Stage** of the Kelix-DiT pipeline, building directly on the annealed Stage-3 checkpoints:
60
 
61
+ **Kelix-LLM (Stage 4 β€” SFT):**
62
+ - **Data**: replayed high-quality Stage-3 data, task-specific chain-of-thought (CoT) data, targeted image-generation data (attribute / subject / scene / style / perspective control), and task-specific enhancement data (complex OCR, math reasoning, STEM).
63
+ - **Filtering**: rejection sampling is retained to filter noisy samples and mitigate hallucinations.
64
+ - **Objective**: preserves the unified multimodal capability while boosting task-specific performance, keeping understanding and generation in balance.
65
+
66
+ **Kelix-DiT (SFT Stage):**
67
  - **Data**: high-quality text-to-image data filtered via **rejection sampling** to remove low-quality pairs and mitigate hallucinations.
68
  - **Fine-grained control**: curated to cover key control dimensions β€” attribute control (color, size), subject control (quantity, type), scene generation (indoor/outdoor, time of day), artistic style (oil painting, sketch), and perspective (top-down, close-up).
69
  - **Target image**: strictly constrained to **1024Γ—1024**.
70
  - **Optimization**: all DiT parameters are updated; the Kelix LLM, DC-AE encoder, and DC-AE decoder are frozen.
71
 
72
+ Together, these significantly improve the model's adherence to diverse and precise textual instructions, enabling high-fidelity generation that strictly complies with complex prompts while maintaining strong multimodal understanding.
73
 
74
  ## Usage
75
 
76
+ This release is the full Kelix pipeline and can be used for **both understanding and generation** end-to-end (the only external dependency is the frozen DC-AE-F32C32 VAE for the generation path).
77
+
78
+ **Image understanding (VQA / OCR / reasoning):**
79
+ 1. Encode the input image(s) with **Kelix-Tok** into `N`-way discrete visual codes, sum-pooled into a single composite token per patch on the encoder side.
80
+ 2. Feed the visual codes + text tokens into **Kelix-LLM** (Block Encoder β†’ NBP backbone β†’ Block Decoder).
81
+ 3. Decode the predicted text tokens via the standard text tokenizer.
82
 
83
+ **Image generation (text-to-image, 1024Γ—1024):**
84
+ 1. Feed a text prompt (and optional images) into **Kelix-LLM**, which autoregressively produces last hidden states `{h_*}` for the image blocks.
85
+ 2. Use `{h_*}` as the semantic condition (y-embedder input) for **Kelix-DiT (SFT)**.
86
+ 3. Run flow-matching denoising in the DC-AE latent space (32Γ—32) and decode with the frozen DC-AE to obtain a 1024Γ—1024 image.
87
 
88
+ > πŸ’‘ For broad-scenario generalization on the generation side, the pretraining-stage de-tokenizer [`OpenOneRec/Kelix-DiT`](https://huggingface.co/OpenOneRec/Kelix-DiT) can be swapped in for Kelix-DiT (SFT); Kelix-Tok and Kelix-LLM in this release are compatible with both.
89
 
90
  ## Key Results
91
 
92
+ Kelix (8B) results with this release:
93
+
94
+ **Image understanding**
95
 
96
+ | Benchmark | SEED-Bench | RealWorldQA | MMBench-EN | AI2D | MMMU | MathVista | ChartQA | TextVQA | OCRBench |
97
+ |---|---|---|---|---|---|---|---|---|---|
98
+ | Score | 76.0 | 72.1 | 80.2 | 82.4 | 54.1 | 76.5 | 83.0 | 81.4 | **86.7** |
99
+
100
+ **Image generation**
101
+
102
+ | Benchmark | GenEval (Overall) | WISE (Overall) | DPG-Bench (Overall) |
103
+ |---|---|---|---|
104
+ | Score | **87.6** | **57.0** | **85.5** |
105
 
106
  Highlights (see the technical report for full tables):
107
+ - **OCRBench 86.7** β€” matching Qwen2.5-VL-7B (86.4), **+23%** over the previous best discrete unified model X-Omni (70.4). First discrete-token unified model to close the gap with continuous-feature VLMs on text-rich tasks.
108
+ - **MathVista 76.5** β€” surpasses the 14B Bagel (73.1) and the 30B Manzano (73.3) despite a much smaller parameter count.
109
+ - **GenEval 87.6** β€” SOTA among discrete-tokenization unified models, **+0.6** over the 27B Qwen-Image.
110
+ - **WISE 57.0** β€” 2nd only to Nextflow (7B, 59.0), beating all continuous-tokenization unified models and larger dedicated T2I models (e.g., FLUX.1-dev 12B, 50.0).
111
+ - **DPG-Bench 85.5** β€” competitive with the SOTA X-Omni (7B, 87.7) **without** using reinforcement learning.
112
 
113
  ## Citation
114
 
115
+ If you find Kelix useful, please cite our technical report.
116
+
117
  ```bibtex
118
+ @article{kelix2026,
119
  title = {Kelix Technique Report: Closing the Understanding Gap of Discrete Tokens in Unified Multimodal Models},
120
+ author = {Kuaishou Technology},
121
+ journal = {arXiv preprint arXiv:2602.09843},
122
  year = {2026},
123
+ url = {https://arxiv.org/abs/2602.09843}
124
  }
125
  ```
126
 
127
  ## License
128
 
129
+ Please contact the OneRec Team for the license of the Kelix series. The base components (Qwen3-8B, SANA-DiT, DC-AE, Keye-VL / NaViT) are subject to their respective original licenses.