Masked Autoencoders Are Effective Tokenizers for Diffusion Models
Hao Chen, Yujin Han, Fangyi Chen, Xiang Li, Yidong Wang, Jindong Wang, Ze Wang, Zicheng Liu, Difan Zou, Bhiksha Raj
TL;DR
The paper investigates what makes a latent space effective for diffusion-based image synthesis and argues that a discriminative latent structure with few GMM modes is more beneficial than variational regularization. It introduces MAETok, a masked autoencoder tokenizer that learns semantically rich latent representations while maintaining reconstruction fidelity, using mask modeling and auxiliary decoders to predict multiple targets. Empirical results on ImageNet show MAETok enables state-of-the-art-like generation with only 128 latent tokens, achieving 1.69 gFID at 512x512 and substantial speedups in training and inference, while theoretical and empirical analyses link fewer latent-space modes to better diffusion performance. The work highlights latent-space structure as a key driver for diffusion efficiency and quality, offering a scalable path to high-resolution generation with reduced computational overhead.
Abstract
Recent advances in latent diffusion models have demonstrated their effectiveness for high-resolution image synthesis. However, the properties of the latent space from tokenizer for better learning and generation of diffusion models remain under-explored. Theoretically and empirically, we find that improved generation quality is closely tied to the latent distributions with better structure, such as the ones with fewer Gaussian Mixture modes and more discriminative features. Motivated by these insights, we propose MAETok, an autoencoder (AE) leveraging mask modeling to learn semantically rich latent space while maintaining reconstruction fidelity. Extensive experiments validate our analysis, demonstrating that the variational form of autoencoders is not necessary, and a discriminative latent space from AE alone enables state-of-the-art performance on ImageNet generation using only 128 tokens. MAETok achieves significant practical improvements, enabling a gFID of 1.69 with 76x faster training and 31x higher inference throughput for 512x512 generation. Our findings show that the structure of the latent space, rather than variational constraints, is crucial for effective diffusion models. Code and trained models are released.
