# Denoising Diffusion Probabilistic Models

> Trains a network to undo small steps of Gaussian noise, then generates images by denoising pure noise over 1,000 steps. A simple noise-prediction loss reaches 3.17 FID on CIFAR-10 and rivals GANs on faces.

- arXiv: https://arxiv.org/abs/2006.11239
- Authors: Jonathan Ho, Ajay Jain, Pieter Abbeel
- Published: 2020-06-19
- Topic: Generative models
- Visual carousel: https://instaxiv.com/p/2006.11239
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Learn to remove noise step by step, and you can generate images

**3.17** FID on CIFAR-10, a new state of the art

## Faces and objects, generated from pure Gaussian noise

![Figure 1](https://cdn.instaxiv.com/figures/2006.11239/figure1.webp)

CelebA-HQ faces at 256×256 on the left, unconditional CIFAR-10 samples on the right. Every image starts as random noise and is denoised over 1,000 steps. (Figure 1)

## GANs ruled sample quality, at a cost

**GANs:** Adversarial training produced sharp images but was unstable and prone to mode collapse. Likelihood models trained stably but produced blurrier samples.

**Diffusion models:** A fixed process adds Gaussian noise over many steps. A network learns to reverse each small step, and sampling runs the chain backwards.

Many easy denoising steps replace one hard generation step.

## Two chains: one fixed, one learned

1. **Forward: add noise**: Over $T = 1000$ steps, mix the image with Gaussian noise on a fixed schedule until only noise remains.
2. **Jump to any step**: In closed form, $x_t$ is a scaled image plus scaled noise, so training samples a random step directly.
3. **Reverse: predict the noise**: A U-Net sees $x_t$ and $t$ and predicts the added noise; sampling removes it step by step.

## Training reduces to predicting the noise

$$
\mathcal{L}_{\mathrm{simple}} = \mathbb{E}_{t,\,x_0,\,\epsilon}\Big[\big\lVert \epsilon - \epsilon_\theta\big(\sqrt{\bar\alpha_t}\,x_0 + \sqrt{1-\bar\alpha_t}\,\epsilon,\; t\big)\big\rVert^2\Big]
$$

Corrupt a clean image to a random noise level, ask the network which noise was added, and penalize the squared error. Simple, stable regression.

- $x_0$: Clean training image
- $\epsilon$: Gaussian noise actually added
- $\epsilon_\theta$: The network's estimate of that noise
- $\bar\alpha_t$: How much signal survives at step t

## Best unconditional CIFAR-10 FID at the time

| Method | FID | Inception score |
| --- | --- | --- |
| NCSN | 25.32 | 8.87 |
| StyleGAN2 + ADA | 3.26 | 9.74 |
| **DDPM (Best FID)** | **3.17** | **9.46** |

_Unconditional CIFAR-10, Table 1. The GAN still edges it on inception score._

## The price of a thousand steps

- **Slow sampling**: One image takes 1,000 sequential network passes, far slower than a single GAN forward pass.
- **Likelihoods lag**: Log-likelihoods were not competitive with other likelihood-based models despite the excellent samples.
- **Unconditional only**: Results cover unconditional generation; text conditioning and guidance came in later work.

Best used when: Sample quality and training stability matter more than generation speed.

## Key takeaways

- Predicting the added noise with a squared-error loss is a stable, simple way to train a generator.
- DDPM matched GAN sample quality without adversarial training.
- Stable Diffusion, DALL·E 2 and Imagen all build on this denoising framework.

## Links

- arXiv: https://arxiv.org/abs/2006.11239
- PDF: https://arxiv.org/pdf/2006.11239
- Code: https://github.com/hojonathanho/diffusion
- Project page: https://hojonathanho.github.io/diffusion

## Citation

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