Denoising Diffusion Probabilistic Models
The paper made diffusion models a practical high-quality generative modeling recipe by training a neural network to reverse a fixed gradual noising process.
Metadata
| Field | Value |
|---|---|
| Paper | Denoising Diffusion Probabilistic Models |
| Authors | Jonathan Ho, Ajay Jain, Pieter Abbeel |
| Year | 2020 |
| Venue | NeurIPS 2020 |
| arXiv | 2006.11239 |
| Project page | hojonathanho.github.io/diffusion |
| Code | hojonathanho/diffusion |
| Status | full note started |
One-Line Takeaway
DDPM turns generation into iterative denoising: corrupt data with a known Gaussian Markov chain, train a neural network to reverse each step, and sample by starting from noise and repeatedly denoising.
Question
Before diffusion became dominant, image generation was often read through:
- GANs for sharp samples;
- VAEs for likelihood-based latent-variable modeling;
- autoregressive models for tractable likelihood and sequential decoding;
- normalizing flows for exact invertible density models.
DDPM asks:
Can a latent-variable Markov chain trained with a variational objective produce high-quality samples by reversing a simple noising process?
The generative contract:
The sample is .
Main Claim
The narrowed architecture/objective claim:
The paper is important because it made a clean recipe:
- define a forward diffusion process that gradually destroys data;
- train a reverse process to undo it;
- use a simplified denoising objective;
- sample through many reverse steps.
Architecture Contract
| Component | Role |
|---|---|
| data | clean image or sample |
| forward process | fixed Gaussian noising chain |
| reverse process | learned denoising chain |
| denoising network | predicts reverse transition statistics or noise |
| timestep embedding | tells the network which noise level it is denoising |
| noise schedule | controls corruption strength over time |
| sampling loop | iteratively maps Gaussian noise to data |
The model is an architecture family plus an objective, not a single network block. In images, the denoising network is often a U-Net-like architecture, but the DDPM idea can be used with other denoisers and domains.
Forward Diffusion
The forward process gradually adds Gaussian noise:
where:
- ;
- is the variance schedule;
- small means a small noising step.
Define:
Because the forward chain is Gaussian, there is a closed-form marginal:
This allows one-step sampling of from :
This equation is the practical training workhorse.
Reverse Process
The learned reverse process is:
Sampling starts from:
Then:
The model has to learn local denoising transitions, not a direct one-shot map:
That is the main generative architecture shift.
Noise Prediction Parameterization
The paper shows a useful parameterization where the network predicts the noise used to corrupt :
Given:
we can estimate:
The learned mean can be written in terms of predicted noise:
This form is why noise prediction became a standard diffusion interface.
Simplified Training Objective
The simplified DDPM loss is:
Reading:
- sample a real data point ;
- sample a timestep ;
- sample Gaussian noise ;
- construct noisy ;
- train the network to recover .
The model is not trained by running the full chain during every training example. The closed-form noising equation makes training efficient.
Variational Bound Reading
DDPM is a latent-variable model:
The forward process defines an approximate posterior:
The evidence lower bound can be written as:
The DDPM contribution is partly that this variational view connects to denoising score matching and yields a simple noise-prediction loss that works well in practice.
Score Matching Connection
The score of a noisy distribution is:
Under Gaussian corruption, predicting noise is related to predicting the score:
This connects DDPM to score-based generative modeling:
The paper is therefore a bridge between variational latent-variable modeling and score-based sampling.
Sampling Algorithm
A simplified DDPM sampler:
- sample ;
- for :
- predict ;
- compute ;
- sample from the reverse Gaussian;
- return .
Mathematically:
For , implementations may omit extra noise.
This iterative sampler is the source of both:
- high sample quality;
- slow sampling relative to one-shot generators.
Progressive Denoising
DDPM generation can be viewed as coarse-to-fine reconstruction:
The paper also frames the process as progressive lossy decompression. Early reverse steps recover broad semantic structure; later steps recover fine detail.
For later architectures, this view becomes important:
- image diffusion uses U-Net multi-scale denoisers;
- latent diffusion denoises compressed latent variables;
- video diffusion extends denoising over time;
- molecular diffusion denoises coordinates, graphs, or atom types.
Relation to GANs
| Axis | GAN | DDPM |
|---|---|---|
| generator | one-shot map from latent to sample | iterative denoising chain |
| training signal | adversarial discriminator | denoising/variational objective |
| likelihood | usually not tractable | variational bound available |
| sampling speed | fast | often slow |
| sample quality | sharp but unstable training risk | high quality with stable denoising training |
| mode coverage | can suffer mode collapse | generally better coverage behavior |
DDPM did not make GANs irrelevant immediately. It changed the tradeoff: slower sampling, but stable training and strong sample quality.
Relation to VAEs
DDPM is a latent-variable model, but its latent variables are a long noising trajectory:
VAE-style model:
DDPM-style model:
The decoder is not one big conditional distribution. It is many small denoising steps.
Relation to Autoregressive Models
Autoregressive models factorize data by order:
DDPM factorizes generation by noise level:
The decoding order is not pixel-by-pixel or token-by-token. It is denoising-time order.
Relation to Flow Matching
DDPM learns stochastic reverse transitions:
Flow matching and rectified flow often learn a velocity field:
Both are ways to transform a simple base distribution into a data distribution:
DDPM is the historical anchor for reading later diffusion/flow papers. Always ask:
- Is the process stochastic or deterministic?
- Is the target noise, score, clean data, or velocity?
- Is the sampler SDE-like, ODE-like, or discrete Markov?
- How many steps are used at evaluation?
Relation to AlphaFold3 and Molecular Models
AlphaFold3 uses a diffusion-based architecture for biomolecular coordinate generation. The object differs, but the generative idea is recognizable:
For molecular/protein models, DDPM provides the general reading vocabulary:
| DDPM Concept | Molecular/Structure Analogue |
|---|---|
| image | molecule, conformation, protein complex, coordinates |
| Gaussian noising | coordinate noise, graph corruption, categorical noise |
| denoising network | equivariant GNN, Transformer, structure module |
| timestep | noise level |
| condition | pocket, sequence, scaffold, text, target |
| sample validity | chemical/geometric validity |
This is why DDPM belongs in architecture notes, not only generative-model notes.
Evidence Reading
The paper reports high-quality image synthesis, including strong CIFAR-10 FID and LSUN sample quality.
Evidence should be read by claim:
| Evidence | Supports | Does Not Prove Alone |
|---|---|---|
| CIFAR-10 FID | strong sample quality for small images | universal superiority across domains |
| LSUN samples | scalability to higher-resolution image domains | fast sampling |
| variational bound | likelihood-oriented interpretation | best likelihood among all models |
| rate-distortion curves | progressive compression interpretation | semantic controllability |
| sample visual quality | practical generative usefulness | calibrated probability or downstream utility |
The central evidence is that diffusion models can be competitive high-quality generators, not just theoretical latent-variable models.
Implementation Notes
Implementation details that change behavior:
| Choice | Why It Matters |
|---|---|
| noise schedule | controls signal-to-noise progression |
| timestep embedding | lets denoiser condition on noise level |
| denoiser architecture | controls inductive bias and capacity |
| parameterization | noise, clean data, score, or velocity target |
| variance handling | affects likelihood and sampling |
| number of sampling steps | quality/latency tradeoff |
| data scaling | Gaussian assumptions depend on normalized data |
For images, the denoiser is often U-Net-like:
For graphs or 3D structures, the denoiser should match the object symmetry and representation.
Failure Modes
| Failure Mode | Why It Matters |
|---|---|
| ignoring sampler step count | quality and latency depend heavily on it |
| comparing FID without sampling budget | unfair if one model uses many more evaluations |
| treating diffusion as one architecture | denoiser architecture still matters |
| confusing noise prediction with score prediction conventions | scale and sign depend on parameterization |
| assuming likelihood and sample quality always align | they can trade off |
| porting image DDPM directly to molecules | chemical validity and symmetry need domain-specific design |
| ignoring conditioning leakage | conditional generation can use unavailable information |
Common Misreadings
”DDPM is just adding noise and removing it.”
That is the intuition, but the paper’s value is the probabilistic formulation, the closed-form noising marginal, the reverse Markov chain, and the simplified denoising objective.
”The denoising network is the whole architecture.”
No. The architecture includes the noising process, timestep parameterization, reverse transition parameterization, denoising network, and sampler.
”Diffusion models are always slow.”
Original DDPM sampling is slow because it uses many denoising steps. Later samplers and parameterizations reduce the step count, but the speed-quality tradeoff remains a core reading axis.
”DDPM only matters for images.”
No. The image results made it visible, but the diffusion recipe became a general template for audio, video, 3D, molecules, proteins, and control.
Later-Paper Checklist
When reading later diffusion or flow papers, check:
- What is the corrupted object: pixels, latents, tokens, graphs, coordinates, fields?
- Is the process discrete-time or continuous-time?
- Does the model predict noise, score, clean data, or velocity?
- What is the noising schedule?
- What denoiser architecture is used?
- Is the sampler stochastic or deterministic?
- How many sampling steps are reported?
- Is guidance used?
- Is evaluation budget matched?
- Are invalid samples filtered before metrics?
- Does the model preserve domain symmetries such as permutation, rotation, or translation?
Why It Matters
DDPM is a foundation paper for modern generative modeling because it turned a conceptually simple denoising process into a competitive generative architecture.
For this wiki, it connects:
It also gives the vocabulary needed to read diffusion-based scientific architectures such as AlphaFold3, molecular conformation generation, and protein design models.
Limitations
The original DDPM recipe has important limitations:
- sampling requires many steps;
- image denoisers do not automatically transfer to structured scientific objects;
- sample quality depends strongly on schedule and architecture;
- likelihood and perceptual quality are not identical;
- evaluation metrics such as FID are imperfect;
- conditional generation and guidance require separate analysis.
The defensible claim:
The overclaim to avoid: