TL;DR
End-to-End Vision Tokenizer Tuning (ETT) breaks the traditional decoupled paradigm of multimodal autoregressive models by jointly optimizing the vision tokenizer alongside the Large Language Model (LLM). By feeding continuous codebook embeddings through a lightweight projector instead of using frozen discrete indices, ETT allows gradients to flow back into the tokenizer, unlocking 2–6% performance gains across both visual understanding and generation tasks while fully preserving image reconstruction quality.
What Problem Does This Paper Address?
Autoregressive multimodal models typically rely on a next-token prediction paradigm, treating images, videos, and text as a unified sequence of discrete tokens. However, the standard practice is to train a vision tokenizer (like VQ-VAE or VQGAN) entirely separate from the downstream LLM. This tokenizer is optimized purely for low-level, pixel-wise image reconstruction and is then frozen.
This decoupled approach introduces a severe representation bottleneck. Because the tokenizer is agnostic to high-level semantics, it often discards crucial task-specific information. For example, minor tokenization errors in an image containing text can lead to catastrophic failures in downstream optical character recognition (OCR) or text-to-image generation. Furthermore, passing only discrete token indices to the LLM blocks gradient propagation, preventing the tokenizer from adapting to the needs of the target tasks.
Methods
To resolve this misalignment, the authors introduce ETT, a framework that enables joint optimization of the vision tokenizer and the LLM.
The core technical shifts include:
- From Discrete Indices to Continuous Embeddings: Instead of passing hard discrete indices to the LLM, ETT extracts the continuous quantized visual embeddings ($z$) directly from the tokenizer's codebook.
- Differentiable LLM Bridge: A lightweight Multi-Layer Perceptron (MLP) projector with GeLU activation maps these visual embeddings to match the hidden dimension ($C$) of the LLM. This makes the entire architecture fully differentiable.
- Joint Objective Function: To ensure the tokenizer learns high-level semantics without losing its ability to generate crisp images, the model is optimized using a combined loss function: $$\mathcal{L} = \mathcal{L}_{cap} + \alpha \cdot \mathcal{L}_{vq}$$ Where $\mathcal{L}_{cap}$ is the standard cross-entropy captioning loss evaluated on text tokens, $\mathcal{L}_{vq}$ encompasses the standard VQ reconstruction losses (pixel reconstruction, quantization, perceptual LPIPS, adversarial PatchGAN, and entropy losses), and $\alpha$ balances the two.
Training Recipe
The training pipeline consists of three sequential stages:
- Stage 1: Alignment Learning: The LLM and tokenizer are frozen; only the visual projector layer is trained using an image-to-text caption loss to bridge the modalities.
- Stage 2: Semantic Learning: The critical stage where the LLM, projector, and vision tokenizer are all unfrozen and jointly optimized using the combined loss function.
- Stage 3: Post-Training: The tokenizer is frozen again, and two specialist models—ETT-Chat (for multimodal understanding) and ETT-Gen (for text-to-image generation)—are fine-tuned on instruction data.
Datasets
The authors utilized a variety of large-scale, publicly available datasets for training and evaluation:
- Training Data:
- SOL-recap: A curated 32M image-text pair dataset sourced from SA-1B, OpenImages, and LAION, recaptioned using a high-quality captioning engine.
- Instruction/Chat Data: LLaVA-OneVision (3.5M) and Infinity-MM (31.8M).
- Generation Data: 14M AI-generated samples (via the Flux model) and 16M high-aesthetics web images.
- Evaluation Benchmarks:
- Understanding: MMBench, SEED-Bench-Img, MMVet, MME, POPE, GQA, ScienceQA-Img, and TextVQA.
- Generation: GenEval and T2I-CompBench.
Key Insights and Ideas
- The Power of Differentiability: Moving away from discrete index lookups to continuous codebook embeddings is the enabling factor for end-to-end training. It acts as a semantic conduit, allowing the LLM's rich language understanding to guide the visual representation learning of the tokenizer.
- The Reconstruction Trade-off: Tuning a tokenizer only on downstream understanding tasks causes its image reconstruction capabilities to collapse (e.g., rFID on ImageNet degrades from 1.033 to 45.701). Including the auxiliary VQ reconstruction loss with a small weight ($\alpha = 0.25$) acts as a regularizer, maintaining excellent reconstruction fidelity (rFID of 1.648) while maximizing semantic gains.
- Semantic Injection Improves Low-Level Details: Interestingly, injecting high-level semantics actually helps the tokenizer preserve and reconstruct fine structural details, such as text rendering within images, which purely pixel-trained tokenizers often smudge.
Key Results
Despite using a compact base model (Qwen2.5-1.5B), ETT consistently outperformed larger discrete vision-language models (VLMs) trained on substantially more data.
Multimodal Understanding
Compared to frozen tokenizer baselines, ETT achieved significant improvements across the board:
- GQA: Improved by 3.9% (from 50.9% to 54.8%).
- TextVQA: Boosted by 6.8% (from 40.1% to 46.9%), showcasing ETT's superior ability to handle textual details in images.
- ScienceQA-Img: Reached 91.7%, outperforming Emu3 (8B parameters) which scored 89.2%.
Visual Generation
On the GenEval benchmark, ETT achieved an overall score of 0.63, outperforming advanced continuous diffusion models like SDXL (0.55) and matching or exceeding larger discrete generalist models like Janus and Chameleon.
Limitations and Future Work
While ETT demonstrates a highly effective framework, the authors point out a few limitations:
- Scale Constraints: The current experiments were conducted on relatively small model architectures (1.5B LLM base) and data scales; expanding both could yield even stronger representations.
- Pre-existing Tokenizer Reliance: ETT currently fine-tunes an existing, pre-trained tokenizer rather than initializing and training a unified tokenizer completely from scratch.
- Modality Limitations: The current implementation is strictly limited to image and text. The authors note that extending this end-to-end tuning paradigm to video and audio modalities is a promising and necessary next step for true omni-spatial foundation models.
Summary updated