ImageFolder: Autoregressive Image Generation with Folded Tokens

Abstract

Image tokenizers are crucial for visual generative models, \eg, diffusion models (DMs) and autoregressive (AR) models, as they construct the latent representation for modeling. Increasing token length is a common approach to improve 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 \textbf{ImageFolder}, a semantic tokenizer that provides spatially aligned image tokens that can be folded during autoregressive modeling to improve both 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 pixel-level details. Extensive experiments demonstrate the superior quality of image generation and shorter token length with ImageFolder tokenizer.

Cite

Text

Li et al. "ImageFolder: Autoregressive Image Generation with Folded Tokens." International Conference on Learning Representations, 2025.

Markdown

[Li et al. "ImageFolder: Autoregressive Image Generation with Folded Tokens." International Conference on Learning Representations, 2025.](https://mlanthology.org/iclr/2025/li2025iclr-imagefolder/)

BibTeX

@inproceedings{li2025iclr-imagefolder,
  title     = {{ImageFolder: Autoregressive Image Generation with Folded Tokens}},
  author    = {Li, Xiang and Qiu, Kai and Chen, Hao and Kuen, Jason and Gu, Jiuxiang and Raj, Bhiksha and Lin, Zhe},
  booktitle = {International Conference on Learning Representations},
  year      = {2025},
  url       = {https://mlanthology.org/iclr/2025/li2025iclr-imagefolder/}
}