All models

monai.DiffusionModelUNet

DDPM's time-conditioned U-Net denoiser, a PixelCNN++-style backbone with sinusoidal timestep embeddings.

Diffusion and generative · 454 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 (27 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
35.7M
Operations
454
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2020
Cited by
8,702 (as of 19 October 2026)
Authors
Jonathan Ho, Ajay Jain, Pieter Abbeel
License
Apache-2.0
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
m7411
Graph hash
41e8ef0ece61078cd3d4718a68f7e7658e807c5c846606cc26516dba7a01587d
Skeleton hash
0bb035675f263eb33e7239f70834457213e5c6aa95b22f9dd6bd204e0a8a14d8
Architecture hash
73042369a079de87a94b7a16172bf71044606ead86b4a751dd25af15ab880ab0
Diagram SHA-256
f60151516092c7a4890ab4926307a788c7ef830dc0c116fbbda878fa41fd451d
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

Denoising diffusion probabilistic models (DDPMs) are a class of latent variable models inspired by considerations from nonequilibrium thermodynamics. A diffusion model is a parameterized Markov chain trained using variational inference to produce samples matching the data after finite time. Transitions of this chain are learned to reverse a diffusion process, which gradually adds noise to the data until signal is destroyed. The best results come from training on a weighted variational bound designed according to a novel connection between diffusion probabilistic models and denoising score matching with Langevin dynamics. The paper's preferred parameterization both resembles Langevin dynamics and simplifies the diffusion model's variational bound to an objective that resembles denoising score matching.

The network in this family is the reverse-process backbone. To represent the reverse process, the authors use a U-Net backbone similar to an unmasked PixelCNN++ with group normalization throughout. Parameters are shared across time, which is specified to the network using the Transformer sinusoidal position embedding. Self-attention is used at the 16 x 16 feature map resolution. The 32 x 32 models use four feature map resolutions, from 32 x 32 to 4 x 4, and the 256 x 256 models use six. All models have two convolutional residual blocks per resolution level with the self-attention blocks placed between the convolutional blocks. The CIFAR10 model has 35.7 million parameters, and the LSUN and CelebA-HQ models have 114 million parameters.

T is set to 1000 for all experiments so that the number of network evaluations during sampling matches previous work. On the unconditional CIFAR10 dataset the model obtains an Inception score of 9.46 and a state-of-the-art FID score of 3.17, and on 256x256 LSUN it obtains sample quality similar to ProgressiveGAN. The models also admit a progressive lossy decompression scheme that can be interpreted as a generalization of autoregressive decoding. The official code ran on Google Cloud TPU v3-8 and requires TensorFlow 1.15. The CIFAR-10 release card notes that the ddpm scheduler yields the highest quality at inference but also takes the longest.

Key idea. DDPM presents high quality image synthesis results using diffusion probabilistic models, reaching a state-of-the-art FID score of 3.17 on unconditional CIFAR10. Its reverse process parameterization establishes a connection between diffusion models and denoising score matching over multiple noise levels with annealed Langevin dynamics for sampling.

  • DDPM
  • Denoising Diffusion Probabilistic Models
  • diffusion U-Net
  • UNet2DModel
  • ddpm_unet2d
  • DiffusionModelUNet
  • ddpm-cifar10-32
  • denoising diffusion
  • reverse process
  • PixelCNN++ backbone
  • CIFAR10
  • diffusers
  • MONAI

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

Cite the paper

@misc{ho2020denoisingdiffusionprobabilisticmodels,
      title={Denoising Diffusion Probabilistic Models}, 
      author={Jonathan Ho and Ajay Jain and Pieter Abbeel},
      year={2020},
      eprint={2006.11239},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2006.11239}, 
}