UniTok: A Unified Tokenizer for Visual Generation and Understanding

Chuofan Ma, Yi Jiang, Junfeng Wu, Jihan Yang, Xin Yu +3 more
2/27/2025
cs.CVcs.AI

Official code: FoundationVision/UniTok (527 stars, MIT, last commit 2025-11-14).

Abstract

Visual generative and understanding models typically rely on distinct tokenizers to process images, presenting a key challenge for unifying them within a single framework. Recent studies attempt to address this by connecting the training of VQVAE (for autoregressive generation) and CLIP (for understanding) to build a unified tokenizer. However, directly combining these training objectives has been observed to cause severe loss conflicts. In this paper, we show that reconstruction and semantic supervision do not inherently conflict. Instead, the underlying bottleneck stems from limited representational capacity of discrete token space. Building on these insights, we introduce UniTok, a unified tokenizer featuring a novel multi-codebook quantization mechanism that effectively scales up the vocabulary size and bottleneck dimension. In terms of final performance, UniTok sets a new record of 0.38 rFID and 78.6% zero-shot accuracy on ImageNet. Besides, UniTok can be seamlessly integrated into MLLMs to unlock native visual generation capability, without compromising the understanding performance. Additionally, we show that UniTok favors cfg-free generation, reducing gFID from 14.6 to 2.5 on ImageNet 256$\times$256 benchmark. GitHub: https://github.com/FoundationVision/UniTok.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2025 Spotlight] A Unified Tokenizer for Visual Generation and Understanding

52712CSS, HTMLFeb 27, 202511 months agoMIT
autoregressive-modelsgenerativegenerative-aigenerative-modelimage-generation+4 more

Similar Papers

Cite this paper

@article{ma2025unitok,
  title  = {UniTok: A Unified Tokenizer for Visual Generation and Understanding},
  author = {Chuofan Ma and Yi Jiang and Junfeng Wu and Jihan Yang and Xin Yu and Zehuan Yuan and Bingyue Peng and Xiaojuan Qi},
  year   = {2025},
  eprint = {2502.20321},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.20321v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.20321.svg)](https://codeofpaper.com/paper/2502.20321)

Discussion