Skip to main content
QUICK REVIEW

[Paper Review] MDTv2: Masked Diffusion Transformer is a Strong Image Synthesizer

Shanghua Gao, Pan Zhou|arXiv (Cornell University)|Mar 25, 2023
Generative Adversarial Networks and Image SynthesisComputer Science3 citations
TL;DR

This paper proposes Masked Diffusion Transformer (MDT), a novel diffusion model that enhances contextual reasoning by masking and reconstructing image tokens in latent space using an asymmetric transformer architecture. MDT achieves state-of-the-art FID on ImageNet and trains ~3× faster than DiT by explicitly modeling semantic part relations through masked latent modeling.

ABSTRACT

Despite its success in image synthesis, we observe that diffusion probabilistic models (DPMs) often lack contextual reasoning ability to learn the relations among object parts in an image, leading to a slow learning process. To solve this issue, we propose a Masked Diffusion Transformer (MDT) that introduces a mask latent modeling scheme to explicitly enhance the DPMs' ability to contextual relation learning among object semantic parts in an image. During training, MDT operates in the latent space to mask certain tokens. Then, an asymmetric diffusion transformer is designed to predict masked tokens from unmasked ones while maintaining the diffusion generation process. Our MDT can reconstruct the full information of an image from its incomplete contextual input, thus enabling it to learn the associated relations among image tokens. We further improve MDT with a more efficient macro network structure and training strategy, named MDTv2. Experimental results show that MDTv2 achieves superior image synthesis performance, e.g., a new SOTA FID score of 1.58 on the ImageNet dataset, and has more than 10x faster learning speed than the previous SOTA DiT. The source code is released at https://github.com/sail-sg/MDT.

Motivation & Objective

  • To address the slow training convergence of diffusion models due to poor learning of semantic part relations in images.
  • To improve contextual reasoning in diffusion probabilistic models by explicitly modeling relationships among object parts.
  • To accelerate training speed without sacrificing generation quality through a novel masked latent modeling scheme.
  • To design a unified training-inference framework that maintains consistency while enabling masked reconstruction.
  • To demonstrate that masked reconstruction in latent space enhances both sample quality and training efficiency.

Proposed method

  • MDT operates in the latent space, masking certain tokens during training to force the model to learn contextual dependencies.
  • An asymmetric masking diffusion transformer (AMDT) is designed with an encoder, side-interpolater, and decoder to predict masked tokens from unmasked ones.
  • The encoder processes only unmasked tokens during training but handles all tokens during inference, ensuring consistency.
  • The side-interpolater, a lightweight network, predicts masked tokens from encoder output during training and is removed at inference.
  • Positional embeddings and relative positional bias are incorporated into the side-interpolater and backbone blocks to improve spatial awareness.
  • The model computes loss on both masked and unmasked tokens, ensuring strong patch-level consistency for high-fidelity image synthesis.

Experimental results

Research questions

  • RQ1Can masked latent modeling improve the learning of semantic part relations in diffusion models?
  • RQ2Does training with masked reconstruction lead to faster convergence and better sample quality?
  • RQ3How does the placement and design of a side-interpolater affect performance and training efficiency?
  • RQ4What is the impact of positional encoding and relative bias on masked reconstruction performance?
  • RQ5Can a unified training and inference scheme maintain high-quality generation while accelerating training?

Key findings

  • MDT achieves a new state-of-the-art FID score on ImageNet, outperforming previous SoTA models.
  • MDT trains approximately 3× faster than DiT, reaching superior performance with fewer training steps.
  • Using loss on all tokens (masked and unmasked) yields significantly better FID than using only masked tokens.
  • The side-interpolater improves FID by 1.34 points, demonstrating its effectiveness in maintaining input consistency.
  • Placing the side-interpolater before the last two blocks yields the best performance, indicating optimal architectural positioning.
  • Incorporating relative positional bias in the transformer blocks reduces FID from 53.56 to 50.26, proving its critical role in contextual modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.