Diffusion Autoencoders are Scalable Image Tokenizers

Yinbo Chen, Rohit Girdhar, Xiaolong Wang, Sai Saketh Rambhatla, Ishan MisraarXiv 2025 · DOI

Introduction

In the landscape of generative AI, image tokenization is a critical but often overlooked preprocessing step. Models like Stable Diffusion do not operate directly on high-resolution pixels; instead, they compress images into a compact "latent space." Traditionally, this compression has relied on a complex ensemble of loss functions, including Generative Adversarial Networks (GANs), L1 reconstruction loss, and Learned Perceptual Image Patch Similarity (LPIPS). While effective, this "GAN-LPIPS" recipe is notoriously difficult to balance and scale.

A new approach, DiTo (Diffusion Tokenizer), simplifies this process by replacing the multi-loss objective with a single, theoretically grounded diffusion loss. This self-supervised method demonstrates superior scalability and a remarkable ability to preserve structured visual details like text and symbols.

The Limitations of Traditional Tokenizers

Most state-of-the-art image tokenizers face three primary challenges:

  1. Complexity: Balancing competing losses (L1, GAN, and LPIPS) requires extensive hyperparameter tuning.
  2. Supervision Dependency: LPIPS depends on features from pre-trained, supervised networks (like VGG or AlexNet), which may introduce biases.
  3. Scaling Bottlenecks: GANs are prone to instability and artifacts when scaled to larger model sizes.

Furthermore, traditional tokenizers often struggle with "structured" data, frequently producing garbled text or warped geometric shapes in reconstructed images.

Methodology: The DiTo Architecture

DiTo consists of a standard convolutional encoder and a UNet-based diffusion decoder. Unlike traditional models, DiTo is trained using a single Flow Matching objective, which is mathematically equivalent to maximizing the Evidence Lower Bound (ELBO). This provides a principled probabilistic framework for image reconstruction.

Comparison of traditional GAN-LPIPS tokenization (left) vs. the proposed DiTo architecture (right).

Key technical innovations include:

  • Joint Training: The encoder and decoder are trained end-to-end from scratch.
  • Noise Synchronization: A novel regularization technique that aligns the noising process in both latent and pixel spaces, ensuring the learned latents are optimized for downstream generative tasks.
  • Iterative Decoding: At inference, images are reconstructed from the latent $z$ using a diffusion sampler (e.g., an ODE solver) over 20–50 steps.

Key Results and Insights

The researchers evaluated DiTo on the ImageNet dataset at $256 \times 256$ resolution, with zero-shot testing at $512 \times 512$.

Qualitative Superiority

DiTo excels at capturing regular structures that baffle heuristic-based models. While GAN-LPIPS models often produce blurry or nonsensical symbols, DiTo maintains sharp, readable text and precise edges.

Qualitative comparison showing DiTo's superior preservation of text and structured details compared to GAN-LPIPS.

The FID Paradox and Human Preference

Interestingly, DiTo sometimes yields higher (worse) Fréchet Inception Distance (FID) scores for reconstruction than GAN-based models. However, human evaluators consistently prefer DiTo’s results. This suggests that standard metrics like FID may be overly biased toward the specific features used in LPIPS training, failing to account for the structural integrity that humans value.

Scalability and Generative Performance

Because it uses a single principled objective, DiTo scales predictably. Increasing the parameter count from 162M to 620M led to consistent performance gains, whereas traditional GAN-based tokenizers often saturate. When used as a backbone for a latent diffusion model, DiTo achieved a Generation FID of 6.29, significantly outperforming the GAN-LPIPS baseline of 7.49.

Conclusion and Future Work

DiTo represents a shift toward simpler, more scalable image tokenization. By leveraging the probabilistic power of diffusion, it overcomes the structural weaknesses and scaling limits of GAN-based methods. While the current iterative decoding process is slower than a single GAN forward pass, future work in diffusion distillation (such as Consistency Models) could potentially reduce reconstruction to a single step, combining the quality of diffusion with the speed of traditional autoencoders.

Summary updated

BibTeX
@misc{chen2025diffusion,
  author = {Yinbo Chen and Rohit Girdhar and Xiaolong Wang and Sai Saketh Rambhatla and Ishan Misra},
  title = {{Diffusion Autoencoders are Scalable Image Tokenizers}},
  year = {2025},
  eprint = {2501.18593},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.18593},
}
Figure