# Denoising Diffusion Probabilistic Models

Jonathan Ho, Ajay Jain, Pieter Abbeel · arXiv · 2020-6-19

- **Problem** Diffusion models had not been shown to produce high quality image samples, even though they were simple to define and train.
- **Method** The paper fixes a Gaussian noising chain, learns a reverse chain for it, and parameterizes the reverse mean so that the network predicts the added noise, which it trains with a simplified loss.
- **Results** Reached an Inception score of 9.46±0.11 and an FID of 3.17 on unconditional CIFAR10 with the Lsimple objective, with FID computed against the training set.

## Why the sample-quality question was open

A diffusion model is a latent variable model: its sampler is a Markov chain whose transitions are learned, and it is fitted with a variational objective so that the chain's output resembles the data after finitely many steps. The authors state that, to their knowledge, no earlier work had demonstrated that this model family can generate high quality samples.

The paper therefore asks whether these models can reach sample quality that competes with published results from other generative model families.

A second question concerns the training objective, which the authors connect to denoising score matching over several noise levels and to annealed Langevin dynamics during sampling. The authors also note a tension: sample quality is strong, yet the log likelihoods are not competitive with other likelihood-based models.

## Fixed forward noising and the learned reverse chain

The forward process is a fixed Markov chain that adds Gaussian noise to a data point over T steps, with each step given by \\( q(x\_t \\mid x\_{t-1}) = \\mathcal{N}(x\_t; \\sqrt{1-\\beta\_t}\\, x\_{t-1}, \\beta\_t I) \\).

The reverse chain starts from \\( p(x\_T) = \\mathcal{N}(x\_T; 0, I) \\) and applies Gaussian transitions \\( p\_\\theta(x\_{t-1} \\mid x\_t) \\) whose means are produced by the network. In principle the reverse variances are learned too, but the experiments fix them, so the forward process variances are held as constants and the approximate posterior has no learnable parameters.

## Rewriting the bound as per-step KL terms

Because every KL term compares two Gaussians, each can be evaluated analytically, which avoids high variance Monte Carlo estimates.

## Choosing the reverse mean and its noise-prediction form

The reverse variances are set to untrained time-dependent constants \\( \\sigma\_t^2 \\). The choices \\( \\sigma\_t^2 = \\beta\_t \\) and \\( \\sigma\_t^2 = \\tilde\\beta\_t \\) gave similar results in the authors' experiments. With fixed variances, the per-step term becomes a weighted squared distance between \\( \\tilde\\mu\_t \\) and the network mean \\( \\mu\_\\theta \\), scaled by \\( 1/(2\\sigma\_t^2) \\).

Substituting the reparameterized \\( x\_t(x\_0, \\epsilon) = \\sqrt{\\bar\\alpha\_t}\\, x\_0 + \\sqrt{1-\\bar\\alpha\_t}\\,\\epsilon \\) and choosing \\( \\mu\_\\theta(x\_t, t) = \\frac{1}{\\sqrt{\\alpha\_t}}\\left(x\_t - \\frac{\\beta\_t}{\\sqrt{1-\\bar\\alpha\_t}}\\, \\epsilon\_\\theta(x\_t, t)\\right) \\) means the network \\( \\epsilon\_\\theta \\) predicts the noise \\( \\epsilon \\) from \\( x\_t \\).

Under this parameterization the per-step term reduces to a weighted noise prediction error with weight \\( \\beta\_t^2 / (2\\sigma\_t^2 \\alpha\_t (1-\\bar\\alpha\_t)) \\). Predicting \\( x\_0 \\) directly was also tried, and the authors found it gave worse sample quality early in their experiments.

## Link to score matching and Langevin sampling

The noise-prediction objective resembles denoising score matching over several noise scales, so optimizing it amounts to fitting the finite-time marginal of a sampling chain that resembles Langevin dynamics.

Algorithm 2 starts from \\( x\_T \\) drawn from \\( \\mathcal{N}(0, I) \\) and, for each step, computes \\( x\_{t-1} = \\frac{1}{\\sqrt{\\alpha\_t}}\\left(x\_t - \\frac{1-\\alpha\_t}{\\sqrt{1-\\bar\\alpha\_t}}\\,\\epsilon\_\\theta(x\_t, t)\\right) + \\sigma\_t z \\), with fresh noise \\( z \\) for \\( t \> 1 \\) and \\( z = 0 \\) at the last step. The authors note that this training trains the Langevin-style sampler explicitly with variational inference, so the sampler's coefficients are tied to the forward process.

