Reproduce “Fast Training of Diffusion Models with Masked Transformers” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Hongkai Zheng, Weili Nie, Arash Vahdat, Anima Anandkumar

This research introduces MaskDiT, an approach that significantly accelerates the training of transformer-based diffusion models by leveraging masked modeling and an asymmetric encoder-decoder architecture. The method achieves competitive or superior generative performance on ImageNet-256x256 and 512x512, while reducing training time by up to 70% compared to state-of-the-art models like DiT.

Key insights

  • Images contain significant redundancy in their pixel space, allowing diffusion models to learn effectively even when trained on a substantial subset of input patches.
  • Combining a denoising score matching loss on unmasked tokens with an auxiliary masked autoencoder (MAE) reconstruction loss on masked tokens is crucial for holistic image understanding and high-quality generation.
  • While masked training is efficient, a brief unmasking tuning phase is essential to bridge a distribution gap between masked training and full-image inference, particularly for optimal Classifier-Free Guidance performance.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.