NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TokLIP: Marry Visual Tokens to CLIP for Multimodal Comprehension and Generation

Haokun Lin, Teng Wang, Yixiao Ge, Yuying Ge, Zhichao Lu, Ying Wei, Qingfu Zhang, Zhenan Sun, Ying ShanarXiv 2025 · DOI

Abstract

Unified multimodal autoregressive models aim to use a single Transformer for both image generation and understanding. However, traditional approaches often suffer from conflicting training objectives between low-level reconstruction and high-level semantic alignment. TokLIP introduces a novel visual tokenizer that "semanticizes" discrete visual tokens into continuous CLIP-like features. By employing a discrete-to-continuous pipeline with causal attention, TokLIP enables a single model to excel at both generating and comprehending images without the performance degradation typical of previous unified architectures.

The Challenge of Unified Multimodal Modeling

The primary goal in multimodal AI is to develop a unified autoregressive model—a single Transformer capable of predicting the next token regardless of whether it represents text or an image patch. To achieve this, images are typically converted into discrete Vector-Quantized (VQ) tokens. While VQ tokens are effective for capturing the low-level patterns necessary for image generation, they often lack the high-level semantics required for complex understanding tasks.

Comparison of TokLIP's discrete-to-continuous approach against traditional discrete semantic tokenizers.

Previous attempts to bridge this gap, such as VILA-U, attempted to discretize high-level semantic features directly. However, this creates a "tug-of-war" between reconstruction (visual fidelity) and semantic supervision (understanding). This conflict, exacerbated by the information loss inherent in quantization, often leads to degraded performance in both domains.

The TokLIP Architecture

TokLIP resolves these conflicting objectives by adopting a discrete-to-continuous pipeline. Instead of forcing a single discrete token to represent both low-level and high-level information, TokLIP disentangles these roles.

The TokLIP training pipeline (top) and its application in multimodal comprehension and generation (bottom).

Methodology

  1. Low-Level Discretization: The system utilizes a frozen, off-the-shelf VQGAN encoder to convert images into discrete VQ tokens.
  2. Semantic Mapping: These tokens are processed through a Multi-Layer Perceptron (MLP) and a Vision Transformer (ViT) token encoder to extract continuous, high-level semantic features.
  3. Causal Distillation: The token encoder is trained using contrastive and distillation losses against a frozen CLIP teacher model. Crucially, the encoder uses causal (unidirectional) attention to remain compatible with autoregressive generation. To mitigate the performance loss usually associated with causal attention, the encoder is initialized with pre-trained bidirectional CLIP weights.

When integrated into a Large Language Model (LLM), TokLIP provides rich continuous semantics for comprehension while allowing the model to output standard VQ tokens for generation tasks.

Experimental Results and Efficiency

TokLIP demonstrates remarkable data efficiency, achieving state-of-the-art representation capabilities using less than 20% of the pre-training data required by competing tokenizers. It was pre-trained on a mix of 70M to 125M image-text pairs and evaluated across a wide suite of benchmarks.

  • Zero-Shot Classification: TokLIP-B achieves 76.4% accuracy on ImageNet, outperforming several standard CLIP models.
  • Multimodal Comprehension: Integrated with Qwen2.5-7B, TokLIP-XL achieves state-of-the-art results among discrete-token models on benchmarks like MME (1586.8) and MMBench (77.4).
  • Image Generation: By concatenating high-level semantic features with low-level tokens, TokLIP improves image generation quality, reducing the FID score on ImageNet 256x256 from 5.96 to 5.72.

Conclusion

TokLIP successfully marries the generative capabilities of visual tokens with the semantic power of CLIP. By avoiding the optimization pitfalls of competing objectives through a discrete-to-continuous mapping, it provides a robust foundation for unified multimodal AI. Future work may involve fine-tuning the underlying VQ tokenizer or utilizing reinforcement learning to further enhance fine-grained understanding in text-dense environments.

Summary updated

BibTeX
@misc{lin2025toklip,
  author = {Haokun Lin and Teng Wang and Yixiao Ge and Yuying Ge and Zhichao Lu and Ying Wei and Qingfu Zhang and Zhenan Sun and Ying Shan},
  title = {{TokLIP: Marry Visual Tokens to CLIP for Multimodal Comprehension and Generation}},
  year = {2025},
  eprint = {2505.05422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.05422},
}
Figure