## Discrete decoding and the simplified loss

The final term uses a discrete decoder: each pixel's Gaussian is integrated over an interval of half-width 1/255 around the pixel value, so the bound becomes a lossless codelength of discrete data. At the end of sampling the authors display the mean \\( \\mu\_\\theta(x\_1, 1) \\) without noise.

This objective discards the weighting in the per-step term, so it is a reweighted bound that down-weights small t, where the network only learns to denoise very small amounts of noise, and gives more weight to harder denoising at large t.

## Experimental setup

The reverse network is a U-Net similar to an unmasked PixelCNN++, with group normalization, self-attention at the 16×16 feature map resolution, and parameters shared across time, with the timestep given by the Transformer sinusoidal position embedding.

## CIFAR10 and LSUN sample quality

Figure 1 shows generated samples on CelebA-HQ at 256 × 256 and on unconditional CIFAR10.

On unconditional CIFAR10, the model trained on Lsimple reached an Inception score of 9.46±0.11 and an FID of 3.17 computed against the training set. Against the test set, the same model's FID is 5.24, which the authors still consider better than many training-set FID values in the literature.

On 256×256 LSUN, the authors report sample quality similar to ProgressiveGAN, a comparison stated qualitatively in the units available here. The LSUN Church samples have an FID of 7.89 and the LSUN Bedroom samples have an FID of 4.90.

## Which mean parameterization and objective matter

The ablation keeps unconditional CIFAR10 fixed and varies the mean parameterization between ˜µ prediction and ϵ prediction, and the objective between the bound with learned diagonal variances, the bound with fixed isotropic variances and Lsimple.

Under the simplified objective, ϵ prediction gave an Inception score of 9.46±0.11 and an FID of 3.17, whereas the ˜µ prediction entry is marked as unstable to train with out-of-range scores.

## Codelengths and what they measure

With the bound and fixed isotropic variances, the test codelength is at most 3.70 bits per dimension, with 3.69 on the training set, and with Lsimple it is at most 3.75 on the test set and 3.72 on the training set.

The test codelength exceeds the training codelength by at most 0.03 bits per dimension, a gap the authors compare with other likelihood-based models to argue against overfitting.

More than half of the codelength is therefore spent on distortion the authors call imperceptible.

## Progressive decoding along the reverse chain

Algorithms 3 and 4 send \\( x\_T, \\ldots, x\_0 \\) in order, using a procedure such as minimal random coding that can transmit a sample from \\( q \\) at a cost of about \\( D\_{KL}(q \\\| p) \\) bits on average.

Distortion falls steeply in the low-rate region, which the authors read as most bits being used for imperceptible detail.

Running the sampler while reading off \\( \\hat x\_0 \\) at each step shows large-scale image features first and fine details last. Stochastic predictions from a fixed \\( x\_t \\) preserve fine details when t is small and only large-scale features when t is large, and samples from the same latent share high-level attributes.

## Reading the chain as autoregressive decoding

If T equals the data dimension and the forward process masks one coordinate per step, minimizing the KL terms trains the reverse chain to copy unmasked coordinates and predict the next one, which is autoregressive training.

The Gaussian chain does not need T to equal the data dimension, since T is 1000 while the images have 32×32×3 or 256×256×3 values, and the length can be shortened for fast sampling or lengthened for expressiveness.

## Interpolating through noisy latents

Two source images are noised with the forward process using a fixed noise, their noisy latents are linearly interpolated at a chosen step, and the reverse process decodes the interpolated latent into an image. Figure 8 shows CelebA-HQ interpolations produced with 500 diffusion timesteps.

Larger t gives coarser and more varied interpolations, and at t = 1000 the interpolations are novel samples.

## Relation to flows, VAEs and score models

The authors connect the ϵ prediction reverse process with denoising score matching over multiple noise levels and annealed Langevin dynamics, and note the reverse implication that a weighted form of denoising score matching equals variational training of a Langevin-like sampler. They also note that the work may have implications for energy-based models, and they place the rate-distortion curves in the same spirit as rate-distortion curves computed over distortion penalties in one annealed importance sampling run.

## Limitations

The simplified objective gives the best sample quality, but training on the true variational bound yields better codelengths.

The forward variances are fixed rather than learned, and learning reverse variances led to unstable training in the reported experiments. The discrete decoder is simple, and the authors leave a more powerful decoder, such as a conditional autoregressive model, to future work.

