Introduction
Masked Generative Transformers (MGTs) have emerged as a powerful alternative to Diffusion Models (DMs) and Autoregressive Models (ARMs), offering a middle ground by predicting multiple masked image tokens simultaneously. While DMs have benefited from years of inference-time optimizations, MGTs have lacked a standardized set of techniques for high-resolution synthesis. This paper introduces a comprehensive "bag of design choices"—including novel noise schedules, masked Z-sampling, and specialized quantization—that significantly enhances image quality and hardware efficiency for 1024x1024 generation.
Optimizing MGT Inference
The authors identify that simply porting DM techniques to MGTs often fails due to the discrete nature of token sampling. Instead, they propose several tailored methods:
- Power-Law Noise Schedules: A power-law schedule ($1 - t^\rho$ with $\rho \approx 0.5$) outperforms the standard cosine schedule used in many transformers.
- Masked Z-Sampling: By adapting "Zigzag" sampling and utilizing low-confidence masking, the model avoids destroying semantic information captured in earlier steps.
- Noise Regularization & Differential Sampling: Noise regularization injects Gaussian perturbations to increase diversity, while differential sampling uses KL divergence to identify and resample redundant tokens that fail to evolve between steps.
- Secondary Calibration for Quantization (SCQ): To enable high-resolution generation on consumer GPUs, the authors developed a W4A8 quantization strategy. This method selectively protects layers with high-amplitude activations, preventing the "inference collapse" seen in standard quantization.
Key Results and Benchmarks
The study evaluates these choices across rigorous benchmarks, including HPD v2, GenEval, and a new "Challengebench" designed to test models on 220 difficult prompts where standard models often fail.
Combining these design choices led to a 70% win rate on HPS v2 compared to vanilla sampling for 1024x1024 images. Visually, this translates to significantly sharper textures and better adherence to complex prompts. On the efficiency front, the SCQ quantization reduced the memory footprint of the Meissonic model from 11.98 GB to 4.57 GB (a ~62% reduction) with minimal impact on output quality.
Conclusion
This research demonstrates that MGTs require a unique set of inference strategies that prioritize confidence metrics over random noise. By leveraging these optimized design choices, high-resolution MGTs can outperform established models like SDXL in specific metrics while remaining accessible on consumer-grade hardware. Future work will explore integrating these inference-time improvements directly into the model training process.
Summary updated