Image Tokenizer Needs Post-Training

Kai Qiu, Xiang Li, Hao Chen, Jason Kuen, Xiaohao Xu, Jiuxiang Gu, Yinyi Luo, Bhiksha Raj, Zhe Lin, Marios Savvides · DOI

Abstract

Current image tokenizers are optimized for reconstruction but struggle during generation because they aren't trained to handle the "noisy" or out-of-distribution tokens produced during sampling. This paper introduces RobusTok, a two-stage training scheme using latent perturbations and generative post-training that significantly boosts image quality, achieving a state-of-the-art 1.36 gFID on ImageNet.

Introduction

In AI image generation, tokenizers (like VQ-VAE) compress raw pixels into a compact latent space for generative models to navigate. Traditionally, the quality of a tokenizer was measured by its reconstruction fidelity. However, researchers from Carnegie Mellon, Adobe, and the University of Michigan argue that high reconstruction accuracy does not guarantee high-quality generation. They identify a fundamental "reconstruction-generation discrepancy" where tokenizers fail to interpret the imperfect tokens produced during inference.

The Reconstruction-Generation Discrepancy

When a tokenizer is trained, the decoder receives "clean" tokens directly from the encoder. During inference, however, the generative model often produces "noisy" or out-of-distribution (OOD) tokens. Because the decoder was only trained on perfect inputs, these minor errors manifest as significant visual artifacts—distorted shapes, unnatural colors, and loss of fine detail.

The RobusTok Framework

To bridge this gap, the authors propose RobusTok, a two-stage training recipe designed to build a more resilient decoder.

The RobusTok framework addresses the distribution gap (a) through a two-stage training process: Main-training with latent perturbations (b) and Post-training for generative alignment (c).

1. Main-Training: Latent Perturbation

Instead of providing the decoder with perfect tokens, RobusTok intentionally introduces noise. During training, a percentage of tokens are randomly replaced with their "top-$\delta$ nearest neighbors" from the codebook. This simulates the errors typically made by a generator. An annealing schedule is used to gradually reduce noise, ensuring stable training while building robustness.

2. Post-Training: Generative Alignment

Similar to how Large Language Models (LLMs) are fine-tuned for human alignment, RobusTok fine-tunes the decoder to align with a specific, pre-trained generator. By mixing ground-truth tokens with tokens sampled from the actual generator (using a preservation ratio $\sigma$), the decoder learns to "correct" the systematic errors of that specific model.

3. A New Metric: Perturbed FID (pFID)

The authors introduce perturbed FID (pFID) to better evaluate tokenizer robustness. Unlike standard reconstruction FID (rFID), pFID measures reconstruction quality from noisy latents. The study demonstrates that pFID is a significantly more accurate predictor of final generation quality (gFID) than traditional metrics.

Key Insights and Results

  • Reconstruction $\neq$ Generation: A tokenizer with lower reconstruction performance can yield superior generation results if its latent space is robust.
  • Decoder as Interpreter: By incorporating semantic guidance (e.g., via a frozen DINOv2 model), the decoder learns to maintain structural coherence even when inputs are perturbed.
  • State-of-the-Art Performance: RobusTok achieved a 1.36 gFID on ImageNet with a 400M parameter generator, setting a new benchmark for its size class.
  • Universal Applicability: The post-training stage is "plug-and-play," providing consistent quality boosts when applied to various off-the-shelf tokenizers (e.g., GigaTok, MAETok) across both Autoregressive and Diffusion frameworks.

Conclusion

RobusTok shifts the focus of tokenizer design from simple reconstruction to generative robustness. By treating the decoder as an active interpreter of potentially noisy signals rather than a passive mirror, this framework significantly improves the visual quality of AI-generated images without requiring a complete overhaul of existing architectures.

Summary updated

BibTeX
@misc{qiu2025image,
  author = {Kai Qiu and Xiang Li and Hao Chen and Jason Kuen and Xiaohao Xu and Jiuxiang Gu and Yinyi Luo and Bhiksha Raj and Zhe Lin and Marios Savvides},
  title = {{Image Tokenizer Needs Post-Training}},
  year = {2025},
  eprint = {2509.12474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.12474},
}
Figure