TL;DR
This paper unifies masked image generation models and masked diffusion models into a single, cohesive framework. By systematically exploring the design space of training and sampling within this framework, the authors introduce eMIGM, a highly efficient model that outperforms leading autoregressive and diffusion models on ImageNet while requiring a fraction of the computational evaluations.
What Problem Does This Paper Address?
Masked image generation models (like MaskGIT) offer incredible sampling speed compared to traditional autoregressive models, but they historically suffered from quality degradation due to information loss from discrete tokenization. While recent advancements like MAR introduced diffusion loss to fix this bottleneck, the broader design space—such as masking schedules, loss weighting, and sampling strategies—remained largely underexplored.
Concurrently, masked diffusion models (MDMs) have thrived in text generation by offering a principled probabilistic framework, but their applicability to image generation was an open question. This paper addresses these gaps by unifying masked image modeling and masked diffusion into a single framework to systematically discover the optimal recipe for high-quality, efficient image synthesis.
Methods
The authors first prove that the training objectives of MaskGIT, MAR, and MDMs can be mathematically unified under a single generalized loss formulation. With this unified framework in hand, they systematically optimize both training and sampling:
Training Optimizations
- Exponential Mask Schedule: Replaces linear schedules to maintain a higher masking ratio during training, providing a stronger learning signal.
- MAE Architecture: Decomposes the transformer into an encoder-decoder structure where the encoder only processes unmasked tokens, outperforming single-encoder setups.
- Time Truncation: Restricts the minimum timestep ($t_{min} = 0.2$) during training to accelerate convergence.
- CFG with Mask: Modifies Classifier-Free Guidance (CFG) by replacing the standard "fake class token" with a mask token for unconditional generation, stabilizing conditional performance.
Sampling Optimizations
- DPM-Solver: Integrates a fast, training-free ODE sampler that drastically outperforms standard DDPM sampling at low step counts without requiring tedious temperature tuning.
- Time Interval CFG: Instead of applying CFG throughout the entire generation process, guidance is only applied during a specific late-stage window ($t \in [0.1, 0.3]$).
Datasets
The model was trained and evaluated on standard image synthesis benchmarks:
- ImageNet 256×256
- ImageNet 512×512
No new datasets or benchmarks were introduced.
Key Insights and Ideas
- Image Redundancy Demands Aggressive Masking: Unlike text tokens, image pixels/patches are highly redundant. Because of this, an exponential mask schedule that keeps images heavily masked during training forces the model to learn much stronger contextual representations.
- Early Guidance is a Trap: In masked image generation, token generation is irreversible—once a token is unmasked, it cannot be changed. The authors discovered that applying strong CFG guidance in the early stages of sampling drastically reduces sample variance and degrades the Fréchet Inception Distance (FID). Restricting CFG to a late-stage time interval preserves diversity while cutting the Number of Function Evaluations (NFEs) by roughly 40%.
Key Results
- ImageNet 256×256: With only 20 NFEs, eMIGM-B achieves an FID of 2.79, outperforming the seminal autoregressive model VAR (FID 3.30). When scaled up, eMIGM-H achieves an FID of 1.57, matching the state-of-the-art continuous diffusion model REPA while using less than 45% of its NFEs.
- ImageNet 512×512: eMIGM-L achieves an FID of 2.19 at low step counts, beating VAR (2.63). With more steps, it reaches an FID of 1.77, surpassing the strong continuous diffusion model EDM2 (1.81) despite using fewer parameters.
Limitations and Future Work
- Irreversible Token Generation: Because tokens cannot be modified once generated, early-stage errors can still accumulate and degrade the final image quality, even if mitigated by the time-interval CFG strategy.
- Mask Schedule Exploration: Although the authors developed a promising log-exponential schedule in their appendix, they note that a truly exhaustive exploration of optimal masking schedules remains an open area for future work.
- Potential for Misuse: As with any high-fidelity image generation framework, there is a risk of generating deceptive content, which the authors suggest mitigating via downstream watermarking techniques.
Summary updated