Abstract
The differing representation spaces required for visual understanding and generation pose a challenge in unifying them within the autoregressive paradigm of large language models. A vision tokenizer trained for reconstruction excels at capturing low-level perceptual details, making it well-suited for visual generation but lacking high-level semantic representations for understanding tasks. Conversely, a vision encoder trained via contrastive learning aligns well with language but struggles to decode back into the pixel space for generation tasks. To bridge this gap, we propose DualToken, a method that unifies representations for both understanding and generation within a single tokenizer. However, directly integrating reconstruction and semantic objectives in a single tokenizer creates conflicts, leading to degraded performance in both reconstruction quality and semantic performance. Instead of forcing a single codebook to handle both semantic and perceptual information, DualToken disentangles them by introducing separate codebooks for high and low-level features, effectively transforming their inherent conflict into a synergistic relationship. As a result, DualToken achieves state-of-the-art performance in both reconstruction and semantic tasks while demonstrating remarkable effectiveness in downstream MLLM understanding and generation tasks. Notably, we also show that DualToken, as a unified tokenizer, surpasses the naive combination of two distinct types vision encoders, providing superior performance within a unified MLLM.
Introduction: The Representation Conflict
In Multimodal Large Language Models (MLLMs), a fundamental tension exists between visual understanding and generation. Understanding tasks (e.g., classification, reasoning) require high-level semantic abstractions that discard fine-grained "noise." In contrast, generation tasks (e.g., image reconstruction) demand the preservation of every low-level perceptual detail. Traditional autoregressive models often struggle to bridge this gap; optimizing for one typically degrades the other, leading to a "jack of all trades, master of none" scenario.
Methodology: Decoupling Objectives via Dual Vocabularies
DualToken addresses this conflict by moving away from a single, unified codebook. Instead, it leverages the hierarchical structure of Vision Transformers (ViTs) to disentangle semantic and perceptual information.
The approach employs three key strategies:
- Hierarchical Decoupling: A single vision tower (SigLIP-SO400M) is used, but different layers are assigned specific tasks. Shallow layers (1-6) are supervised by a reconstruction loss to capture textures, while deep layers (layer 26 and the pooling head) are supervised by a semantic loss to maintain linguistic alignment.
- Dual Visual Vocabularies: Features from these distinct layers are discretized into two separate codebooks: a Perceptual (Low-Level) Vocabulary and a Semantic (High-Level) Vocabulary.
- Residual Vector Quantization (RVQ): RVQ is used to stack codes at each visual position, creating a "depth" of information that handles complex visual data.
These dual tokens are concatenated and fed into a Large Language Model (Qwen-2.5-3B), which uses independent visual heads to predict next-pixel and semantic tokens autoregressively.
Key Results: Synergy Over Conflict
DualToken demonstrates that the conflict between semantics and reconstruction is not inevitable. By applying objectives hierarchically, the semantic objective actually enhances the reconstruction performance of shallow layers.
Quantitative and Qualitative Performance
- Superior Reconstruction: DualToken achieves a reconstruction FID (rFID) of 0.54, significantly outperforming VILA-U (1.80) and specialized reconstruction models like MoVQGAN (1.12). Qualitatively, this results in much sharper reconstructions, particularly for fine details like facial features and text.
- Strong Semantics: In zero-shot ImageNet classification, it reaches 81.6% accuracy, nearly matching the original continuous SigLIP (82.1%) and far exceeding VILA-U (73.3%).
- MLLM Benchmarks: When integrated into a 3B parameter model, DualToken outperforms larger unified models like Emu3 and Chameleon, matching specialized understanding models on benchmarks like POPE (86.0) and MMBench (70.9).
Conclusion
DualToken represents a significant step toward unifying visual understanding and generation. By decoupling conflicting objectives into dual vocabularies, it achieves state-of-the-art performance in both domains. This paradigm shift suggests that "understanding" models can benefit from knowing about fine-grained textures, and "generation" models can be improved by high-level semantic guidance.
Summary updated