An Image is Worth 32 Tokens for Reconstruction and Generation

Qihang Yu, Mark Weber, Xueqing Deng, Xiaohui Shen, Daniel Cremers +1 more
2/3/2026

No official code found. Best implementation: bytedance/1d-tokenizer (1,176 stars, Apache-2.0, last commit 2025-03-20). 2 more below.

Abstract

Recent advancements in generative models have highlighted the crucial role of image tokenization in the efficient synthesis of high-resolution images. Tokenization, which transforms images into latent representations, reduces computational demands compared to directly processing pixels and enhances the effectiveness and efficiency of the generation process. Prior methods, such as VQGAN, typically utilize 2D latent grids with fixed downsampling factors. However, these 2D tokenizations face challenges in managing the inherent redundancies present in images, where adjacent regions frequently display similarities. To overcome this issue, we introduce Transformer-based 1-Dimensional Tokenizer (TiTok), an innovative approach that tokenizes images into 1D latent sequences. TiTok provides a more compact latent representation, yielding substantially more efficient and effective representations than conventional techniques. For example, a 256 x 256 x 3 image can be reduced to just 32 discrete tokens, a significant reduction from the 256 or 1024 tokens obtained by prior methods. Despite its compact nature, TiTok achieves competitive performance to state-of-the-art approaches. Specifically, using the same generator framework, TiTok attains 1.97 gFID, outperforming MaskGIT baseline significantly by 4.21 at ImageNet 256 x 256 benchmark. The advantages of TiTok become even more significant when it comes to higher resolution. At ImageNet 512 x 512 benchmark, TiTok not only outperforms state-of-the-art diffusion model DiT-XL/2 (gFID 2.74 vs. 3.04), but also reduces the image tokens by 64x, leading to 410x faster generation process. Our best-performing variant can significantly surpasses DiT-XL/2 (gFID 2.13 vs. 3.04) while still generating high-quality samples 74x faster.

View on arXivView PDF

Code Implementations(3)

Apache-2.0

This repo contains the code for 1D tokenizer and generator

1,17670Python, Jupyter NotebookJun 21, 20241 years agoApache-2.0
research
MIT

Implementation of TiTok, proposed by Bytedance in "An Image is Worth 32 Tokens for Reconstruction and Generation"

1845PythonJun 17, 20242 years agoMIT
artificial-intelligencedeep-learningimage-generationvector-quantization
MIT

Simple 1D image tokenizer from the paper An Image is Worth 32 Tokens for Reconstruction and Generation

30PythonOct 22, 20241 years agoMIT
image-tokensvector-quantizationvision-transformer

Cite this paper

@article{yu2026image,
  title  = {An Image is Worth 32 Tokens for Reconstruction and Generation},
  author = {Qihang Yu and Mark Weber and Xueqing Deng and Xiaohui Shen and Daniel Cremers and Liang-Chieh Chen},
  year   = {2026},
  eprint = {2406.07550},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.07550},
  url    = {https://arxiv.org/abs/2406.07550},
  journal = {NEURIPS 2024 2024}
}

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/2406.07550.svg)](https://codeofpaper.com/paper/2406.07550)

Discussion