It is the last quarter of 2020. DDPM (Ho et al., 2020) has just shown that a stack of learned denoising steps can match the image quality of adversarial networks, but the mechanism is expensive to run: generating one sample means simulating a Markov chain of up to a thousand sequential network evaluations. Within eight weeks of each other, two papers reframe what a diffusion model actually is — one as a family of non-Markovian processes that share DDPM’s training objective but not its slow sampler, the other as a single continuous-time stochastic differential equation that DDPM and an earlier line of score-based models both turn out to be discretizations of. A third paper, arriving a few months later, tightens the noise schedule and loss itself. Together they turn diffusion from a proof of concept into something a product team could plausibly ship.
Where We Were
DDPM’s generative process is a fixed, Markovian chain: to produce an image, the model starts from pure noise and takes a reverse step at every one of timesteps, each step calling the same denoising network once. The paper that established this — covered in Chapter 8, which owns the forward-noising construction and the simplified denoising loss that DDPM trains on — used . That is not a rounding choice; the reverse process is only accurate when each step removes a small enough amount of noise that a Gaussian approximation holds, and DDPM’s ablations showed sample quality degrading sharply once fewer steps were used with the same sampler. A thousand sequential network calls per image is a real cost: no caching, no batching across steps, and no way around it, because step ‘s input is step ‘s output.
This was not the first time score functions and iterative denoising had been connected. A separate line of work, noise-conditional score networks (Song and Ermon, 2019) — also covered in Chapter 8 — trained a network to estimate the gradient of the log data density (the score) at several noise levels and used that gradient in Langevin dynamics to sample, arriving at image quality comparable to early GANs without adversarial training. DDPM and this score-based line looked, on the surface, like two separate research programs: one derived from a variational bound on a probabilistic model, the other from score matching and Langevin sampling. Both were slow for the same underlying reason — both needed many small, sequential steps — but neither paper had shown the other why.
By late 2020, the bottleneck was well understood even if the fix was not: whatever made diffusion sampling slow was tied to the assumption that the reverse process had to retrace the exact same discrete chain used in training, one small step at a time, with no way to skip ahead.
The Breakthrough
Denoising diffusion implicit models (Song, Meng, and Ermon, 2020) — DDIM — attacked the Markov assumption directly. The authors observed that DDPM’s training objective depends only on the marginal noising distribution at each timestep, not on the specific Markovian chain used to reach it. That leaves room to construct an entire family of non-Markovian forward processes that produce the exact same marginals, and therefore train with the exact same objective as DDPM, while having a different — and much more flexible — reverse process. One member of that family has a fully deterministic reverse map: given a noisy image at step , there is a unique output at any earlier step , with no added noise in between. Because the reverse process no longer has to retrace every intermediate step to stay valid, it can jump across large gaps in the timestep sequence, generating a comparable image in a few dozen network calls instead of a thousand — the paper reports 10x to 50x wall-clock speedups over DDPM at matched quality. Determinism carries a second consequence: an image now has a single, fixed noise seed as its latent code, so two seeds can be interpolated and decoded into a smooth, semantically coherent path between two images — a capability the stochastic DDPM sampler does not offer.
Score-based generative modeling through stochastic differential equations (Song et al., 2020) — Score-SDE — took a different route to a related destination. Rather than starting from DDPM’s discrete Markov chain, it modeled the forward noising process as a continuous-time stochastic differential equation (SDE): noise is injected continuously as time flows from to , not in a fixed number of discrete jumps. Every SDE has a corresponding reverse-time SDE that runs the noising process backward, and that reverse SDE depends on exactly one unknown quantity: the score of the noisy data distribution at each point in time — the same score that noise-conditional score networks had already been trained to estimate, and the same quantity DDPM’s noise-prediction network turns out to compute in disguise. That single observation unified both prior research programs: DDPM, DDIM, and score-based models are all discretizations of the same underlying object, differing only in the noising schedule and the sampler applied to it. The continuous-time view also produces a companion object with no randomness at all, the probability flow ODE, whose deterministic trajectories share the same marginal distributions as the stochastic reverse SDE — DDIM’s deterministic sampler is, in this framing, one particular discretization of this ODE.
Improved denoising diffusion probabilistic models (Nichol and Dhariwal, 2021) came at the same problem from inside DDPM’s own discrete framework rather than by generalizing it. The paper made three changes: it let the reverse process learn its per-step variance instead of fixing it to a hand-set constant, it replaced DDPM’s linear noise schedule with a cosine schedule that destroys information more gradually near the end of the forward process, and it trained on a hybrid objective that mixes DDPM’s simple denoising loss with a small amount of the full variational bound, specifically to make the learned variances trainable without the noisy gradients that optimizing the full bound alone produces. The combined effect, per the paper’s own claim, was that learning the reverse-process variances allowed sampling with an order of magnitude fewer forward passes than the original fixed-variance sampler, at a negligible cost in sample quality — a result obtained without leaving DDPM’s discrete-time, Markovian formulation at all.
The Mathematics
DDIM’s deterministic sampling step reuses DDPM’s noise-prediction network but changes how successive steps are combined. Following DDIM’s own notation, where denotes the cumulative noise-retention product Ho et al. call — the same quantity Chapter 8 writes with the bar; DDIM drops it:
| Symbol | Meaning |
|---|---|
| noisy image at timestep | |
| image at an earlier, not necessarily adjacent, timestep | |
| cumulative noise-retention product at each timestep (DDIM’s notation for DDPM’s ) | |
| network’s predicted noise, given the current noisy image and timestep |
Score-SDE describes the forward noising process as a general Itô stochastic differential equation, of which DDPM’s discrete chain is one specific discretization:
| Symbol | Meaning |
|---|---|
| the state (image) at time , evolving continuously | |
| continuous time, running from data () to noise () | |
| drift term, the deterministic part of the evolution | |
| diffusion coefficient, scaling how much noise is injected | |
| standard Wiener process supplying the randomness |
Every such forward SDE has a corresponding reverse-time SDE that undoes the noising, and it depends on exactly one learned quantity — the score:
| Symbol | Meaning |
|---|---|
| same roles as in the forward SDE, evaluated in reverse | |
| the score: gradient of the log density of noisy data at time | |
| Wiener process running backward in time |
Setting the noise term to zero gives a deterministic companion with the same marginal distributions at every — the probability flow ODE:
| Symbol | Meaning |
|---|---|
| same roles as in the forward SDE | |
| the score, here weighted by instead of the full in the reverse SDE |
The unification also explains why DDPM’s own noise-prediction network already had everything needed for a score-based sampler:
| Symbol | Meaning |
|---|---|
| the score at noise level | |
| DDPM’s trained noise-prediction network | |
| cumulative noise-retention product at timestep |
Improved DDPM’s cosine noise schedule replaces DDPM’s linear schedule for :
| Symbol | Meaning |
|---|---|
| cumulative signal-retention fraction at timestep | |
| unnormalized cosine schedule function | |
| current timestep and total number of timesteps | |
| small offset preventing near-zero noise at |
Finally, the hybrid loss that makes learned variances trainable without destabilizing the mean prediction:
| Symbol | Meaning |
|---|---|
| combined training loss | |
| DDPM’s original simplified denoising loss | |
| full variational lower bound, supplies the variance gradient | |
| small weight preventing from dominating training |
What It Enabled
The immediate effect was that diffusion stopped requiring a choice between “slow and stochastic” and “fast and low quality.” A single trained DDPM checkpoint could now be sampled with an ancestral sampler for maximum fidelity, or with DDIM for a fast preview, or with a predictor-corrector scheme for a middle ground — and Improved DDPM’s schedule and hybrid loss made the underlying network itself more sample-efficient no matter which sampler ran on top of it.
| DDPM sampler | DDIM sampler | Score-SDE (continuous) | |
|---|---|---|---|
| Underlying process | discrete Markov chain | non-Markovian, same training loss as DDPM | continuous-time SDE / ODE |
| Typical steps to a good sample | up to 1,000 | tens (10x–50x faster wall-clock than DDPM) | flexible; ODE solvers can adapt step size |
| Stochastic or deterministic | stochastic | deterministic (or a tunable blend) | either, via SDE or probability-flow ODE |
| Latent-space interpolation | not well-defined | yes, directly | yes, via the ODE |
| Reported result | GAN-competitive images (2020-06) | 10x–50x speedup at matched quality | CIFAR-10 FID 2.20, Inception Score 9.89, 2.99 bits/dim; first 1024×1024 score-based samples |
Score-SDE’s probability flow ODE also made exact likelihood computation tractable for the first time in this model family, via the standard change-of-variables formula for continuous normalizing flows — a capability score-based and DDPM-style models had lacked, and one that let researchers report bits-per-dimension numbers directly comparable to earlier likelihood-based generative models.
The downstream lineage runs in two directions. Guided diffusion built directly on Improved DDPM’s architecture and added classifier guidance to trade diversity for fidelity, a technique generalized shortly after into classifier-free guidance — both covered in Chapter 10. Separately, DDIM’s demonstration that a fixed model tolerates a much shorter, custom sampling trajectory became the starting assumption for an entire later research thread on cutting sampling down further still, from tens of steps to a handful or to one, covered in Chapter 18. The probability flow ODE’s framing of generation as following a deterministic path from noise to data also generalizes into a broader family of straight-line and simulation-free training objectives, covered in Chapter 19. And once diffusion moved off pixels entirely, into the compressed latent spaces covered in Chapter 13, DDIM-style samplers became the default choice precisely because the per-step cost of an already-fast latent-space model made every additional step count.
Key Papers
| Paper | Authors | Year | Link | Why it matters |
|---|---|---|---|---|
| Denoising Diffusion Implicit Models | Song, Meng, and Ermon | 2020 | arXiv:2010.02502 | Removed the Markov assumption from DDPM’s sampler, cutting wall-clock sampling time 10x–50x and enabling deterministic latent-space interpolation |
| Score-Based Generative Modeling through Stochastic Differential Equations | Song et al. | 2020 | arXiv:2011.13456 | Unified DDPM and score-based models as discretizations of one continuous-time SDE; introduced the probability flow ODE and exact likelihood computation |
| Improved Denoising Diffusion Probabilistic Models | Nichol and Dhariwal | 2021 | arXiv:2102.09672 | Learned variances, a cosine noise schedule, and a hybrid loss cut required sampling steps by roughly an order of magnitude within DDPM’s own framework |
PM Lens
Papers referenced
- Denoising Diffusion Implicit Models Song, Meng, and Ermon · 2020 · arXiv:2010.02502
- Score-Based Generative Modeling through Stochastic Differential Equations Song et al. · 2020 · arXiv:2011.13456
- Improved Denoising Diffusion Probabilistic Models Nichol and Dhariwal · 2021 · arXiv:2102.09672