cs.CVMar 31, 2026

MacTok: Robust Continuous Tokenization for Image Generation

Authors: Hengyu Zeng, Xin Gao, Guanghao Li, Yuxiang Yan, Jiaoyang Ruan, Junpeng Ma, Haoyu Albert Wang, Jian Pu

Organizations: Fudan University

Abstract

Continuous image tokenizers enable efficient visual generation, and those based on variational frameworks can learn smooth, structured latent representations through KL regularization. Yet this often leads to posterior collapse when using fewer tokens, where the encoder fails to encode informative features into the compressed latent space. To address this, we introduce MacTok, a Masked Augmenting 1D Continuous Tokenizer that leverages image masking and representation alignment to prevent collapse while learning compact and robust representations. MacTok applies both random masking to regularize latent learning and DINO-guided semantic masking to emphasize informative regions in images, forcing the model to encode robust semantics from incomplete visual evidence. Combined with global and local representation alignment, MacTok preserves rich discriminative information in a highly compressed 1D latent space, requiring only 64 or 128 tokens. On ImageNet, MacTok achieves a competitive gFID of 1.44 at 256×\times256 and a state-of-the-art 1.52 at 512×\times512 with SiT-XL, while reducing token usage by up to 64×\times. These results confirm that masking and semantic guidance together prevent posterior collapse and achieve efficient, high-fidelity tokenization.

Figures & tables

Appendix figures & tables31 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Semantic One-Dimensional Tokenizer for Image Reconstruction and Generation

    Mar 17, 2026Yunpeng Qu, Kaidong Zhang, Yukang Ding +2Image TokenizationImage Reconstruction

  2. MergeTok: Unified Continuous and Discrete Visual Tokenization via Token Merging

    May 29, 2026Luyuan Zhang, Siyuan Li, Zedong Wang +7Variational AutoencodersToken Merging

  3. Vision Foundation Models as Generalist Tokenizers for Image Generation

    May 18, 2026Anlin Zheng, Qi Han, Xin Wen +5Vision Foundation ModelsImage Tokenization