ImageFolder: Autoregressive Image Generation with Folded Tokens

Xiang Li, Kai Qiu, Hao Chen, Jason Kuen, Jiuxiang Gu +2 more
2/12/2026

No official code found. Best implementation: lxa9867/ImageFolder (307 stars, last commit 2025-04-25).

Abstract

Image tokenizers are crucial for visual generative models, e.g., diffusion models (DMs) and autoregressive (AR) models, as they construct the latent representation for modeling. Increasing token length is a common approach to improve the image reconstruction quality. However, tokenizers with longer token lengths are not guaranteed to achieve better generation quality. There exists a trade-off between reconstruction and generation quality regarding token length. In this paper, we investigate the impact of token length on both image reconstruction and generation and provide a flexible solution to the tradeoff. We propose ImageFolder, a semantic tokenizer that provides spatially aligned image tokens that can be folded during autoregressive modeling to improve both generation efficiency and quality. To enhance the representative capability without increasing token length, we leverage dual-branch product quantization to capture different contexts of images. Specifically, semantic regularization is introduced in one branch to encourage compacted semantic information while another branch is designed to capture the remaining pixel-level details. Extensive experiments demonstrate the superior quality of image generation and shorter token length with ImageFolder tokenizer.

View on arXivView PDF

Code Implementations(1)

lxa9867/ImageFolderCommunity100%

High-performance Image Tokenizers for VAR and AR

3077PythonSep 29, 20241 years agoNOASSERTION
autoregressive-modelsconditional-generationdiffusion-modelsefficient-tokenizerimage-generation+5 more

Similar Papers

Cite this paper

@article{li2026imagefolder,
  title  = {ImageFolder: Autoregressive Image Generation with Folded Tokens},
  author = {Xiang Li and Kai Qiu and Hao Chen and Jason Kuen and Jiuxiang Gu and Bhiksha Raj and Zhe Lin},
  year   = {2026},
  eprint = {2410.01756},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.01756},
  journal = {ICLR 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/2410.01756.svg)](https://codeofpaper.com/paper/2410.01756)

Discussion