Effective and Efficient Masked Image Generation Models

Zebin You, Jingyang Ou, Xiaolu Zhang, Jun Hu, Jun Zhou, Chongxuan Li

Introduction

In the current landscape of generative AI, two dominant but distinct families of models exist: Masked Generative Models (like MaskGIT or MAR) and Diffusion Models.

Masked models are prized for their efficiency, predicting missing patches of an image in a few parallel steps. However, they often struggle with fine-grained quality due to information loss during discrete tokenization. Diffusion models, conversely, produce breathtaking quality but are notoriously slow, often requiring hundreds of neural function evaluations (NFEs) to "denoise" an image from pure randomness.

Researchers have identified a crucial gap: while these two approaches seem different, they share underlying mathematical roots. By unifying them into a single framework, the authors of this paper systematically explored optimal design choices—spanning architecture, masking schedules, and sampling paths—to achieve diffusion-level quality at masked-model speeds. The result is eMIGM (Effective and Efficient Masked Image Generation Models).

High-quality samples generated by eMIGM.

Methods and Design Space

The authors propose a unified loss function that encompasses MaskGIT, MAR, and Masked Diffusion Models (MDM). Using this framework, they performed a rigorous ablation study on the design space to identify the most impactful configurations:

  1. The "Exp" Masking Schedule: Unlike linear schedules that mask tokens at a constant rate, the authors found that an exponential schedule (masking more tokens during training) provides a stronger learning signal. This is highly effective because images inherently contain significant spatial redundancy.
  2. MAE Architecture: They adopted the Masked Autoencoder (MAE) structure, where the encoder only processes unmasked tokens. Beyond being a standard trick for self-supervised learning, it proved highly efficient for generation.
  3. CFG with Mask: In standard Classifier-Free Guidance (CFG), the model compares a "conditioned" pass (e.g., "generate a cat") with an "unconditioned" pass (using a fake class). eMIGM replaces the fake class with a special [MASK] token, significantly improving generation performance.
  4. Time Interval Sampling: Instead of applying CFG at every step, eMIGM applies it only during the later stages of generation. This reduces the number of model passes (NFEs) and actually improves image diversity and quality.
Ablation studies on the design space of eMIGM, showing the impact of mask schedules, MAE architecture, and CFG strategies on FID.

Key Insights and Results

The model was trained and evaluated on the gold standard for image generation: ImageNet $256 \times 256$ and ImageNet $512 \times 512$.

  • The "Aha" Moment on Guidance: The authors discovered that applying strong guidance (CFG) in the very early stages of sampling actually hurts the Fréchet Inception Distance (FID). Waiting until the image structure is partially formed before guiding it toward the class label yields better quality and saves nearly 40% of computation time.
  • Efficiency vs. Quality: On ImageNet 256, eMIGM-H achieved a highly competitive FID of 1.57. It matched the performance of the state-of-the-art continuous diffusion model REPA while using less than 45% of the NFEs.
  • Beating the Giants: eMIGM outperformed the popular VAR (Visual Autoregressive) model in both quality and efficiency at similar parameter scales. Furthermore, at $512 \times 512$ resolution, eMIGM-L (478M parameters) surpassed the much larger EDM2-XXL (1.5B parameters) in FID score, proving that smarter sampling and training can beat raw scale.

Limitations and Future Work

While eMIGM is highly efficient, it still relies on a pre-trained VQ (Vector Quantized) or AE (Autoencoder) tokenizer to turn images into tokens. Any artifacts introduced by this tokenizer are inherently "baked into" the final result.

The authors also note that while their exponential schedule is strong, there is still room to explore more complex schedules (like a "log-exp" schedule) to further balance the learning of global structure versus local detail. Future work may also involve extending this unified framework to video generation, where temporal redundancy is even higher and efficiency gains could be even more pronounced.

Summary updated

BibTeX
@inproceedings{you2025effective,
  author = {Zebin You and Jingyang Ou and Xiaolu Zhang and Jun Hu and JUN ZHOU and Chongxuan Li},
  title = {{Effective and Efficient Masked Image Generation Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=pSnBPLYOBZ},
}
Figure