The unification of understanding and generation within a single multi-modal large model (MLLM) remains one significant challenge, largely due to the dichotomy between continuous and discrete visual tokenizations. Continuous tokenizer (CT) achieves strong performance by bridging multiple independently-trained understanding modules and generation modules, but suffers from complex multi-stage pipelines and substantial engineering overhead. Conversely, discrete tokenizers (DT) offer a conceptually elegant idea by quantizing each image into a primitive, but inevitably leading to information loss and performance degradation. To resolve this tension, we question the binary choice between CT and DT, inspired by the wave-particle duality of light, and propose the Continuous-Discrete Dualistic Visual Tokenizer (CDD-VT). We treat visual data as a flexible composition of image primitives derived from quantized codebooks, with the crucial insight that the primitive number assigned to each visual sample is adaptively determined according to its complexity: simple instances use a few primitives, emulating discrete tokenization, while complex instances use many, approximating continuous tokenization. Two core components are designed: Diverse Quantitative Primitives, which encourage primitives orthogonality to better populate information space, and Dynamic Primitive Allocator, which assesses sample complexity to determine the optimal set of primitives. Extensive experiments on reconstruction, retrieval and classification show that CDD-VT achieves superior performance over to specialized CT and DT, effectively getting strong result within a concise and scalable MLLM.
Figures & tables
Figure 1: Tokenization Comparisons. Continuous Tokenizers (CT) : strong performance, but one complex, multi-stage workflow. Discrete Tokenizers (DT) : a concise-unified workflow, but poor results. CDD-VT as continuous-discrete dualistic quantization, gets remarkable results in elegant unity of understanding & generation.
Figure 2: Framework Overview. Our continuous–discrete dualistic visual tokenizer (CDD-VT) consists of an image encoder, a text encoder, an image decoder, and two core components: Diverse Quantitative Primitives (DQP) and Dynamic Primitive Allocator (DPA). DQP encourages primitives orthogonality to better populate information space, while DPA assesses sample complexity to determine the optimal primitive set for each patch. For understanding, we calculate cosine similarity between text embeddings and quantified image embeddings. For generation, we feed text through the pipeline of encoder, LLM, and vision decoder.
Method
Data
#Tokens
Res.
Codebook
Accuracy
rFID ↓
PSNR ↑
LPIPS
Size
-VGG ↓
Continuous Tokenizer (CT)
EVA02-B/16
Merged-2B
/
224
/
74.7
/
/
/
CLIP-L/14
WIT400M
/
224
/
75.5
/
/
/
MetaCLIP-L/14
MetaCLIP400M
/
224
/
76.2
/
/
/
Discrete Tokenizer (DT)
Table 1: Image Reconstruction and Zero-Shot Image Classification on ImageNet 50K Validation Set. † indicates model using CLIP pre-trained weights for initialization. ∗ denotes our reproduction.
Method
Data
Codebook
MS-COCO 2017
ImageNet-1k
Size
rFID ↓
PSNR ↑
SSIM ↑
rFID ↓
PSNR ↑
SSIM ↑
LlamaGen ‡
70M
16384
8.40
20.28
0.55
2.47
20.65
0.54
Show-o
35M
8192
9.26
20.90
0.59
3.50
21.34
0.59
Cosmos
–
64000
11.97
19.22
0.48
4.57
19.93
0.49
Open-MAGVIT2-I-PT
100M
262144
6.76
22.31
0.65
1.67
22.70
0.64
IBQ
100M
262144
6.79
22.28
0.65
1.53
22.69
0.64
Table 2: Zero-Shot Image Reconstruction . † means initialization from CLIP pretrained weights. ‡ means LlamaGen loads weights trained on ImageNet while other weights are trained from scratch, i.e. , MS-COCO, ImageNet-1k are excluded from training data. ∗ is our reproduction. All methods are trained with 256 tokens and a downsampling ratio of 16.
Figure 3: Comparisons of Image Reconstruction between UniTok ( Ma et al., 2025b ) , QLIP ( Zhao et al., 2025 ) , TokenFlow ( Qu et al., 2025 ) and our CDD-VT. Here, FID and PSNR are evaluated on ImageNet 50k validation. CDD-VT shows superior detail preservation and perceptual fidelity over the competitors, e.g. , text on the map (Row 2) and blackboard (Row 1) is notably clearer and more faithful to inputs. Additional results can be found in Appendix .
Method
Res.
Data
Image to Text
Text To Image
Flickr30k
MSCOCO
Flickr30k
MSCOCO
R@1
R@5
R@10
R@1
R@5
R@10
R@1
R@5
R@10
R@1
R@5
R@10
Continuous Tokenizer (CT)
EVA02-B/16
224
Merged-2B
87.9
97.8
99.2
60.0
82.7
89.1
73.9
91.1
94.7
42.2
67.5
77.1
CLIP-L/14
224
WIT400M
86.4
97.3
99.4
57.1
80.1
87.2
67.9
88.9
93.3
35.4
60.4
71.0
Discrete Tokenizer (DT)
Table 3: Results on Zero-Shot Image-Text Retrieval . † indicates model using pretrained CLIP weights for initialization. ∗ denotes our reproduction. Reuslts show that random initialized CDD-VT out performs UniTok and even comparable to CLIP initialized QLIP.
Figure 7
Method
DPA
Accuracy
rFID ↓
PSNR ↑
SSIM ↑
Top- K
Accuracy
rFID ↓
PSNR ↑
SSIM ↑
Top-1
✕
65.8
0.41
24.17
0.69
Top-500
65.5
0.94
23.74
0.70
Top-10
✕
63.9
0.27
26.31
0.78
Top-1000
66.5
0.37
23.93
0.71
CDD-VT
✓
66.5
0.37
23.93
0.71
full
64.7
0.44
24.23
0.71
Table 5: Left: DPA Effect on ImageNet 50K validation set. Right: Top- K selection for the allocator A . All methods are trained on DC‑800M, with 256 tokens and a downsampling ratio of 16.
Figure 5: DPA Effectiveness. The Top- K baseline (here K =1) assigns the fixed number of primitives to each patch, resulting in a uniform grid overlay. CDD-VT equipped with DPA produces an adaptive heatmap, focusing more primitives on areas with complex information. Color bars denote primitive count.