v9.1.1
Menu
Paper breakdownGenerativePRO2020

Diffusion Models

Denoising Diffusion Probabilistic Models (DDPM)

Jonathan Ho, Ajay Jain, Pieter Abbeel

7

Concepts

Paper Overview

Denoising Diffusion Probabilistic Models (DDPMs) are generative models that learn to produce images by reversing a gradual noising process. The core idea: define a forward process that progressively destroys data by adding Gaussian noise over T=1000T = 1000 steps until the image becomes pure noise, then train a neural network to learn the reverse process — denoising one step at a time, gradually transforming noise back into coherent images.

Why diffusion models won: Unlike GANs (adversarial training → mode collapse, training instability) and VAEs (evidence lower bound → blurry outputs), DDPMs optimize a simple mean squared error loss between predicted and actual noise: L=E[∥ϵ−ϵθ(xt,t)∥2]L = \mathbb{E}[\|\epsilon - \epsilon_\theta(x_t, t)\|^2]. This loss is stable, well-behaved, and doesn't require adversarial dynamics or carefully balanced architectures.

Key results from the DDPM paper (Ho et al., 2020):

  • FID 3.17 on unconditional CIFAR-10 (32×32), better than most models at the time, including class-conditional ones
  • Inception Score 9.46 on CIFAR-10
  • Log likelihoods (3.75 bits/dim) are not competitive with autoregressive models; most of the codelength goes to imperceptible detail

DDPMs form the foundation of virtually all modern image generation systems: Stable Diffusion (Latent Diffusion + CLIP conditioning), DALL-E 2 (CLIP + diffusion prior + decoder), Midjourney, Imagen (T5 text encoder + cascaded diffusion), and Sora (video diffusion). The architecture has extended to audio (AudioLDM), 3D (DreamFusion), video (Stable Video Diffusion), and molecular design (DiffDock).

Explainer video
Preview · first 30s

Chapter Roadmap

Click any topic to jump in

1
Forward Diffusion Process

Gaussian noise schedule that lets you jump to any timestep in closed form — $x_t = \sqrt{\bar\alpha_t} x_0 + \sqrt{1-\bar\alpha_t} \epsilon$.

2
Reverse Denoising Process

Train a noise predictor with MSE; sample by iteratively subtracting predicted noise from $x_T$ to $x_0$.

3
Noise Schedule

Linear vs cosine $\beta_t$ — the ramp shape controls where training signal is spent, and cosine wins on FID.

Forward/reverse process defined by the schedule
4
U-Net Architecture for Denoising

U-Net with time-conditioned FiLM layers and self-attention at low resolutions — the workhorse of modern diffusion.

5
DDIM: Faster Deterministic Sampling

Non-Markovian deterministic sampler — 20× fewer steps and invertible latent interpolation.

Parameterized by a U-Net with fast samplers
6
Classifier-Free Guidance (CFG)

Extrapolate in the direction that conditioning changes the prediction — no extra classifier needed, just one net.

7
Latent Diffusion: Efficient High-Resolution

Run diffusion in a VAE latent space ($64\times$ smaller) — 48× less compute, same perceptual quality.

Concept by concept

7 sections, in reading order.

PRO

Unlock the full breakdown

All 7 concepts — figures, key points, formulas and interactive demos — are part of PixelBank Premium.

  1. 01Forward Diffusion Process
  2. 02Reverse Denoising Process
  3. 03Noise Schedule
  4. 04U-Net Architecture for Denoising
  5. 05DDIM: Faster Deterministic Sampling
  6. 06Classifier-Free Guidance (CFG)
  7. 07Latent Diffusion: Efficient High-Resolution