TL;DR
Unifying visual understanding and generation within a single autoregressive language model has long been hindered by an "objective conflict": generation requires low-level pixel details, while understanding demands high-level semantics. DualToken elegantly solves this by using a single vision transformer partitioned into dual vocabularies—a pixel codebook from shallow layers and a semantic codebook from deep layers. This simple hierarchical decoupling achieves state-of-the-art performance in both understanding and generation tasks with minimal computational overhead.
What Problem Does This Paper Address?
To build a truly unified vision-language model under the pure autoregressive (AR) paradigm, a model needs a visual tokenizer to convert images into discrete tokens (like words) and a detokenizer to translate them back into pixels.
However, existing approaches face a fundamental dilemma:
- Reconstruction-based tokenizers (like VQ-VAEs) excel at capturing low-level visual details for image generation but perform poorly on semantic understanding tasks.
- Contrastive learning encoders (like CLIP or SigLIP) capture rich, language-aligned semantics for understanding but throw away the fine-grained pixel details needed for generation.
When researchers try to force a single codebook to learn both objectives simultaneously (e.g., in models like VILA-U), the objectives conflict. The result is a compromise that degrades both: images generated suffer from severe blurriness and distortion, and zero-shot understanding accuracy drops significantly.
Methods
Instead of forcing a single codebook to do two fundamentally different jobs, DualToken introduces dual visual vocabularies within a single unified tokenizer architecture.
The authors' key insight stems from analyzing the internal representations of Vision Transformers (ViTs). By measuring inter-layer cosine similarity, they found that a ViT naturally segregates its workload: shallow layers focus on low-level perceptual details (color, texture), while deeper layers develop high-level semantic concepts.
DualToken exploits this inherent hierarchy through a decoupled training strategy:
- The Pixel Codebook: Extracted from the shallow layers (layers 1–6) and optimized using standard reconstruction losses (L2, LPIPS, and adversarial loss) to capture fine-grained details.
- The Semantic Codebook: Extracted from a deep layer (layer 26) and optimized using a semantic loss that constrains the features to match the original pretrained, text-aligned SigLIP state.
Both feature sets are discretized separately using Residual Vector Quantization (RVQ).
Integration into MLLMs
To feed these dual tokens into a Large Language Model (LLM) backbone without bloating the sequence length, DualToken projects both token types via an MLP and concatenates them along the embedding dimension. During generation, independent autoregressive visual heads (a pixel head and a semantic head) predict the next tokens simultaneously.
Datasets
- Tokenizer Pretraining: ImageNet-1K, CC12M, and a 50-million image subset of LAION-400M.
- Multimodal LLM Alignment & Training: A diverse mixture of datasets split across four stages, including DenseFusion-1M, InternVL-SA-1B, DocStruct4M, WebSight, JourneyDB, OmniEdit, and OBELICS.
- Evaluation Benchmarks:
- Tokenizer: ImageNet-1K (val) for zero-shot accuracy and reconstruction FID (rFID); Flickr8K for image-text retrieval.
- Understanding: MMBench, MME, SEED, VQAv2, MMVet, MathVista, POPE, OCRBench, and TextVQA.
- Generation: GenAI-Bench, MJHQ-30K, GenEval, and WISE.
Key Insights and Ideas
- Dual Tokens Synergy: A fascinating finding is that the two token types mutually benefit each other. Including pixel tokens actually improves semantic understanding benchmarks because the high-frequency details compensate for information lost during semantic quantization. Conversely, generating semantic tokens alongside pixel tokens acts as a guide, ensuring the generated images remain strictly aligned with complex text prompts.
- The Failure of Dual Encoders: Why not just plug in a separate MoVQGAN and a separate SigLIP encoder? The authors show that separate heterogeneous encoders yield highly divergent, disjoint feature spaces. This incompatibility forces the downstream LLM to learn two entirely separate visual languages. DualToken's single-backbone approach ensures the features share a largely overlapping representational space, making it much easier for the LLM to digest.
Key Results
- Tokenizer Quality: DualToken achieved a reconstruction score of 0.25 rFID and a 82.0% zero-shot accuracy on ImageNet-1K, matching or beating dedicated single-purpose models. It completely eliminated the blurriness and distortion seen in VILA-U.
- Downstream Understanding: When integrated with a Qwen-2.5-3B backbone, DualToken outperformed VILA-U by an average of 5.8 points across ten visual understanding benchmarks, even beating some continuous, understanding-only models.
- Downstream Generation: DualToken delivered a 13% improvement on GenAI-Bench and achieved an FID of 7.88 on the MJHQ-30K dataset, drastically outperforming the dual-encoder baseline (17.55 FID).
Limitations and Future Work
While DualToken effectively resolves the objective conflict, the authors note that its performance is still bounded by the underlying quantization mechanism. In preliminary experiments, replacing their standard RVQ setup with a more advanced quantizer—like UniTok’s Multi-Codebook Quantization (MCQ)—yielded immediate performance gains (boosting zero-shot accuracy to 82.2% and dropping rFID to 0.25).
Future work will likely focus on integrating these advanced quantization techniques directly into the hierarchical dual-vocabulary framework and scaling the architecture to larger LLM backbones.
Summary updated