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

FieldValue
PaperDenoising Diffusion Probabilistic Models
AuthorsJonathan Ho, Ajay Jain, Pieter Abbeel
Year2020
VenueNeurIPS 2020
arXiv2006.11239
Project pagehojonathanho.github.io/diffusion
Codehojonathanho/diffusion
Statusfull 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:

  1. define a forward diffusion process that gradually destroys data;
  2. train a reverse process to undo it;
  3. use a simplified denoising objective;
  4. sample through many reverse steps.

Architecture Contract

ComponentRole
data clean image or sample
forward process fixed Gaussian noising chain
reverse process learned denoising chain
denoising networkpredicts reverse transition statistics or noise
timestep embeddingtells the network which noise level it is denoising
noise schedulecontrols corruption strength over time
sampling loopiteratively 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:

  1. sample a real data point ;
  2. sample a timestep ;
  3. sample Gaussian noise ;
  4. construct noisy ;
  5. 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:

  1. sample ;
  2. for :
  3. predict ;
  4. compute ;
  5. sample from the reverse Gaussian;
  6. 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

AxisGANDDPM
generatorone-shot map from latent to sampleiterative denoising chain
training signaladversarial discriminatordenoising/variational objective
likelihoodusually not tractablevariational bound available
sampling speedfastoften slow
sample qualitysharp but unstable training riskhigh quality with stable denoising training
mode coveragecan suffer mode collapsegenerally 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 ConceptMolecular/Structure Analogue
imagemolecule, conformation, protein complex, coordinates
Gaussian noisingcoordinate noise, graph corruption, categorical noise
denoising networkequivariant GNN, Transformer, structure module
timestepnoise level
conditionpocket, sequence, scaffold, text, target
sample validitychemical/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:

EvidenceSupportsDoes Not Prove Alone
CIFAR-10 FIDstrong sample quality for small imagesuniversal superiority across domains
LSUN samplesscalability to higher-resolution image domainsfast sampling
variational boundlikelihood-oriented interpretationbest likelihood among all models
rate-distortion curvesprogressive compression interpretationsemantic controllability
sample visual qualitypractical generative usefulnesscalibrated 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:

ChoiceWhy It Matters
noise schedule controls signal-to-noise progression
timestep embeddinglets denoiser condition on noise level
denoiser architecturecontrols inductive bias and capacity
parameterizationnoise, clean data, score, or velocity target
variance handlingaffects likelihood and sampling
number of sampling stepsquality/latency tradeoff
data scalingGaussian 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 ModeWhy It Matters
ignoring sampler step countquality and latency depend heavily on it
comparing FID without sampling budgetunfair if one model uses many more evaluations
treating diffusion as one architecturedenoiser architecture still matters
confusing noise prediction with score prediction conventionsscale and sign depend on parameterization
assuming likelihood and sample quality always alignthey can trade off
porting image DDPM directly to moleculeschemical validity and symmetry need domain-specific design
ignoring conditioning leakageconditional 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:

Connections