The rate-distortion analysis is reported only on the CIFAR10 test set, and the progressive and interpolation results are shown as figures and qualitative observations. The LSUN comparison with ProgressiveGAN is stated qualitatively, and no ProgressiveGAN score appears in the units available here.

## Paper info

- **Authors**: Jonathan Ho, Ajay Jain, Pieter Abbeel
- **Venue**: arXiv · Preprint
- **First published**: 2020-6-19
- **Added**: 2026-10-20
- **Updated**: 2020-12-16
- **Version**: v2
- **arXiv**: 2006.11239
- **Category**: cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2006.11239v2) · [PDF ↗](https://arxiv.org/pdf/2006.11239v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Jonathan Ho, Ajay Jain, Pieter Abbeel (2020). Denoising Diffusion Probabilistic Models. arXiv:2006.11239v2. https://arxiv.org/abs/2006.11239v2

**BibTeX**

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

## Other paper commentary

- [High-Resolution Image Synthesis with Latent Diffusion Models](https://refivu.com/en/papers/33bd1500-c829-47e5-9545-ad078523241e-high-resolution-image-synthesis-with-latent-diffusion-models.md)
- [Generative Adversarial Networks](https://refivu.com/en/papers/b0edf89c-f6c4-4cce-9c25-eccaea8dcfc9-generative-adversarial-networks.md)
- [Auto-Encoding Variational Bayes](https://refivu.com/en/papers/90411040-94ff-4aca-9d04-a1a99cad3eb4-auto-encoding-variational-bayes.md)
- [Absorbing Quantization Error by Deformable Noise Scheduler for Diffusion Models](https://refivu.com/en/papers/10a7b7b0-1927-4b83-a47b-a8a00da5f0c5-absorbing-quantization-error-by-deformable-noise-scheduler.md)
- [Adversarial Vulnerability from Interference Between Features in Superposition](https://refivu.com/en/papers/cd94add6-68c0-4643-bc21-5a8a999fe6db-adversarial-vulnerability-from-interference-between-features.md)
- [Scalable Beckmann Maps Improve One-step Generation](https://refivu.com/en/papers/ba5444d1-474d-40f0-8026-1a34654b061f-scalable-beckmann-maps-improve-one-step-generation.md)
- [Llama 2: Open Foundation and Fine-Tuned Chat Models](https://refivu.com/en/papers/5c1523c3-cd1c-48ba-8289-86de02d688dd-llama-2-open-foundation-and-fine-tuned-chat.md)
- [Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model](https://refivu.com/en/papers/b99bbef4-e405-4227-881f-01ef69bed080-mastering-atari-go-chess-and-shogi-by-planning.md)
- [Mixtral of Experts](https://refivu.com/en/papers/5e1d3fc2-10c6-4121-ba03-4ef4430aadca-mixtral-of-experts.md)
- [PaLM: Scaling Language Modeling with Pathways](https://refivu.com/en/papers/31a94910-97f3-470b-a240-6c8b698de722-palm-scaling-language-modeling-with-pathways.md)
- [Mistral 7B](https://refivu.com/en/papers/9993f1cb-8618-4aeb-9dc5-d4a5aa598381-mistral-7b.md)
- [Scaling Laws for Neural Language Models](https://refivu.com/en/papers/0b00379f-9c4e-4d81-be48-4963190a673b-scaling-laws-for-neural-language-models.md)

## Terms in this paper

- [self-attention](https://refivu.com/en/terms/426589b81077-self-attention)
- [FID](https://refivu.com/en/terms/e110afe65f86-fid)
- [u-net](https://refivu.com/en/terms/f49a93d54ad5-u-net)
- [CIFAR10](https://refivu.com/en/terms/19bd6ffb1901-cifar10)
- [CelebA-HQ](https://refivu.com/en/terms/55be90c6f5a7-celeba-hq)
- [LSUN](https://refivu.com/en/terms/8199283e30fb-lsun)
- [negative log likelihood](https://refivu.com/en/terms/339ecb7aa325-negative-log-likelihood)
- [group normalization](https://refivu.com/en/terms/511e11b5ba5a-group-normalization)
- [Langevin dynamics](https://refivu.com/en/terms/ef119eb66d5d-langevin-dynamics)
- [forward process](https://refivu.com/en/terms/e1cc165daea6-forward-process)
- [Lsimple](https://refivu.com/en/terms/114c115357db-lsimple)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/3a1faf88-ed3a-4c3a-bf1e-1afc6e7184fa-denoising-diffusion-probabilistic-models)
