DualToken: Towards Unifying Visual Understanding and Generation with Dual Visual Vocabularies

Wei Song, Yuran Wang, Zijia Song, Yadong Li, Zenan Zhou, Long Chen, Xu Jhua, Jiaqi Wang, Kaicheng Yu

TL;DR

DualToken is a novel framework that unifies visual understanding and generation within a single autoregressive model by using two distinct visual vocabularies: one for high-level semantics and one for low-level pixel details. By disentangling these conflicting objectives, the model achieves state-of-the-art performance in both reconstructing sharp, realistic images and performing complex multimodal reasoning tasks.

The Tug-of-War in Multimodal Models

In the world of Multimodal Large Language Models (MLLMs), there is a persistent "tug-of-war" between understanding and generation.

To understand an image (e.g., "What is the dog doing?"), a model needs high-level semantic tokens, typically learned via contrastive training like CLIP. However, these tokens are "lossy"—they discard fine-grained pixel details, making it nearly impossible to reconstruct a clear image from them.

Conversely, to generate an image, a model needs low-level pixel tokens (like those from a VQ-VAE) that capture every texture and color. But these tokens often lack the semantic "big picture" needed for complex reasoning.

When researchers try to force a single "codebook" (a vocabulary of visual features) to do both, the objectives conflict. The result is often a "jack of all trades, master of none": images come out blurry or distorted, and the model’s reasoning scores drop. DualToken aims to break this deadlock.

Overview of DualToken's approach, performance trade-offs, and reconstruction quality.

The DualToken Method: Hierarchical Decoupling

The authors propose a "hierarchical decoupling" strategy based on a key observation: in a Vision Transformer (ViT), shallow layers naturally focus on textures and colors, while deeper layers develop a sense of semantic meaning.

  1. Dual Visual Vocabularies: Instead of one codebook, DualToken uses two. A pixel codebook is derived from the shallow layers (supervised by reconstruction loss), and a semantic codebook is derived from the deep layers (supervised by semantic loss aligned with pretrained models like SigLIP).
  2. Unified Architecture: Unlike "dual-encoder" approaches that simply glue two different models together, DualToken uses a single, unified ViT backbone. This ensures the two feature spaces are compatible.
  3. Concatenated Tokens: When feeding visual information into the LLM, the pixel and semantic tokens are concatenated along the embedding dimension. This allows the LLM to "see" both the high-level concept and the fine-grained details at every spatial position simultaneously.
  4. Autoregressive Training: The model is trained to predict the next token in a sequence that includes text, semantic visual tokens, and pixel visual tokens.

Key Insights and Ideas

  • The "Aha" Moment on Hierarchy: The authors used UMAP visualizations to show that shallow layers cluster images by "look" (e.g., all red things together), while deep layers cluster by "identity" (e.g., all dogs together). Exploiting this natural progression is much more efficient than fighting it.
  • Synergy, Not Just Separation: A surprising finding was that the two token types actually help each other. Pixel tokens provide high-frequency details that improve OCR and hallucination detection in understanding tasks. Conversely, semantic tokens act as a "blueprint" during generation, ensuring the model doesn't lose the plot when drawing complex scenes.
  • Compatibility Matters: The paper demonstrates that a unified architecture (DualToken) outperforms a "Dual Encoder" (e.g., CLIP + VQ-VAE). This is because separate encoders create disjoint feature spaces that are harder for an LLM to bridge.

Key Results

DualToken was trained on a mix of datasets including ImageNet-1K, CC12M, and a subset of LAION-400M for tokenizer pretraining, followed by instruction tuning on datasets like DenseFusion-1M and JourneyDB.

Qualitative comparison showing DualToken's superior image reconstruction compared to VILA-U.
  • Image Quality: DualToken achieved a 0.25 rFID on ImageNet, significantly outperforming VILA-U (1.80 rFID). Qualitatively, this means the difference between a blurry, distorted mess and a sharp, realistic image.
  • Semantic Accuracy: It reached 82.0% zero-shot accuracy on ImageNet, nearly matching the performance of dedicated, non-generative vision encoders.
  • MLLM Performance: In downstream tasks, DualToken (3B) surpassed VILA-U by 5.8 points on average across ten understanding benchmarks and showed a 13% improvement on the GenAI-Bench for image generation.
  • Efficiency: Remarkably, DualToken achieved these results using only 10% of the pretraining data required by some of its competitors.

Limitations and Future Work

While the authors argue the overhead is minimal (~9%), adding a second visual head and larger projectors does increase the model's footprint compared to single-token systems. Furthermore, the study primarily focuses on models up to 7B parameters. Testing how this dual-vocabulary approach scales to "frontier" model sizes (70B+) remains an open question. Finally, the authors note that their method is orthogonal to improvements in Vector Quantization (VQ) techniques, suggesting that combining DualToken with even more advanced quantizers could push performance even further.

Summary updated

BibTeX
@inproceedings{song2026dualtoken,
  author = {Wei Song and Yuran Wang and Zijia Song and Yadong Li and Zenan Zhou and Long Chen and Xu Jhua and Jiaqi Wang and Kaicheng Yu},
  title = {{DualToken: Towards Unifying Visual Understanding and Generation with Dual Visual Vocabularies}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=BpgCOFefcE},
}
Figure