Introduction
In the evolution of Multimodal Large Language Models (MLLMs), a persistent dichotomy has existed between understanding tasks (e.g., visual question answering) and generative tasks (e.g., text-to-image synthesis). While specialized models excel in their respective domains, unified architectures often suffer from "task interference," where optimizing for one capability degrades the other. UniToken introduces a novel auto-regressive framework that bridges this gap using a "dual-track" visual encoding strategy, achieving state-of-the-art performance across both modalities.
The Challenge of Unified Multimodal Models
Existing MLLMs typically fall into two categories: discrete-only models and decoupled models. Discrete-only models convert images into a sequence of "visual words" (tokens). While effective for generation, the quantization process often discards fine-grained semantic information, causing understanding performance to lag behind specialized models. Decoupled models use separate encoders for different tasks (e.g., CLIP for understanding and VQ-VAE for generation), which creates a "mode-switching" burden and limits the model's flexibility and scalability. UniToken addresses these limitations by asking whether a single, task-agnostic visual representation can serve both understanding and generation equally well.
The UniToken Architecture: Unified Dual Encoder
The core innovation of UniToken is the Unified Dual Encoder. Instead of forcing a choice between continuous or discrete representations, UniToken utilizes both simultaneously to leverage their respective strengths:
- Continuous Track: This track uses a SigLIP encoder to extract semantically rich features, which are then mapped to the LLM's embedding space via an MLP adapter. This track provides the high-level reasoning capabilities required for understanding.
- Discrete Track: This track utilizes a VQ-GAN (derived from the Chameleon project) to discretize the image into codebook IDs, providing the low-level details necessary for high-quality image reconstruction.
These two streams are concatenated into a single sequence: [BOI]{discrete_tokens}[SEP]{continuous_tokens}[EOI]. This format allows the LLM to "selectively assimilate" information, relying on continuous tokens for reasoning and discrete tokens for generation. To further enhance performance, the model employs resolution scaling (partitioning images into grids to handle up to 768x768 resolution) and performs end-to-end finetuning of the Vision Transformer (ViT) with a carefully regulated learning rate to prevent model collapse.
Training Strategy and Data Scaling
UniToken was trained in three stages using a massive dataset of approximately 20 million samples. The authors identified several key insights during this process:
- The 1:1 Golden Ratio: When scaling to 20 million data points, a 1:1 ratio between understanding and generation data is critical. While understanding data helps at smaller scales, an imbalance at large scales leads to a significant drop in image generation quality.
- Mitigating Task Interference: In discrete-only models, the understanding task tends to dominate optimization, which can cause generation capabilities to fail. The addition of the continuous track acts as a stabilizer, allowing both tasks to coexist without performance degradation.
- ViT Tuning: Unlike many MLLMs that keep the vision backbone frozen, UniToken finetunes the SigLIP ViT. A small, regulated learning rate ($1e^{-5}$) is essential to prevent the visual representation from collapsing.
Experimental Results
UniToken achieves impressive "all-rounder" status, often outperforming task-specific specialists in both domains:
- Multimodal Understanding: On the SEEDBench, UniToken scored 70.3, surpassing LLaVA-v1.6 (64.3) and Janus (63.7). In OCR-related tasks (OCRBench), it reached a score of 757, a massive leap over Chameleon (18) and Emu3 (687).
- Image Generation: On GenEval (a benchmark for text-to-image alignment), UniToken achieved a score of 0.63, outperforming DALL-E 2 (0.52) and competing closely with DALL-E 3 (0.67).
- Qualitative Performance: The model demonstrates a superior ability to follow complex prompts and render fine textures compared to other unified models like Janus-Pro.
Limitations and Future Work
Despite its success, UniToken faces certain hurdles. Like many LLM-based models, it can still hallucinate details in complex scenes. Additionally, the model sometimes struggles with specific spatial attributes and color attribution during generation, likely due to a lack of highly descriptive, diverse text prompts in the training set. Future work will focus on incorporating even more advanced architectural designs from understanding-only MLLMs to further push the boundaries of UniToken’s reasoning capabilities.
Summary updated