End-to-End Vision Tokenizer Tuning

Wenxuan Wang, Fan Zhang, Yufeng Cui, Haiwen Diao, Zhuoyan Luo, Huchuan Lu, Jing Liu, Xinlong Wang

Abstract

Traditional autoregressive multimodal models treat vision tokenizers as static components, training them for image reconstruction and freezing them during large language model (LLM) alignment. This decoupled approach creates a representation bottleneck where the tokenizer may prioritize low-level pixel details over the high-level semantic features required for complex reasoning. We present End-to-End Vision Tokenizer Tuning (ETT), a framework that jointly optimizes the tokenizer and the LLM. By utilizing continuous codebook embeddings and a multi-stage training objective, ETT achieves a 2-6% performance improvement across understanding and generation tasks, outperforming significantly larger discrete models.

Introduction

In the current landscape of multimodal AI, models like Emu3 and Chameleon rely on turning images into discrete "visual words" or tokens. This process typically involves a two-step pipeline: first, a tokenizer is trained to compress and reconstruct images; second, the tokenizer is frozen, and its discrete output indices are used to train an LLM.

However, this decoupling assumes that a tokenizer optimized for reconstruction is inherently optimal for semantic understanding. In practice, this creates a "representation bottleneck." If a tokenizer fails to capture a specific detail—such as small text or subtle logical cues—during its initial training, the LLM can never recover that information. End-to-End Vision Tokenizer Tuning (ETT) addresses this misalignment by making the tokenizer "aware" of downstream tasks through joint optimization.

The ETT Framework

From Indices to Embeddings

The primary technical hurdle in end-to-end tuning is the non-differentiable nature of discrete indices. ETT overcomes this by passing continuous codebook embeddings to the LLM instead of integer indices. This shift allows gradients to flow back from the LLM's language objective into the vision tokenizer's encoder.

The Projector Bridge

To bridge the gap between the tokenizer's embedding space and the LLM's hidden dimensions, ETT employs a lightweight multilayer perceptron (MLP) with GeLU activation. This projector ensures that the visual features are correctly aligned with the language model's internal representations.

Joint Optimization Objective

ETT utilizes a combined loss function to ensure the model retains both semantic depth and generative fidelity:

  1. Caption Loss ($\mathcal{L}_{cap}$): A standard next-token prediction loss that drives the model’s ability to describe and understand visual content.
  2. VQ Loss ($\mathcal{L}_{vq}$): A reconstruction loss that prevents "catastrophic forgetting" of the tokenizer’s ability to reconstruct high-quality images.

Training Methodology

The authors implement a three-stage training strategy to stabilize the joint optimization process:

  • Stage 1: Alignment. The LLM and tokenizer are frozen while only the MLP projector is trained to map visual features to the LLM space.
  • Stage 2: Semantic Learning. The entire pipeline is unfrozen. The model is trained on large-scale image-text pairs (such as the 32M SOL-recap dataset) using the joint loss function.
  • Stage 3: Post-Training. The model undergoes supervised fine-tuning (SFT) using instruction-following and high-aesthetic generation datasets to prepare it for chat and creative applications.

Experimental Results

Multimodal Understanding

Despite using a modest 1.5B parameter Qwen2.5 base, ETT demonstrated superior performance compared to larger discrete models. On the ScienceQA-Img benchmark, ETT achieved an accuracy of 91.7%, surpassing models like Emu3 (8B) and Chameleon (7B). Significant gains were also observed in VQA and general reasoning tasks, with ablation studies showing a 5-6% jump in performance directly attributable to unfreezing the tokenizer.

Visual Generation

ETT proves that discrete models can compete with leading diffusion-based systems. On the GenEval benchmark, ETT reached a score of 0.63, outperforming SDXL (0.55) and approaching the performance of DALL-E 3 (0.67). This confirms that joint tuning enhances the tokenizer's ability to represent complex prompts without sacrificing image quality.

Discussion and Future Work

ETT demonstrates that the "black box" approach to vision tokenizers is a limiting factor in multimodal scaling. By treating the tokenizer as a "visual assistant" that learns from the LLM's supervision, researchers can unlock higher performance without increasing parameter counts.

Future research directions include training tokenizers from scratch using the ETT paradigm, scaling the method to 70B+ parameter models, and expanding the framework to include temporal and auditory modalities like video and audio tokenization.

Summary updated

BibTeX
@inproceedings{wang2025end,
  author = {Wenxuan Wang and Fan Zhang and Yufeng Cui and Haiwen Diao and Zhuoyan Luo and Huchuan Lu and Jing Liu and Xinlong Wang},
  title = {{End-to-End Vision Tokenizer Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=oYR9qQIR3f},
}
Figure