All models

mdt_small

A diffusion transformer for image synthesis trained with masked latent tokens.

Diffusion and generative · 188 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (16 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
43.2K
Operations
188
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
91 (as of 29 October 2026)
Authors
Shanghua Gao, Pan Zhou, Ming‐Ming Cheng, Shuicheng Yan
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11967
Graph hash
4c01058ca2922df4a0e96761fc61c463685747ff8373dc737ea7e71055f29447
Skeleton hash
7cdeea0d548bd0c83d541ba3fe69897c9680576750253c913a4fcd3e38b0a3f7
Architecture hash
b5b64b3e3e93d3771eb1933e811ab6360bc73fb841ab6c1737d4642883093992
Diagram SHA-256
851c61c2d404f206fe3034e97d7d7359c9538c99615a9ae91b17f33982692f9d
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.mdt_small:build_mdt_small: build({})

What it is

The Masked Diffusion Transformer (MDT) is an image synthesis model that adds a mask latent modeling scheme to a diffusion model. The paper starts from an observation about diffusion probabilistic models (DPMs): they often lack the contextual reasoning ability to learn how the parts of an object relate within an image, which the authors say leads to a slow learning process.

During training, MDT operates in the latent space and masks certain tokens. An asymmetric masking diffusion transformer is then designed to predict the masked tokens from the unmasked ones while maintaining the diffusion generation process. In this way the model learns to reconstruct the full information of an image from incomplete contextual input. The paper reports what was then a new best FID score on the ImageNet data set, and about 3× faster learning than DiT.

Key idea. The paper proposes the Masked Diffusion Transformer, whose mask latent modeling scheme strengthens a diffusion model's learning of contextual relations among object semantic parts in an image.

  • mdt
  • masked diffusion transformer
  • mdt small
  • image synthesis
  • diffusion transformer
  • mask latent modeling
  • diffusion probabilistic model

AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{mdtsmall2023,
  title = {Masked Diffusion Transformer is a Strong Image Synthesizer},
  author = {Shanghua Gao and Pan Zhou and Ming‐Ming Cheng and Shuicheng Yan},
  year = {2023},
  journal = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  doi = {10.1109/iccv51070.2023.02117}
}