skip to content

Search

← From Noise to Image

Part III — Speed and the Frontier (2022–2026)

Few-Step Generation

Progressive distillation, consistency models, LCMs, and adversarial distillation: 50 steps to 1.

2022–2023 16 min read 4 papers

It is early 2022. Diffusion models already produce images that rival adversarial networks, and DDIM (Chapter 9) has already cut sampling from a thousand steps to a few dozen, but a few dozen sequential network calls is still far from the tens-of-milliseconds latency an interactive product needs. Over the next twenty months, four papers attack that remaining gap from four different angles — and by late 2023, the same class of model that once took a minute per image runs at a handful of steps, some of them fast enough for a live preview as a user types.

Where We Were

By 2022, a trained diffusion checkpoint could be sampled several different ways without retraining: an ancestral DDPM sampler for maximum fidelity, or DDIM (Chapter 9) for a faster, deterministic path through the same probability flow ODE. DDIM’s contribution was to show that the reverse process did not have to retrace every discrete step used in training — it could jump across gaps in the timestep schedule. That insight cut sampling from roughly a thousand steps to tens of steps, a 10x-to-50x wall-clock improvement, but it did not remove the sequential dependency itself: each of those tens of steps still had to wait on the output of the one before it, and each step was a full forward pass through a large denoising network.

Two other costs compounded the problem. First, classifier-free guidance (Chapter 10) — the technique that made text-to-image models actually follow their prompts — requires two network evaluations per step, one conditional and one unconditional, so a “20-step” guided sampler is closer to 40 network calls in practice. Second, once diffusion moved into the compressed latent spaces of latent diffusion and Stable Diffusion (Chapter 13), each individual step got cheaper, but the model itself — a large U-Net operating at high resolution — did not get faster to evaluate once per step. Multiplying a lower per-step cost by tens of guided steps still left a product with a multi-second wait between a prompt and a finished image, an experience closer to a batch job than to typing into a search box.

Fewer steps, but every step got more expensive DDIM shortened the chain; guidance then doubled the cost of what was left, faster than the chain shrank. Grey monospace text is the wall-clock consequence of each step. 2020-10 DDIM cuts to tens of steps chain stays sequential 1000 to ~50 steps 2021-05 Guided diffusion doubles cost per step via a classifier gradient extra backward pass 2022-07 Classifier-free guidance removes the classifier keeps the doubled cost cond + uncond calls 2022-08 Stable Diffusion ships ~50-step guided default a multi-second wait 50 steps x 2 calls a shorter chain a judgement that adds cost back the product-facing wait this chapter's four papers close
Sampling got shorter while guidance quietly doubled the cost of every step that remained, leaving a multi-second wait even after DDIM's win. PNG ↓

Sampler research through 2021 had focused on getting more image quality out of a fixed step budget — better ODE solvers, better noise schedules — rather than on asking whether the number of required steps could itself be trained down. That reframing, treating step count as a quantity a second training pass could optimize directly, is what the next four papers share, even though they arrive at it through different mechanisms.

The Breakthrough

Progressive distillation: halving the ladder. Tim Salimans and Jonathan Ho’s progressive distillation (Salimans and Ho, 2022) treated an already-trained diffusion model as a teacher and trained a student to match its output using half as many sampling steps. The student is not trained to imitate individual noise predictions; it is trained so that one student DDIM step reproduces the effect of two teacher DDIM steps in a row. Once that student matches its teacher, the student becomes the new teacher for a second round, halving the step count again — 1,024 steps to 512, to 256, and on down. The paper reports reaching as few as 4 sampling steps while keeping image quality competitive with the original many-step sampler, and the entire multi-round distillation procedure costs roughly the same compute as training the original model once, not once per round.

Consistency models: skip the ladder entirely. A year later, Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever asked whether a single network could learn to map any point on a diffusion trajectory directly to that trajectory’s starting point, in one function call, rather than learning to shorten a sequence of steps (Song et al., 2023). The probability flow ODE that DDIM and Score-SDE describe (Chapter 9) traces a deterministic path from a noisy point back to a clean image; consistency models train a network to output that same clean image no matter which point along the path it is given. Once trained, the network can produce a full image in a single forward pass — and, unlike progressive distillation’s fixed halving schedule, it can also be called two or three times, feeding its own output back in with a bit of re-added noise, to trade a small amount of extra compute for higher fidelity. The paper trains consistency models two ways: distilled from an existing pretrained diffusion model’s probability flow ODE, or trained as an independent generative model from scratch with no teacher at all, using an unbiased estimator of the same trajectory.

One network, called once, maps any noisy point to the clean image Two different points on the same trajectory feed the same network and land on the same estimate. Grey monospace text names the paper's own trajectory notation. Noisy point x_t any timestep t a point on the ODE path Same trajectory, x_t' a different timestep t' closer to, or further from, noise Consistency network f-theta(x, t) Song, Dhariwal, Chen, Sutskever Direct estimate of x_0 the clean image, one call one-step image Feed back with re-added noise optional, trades compute for fidelity two- or three-step image one-step image re-added noise, fed back into f-theta input, any point on the trajectory the trained network a finished image an optional extra pass through the same network
The network agrees with itself at every point on the trajectory, so one call already returns a finished image; an extra pass is optional, not required. PNG ↓

Latent consistency models: consistency meets text-to-image at scale. Consistency models were demonstrated on unconditional benchmarks — CIFAR-10, ImageNet, LSUN — not on guided, text-conditioned latent diffusion. Simian Luo, Yiqin Tan, Longbo Huang, Jian Li, and Hang Zhao closed that gap by distilling the consistency property directly into Stable Diffusion’s latent space, folding the classifier-free guidance scale into the trajectory itself rather than treating it as a separate doubled forward pass at sampling time (Luo et al., 2023). The resulting Latent Consistency Model (LCM) produces 768×768 images in two to four steps, and — because the guidance scale becomes an input the network conditions on during distillation, rather than a second network call at inference — a “4-step” LCM sample really does cost close to four forward passes, not eight. The distillation itself was inexpensive by the standards of training a base model: the paper reports a high-quality 2-to-4-step LCM built from a pretrained Stable Diffusion checkpoint in roughly 32 A100 GPU-hours.

Adversarial diffusion distillation: borrowing the GAN’s realism at one step. Consistency-style distillation still trains the student to match the teacher’s predictions; it does not directly optimize for what a human viewer perceives as sharp, realistic detail, and single-step samples from consistency-style students tend to look softer than multi-step diffusion output. Axel Sauer, Dominik Lorenz, Andreas Blattmann, and Robin Rombach’s adversarial diffusion distillation (ADD) combined two training signals rather than one: a score-distillation loss that keeps the student’s output attached to a frozen teacher diffusion model, and an adversarial loss — a discriminator, borrowed from the GAN training playbook of Chapter 4, whose only job is to tell real images apart from the student’s single-step output (Sauer et al., 2023). The discriminator supplies the missing realism signal that a pure distillation loss cannot; the frozen teacher keeps the student’s output faithful to the prompt and to the base model’s overall composition, preventing the mode collapse that plagued earlier GAN-only text-to-image efforts (Chapter 6, Chapter 7). ADD is the mechanism behind SDXL-Turbo, released the same month, which the paper reports outperforms existing few-step methods — including GANs and LCM — at a single step, and reaches image quality comparable to the full 50-step SDXL base model (Chapter 13) at four steps.

A discriminator supplies the realism a distillation loss alone cannot Two training signals push the same one-to-four-step student: stay faithful to the teacher, and fool the discriminator. Grey monospace text names the paper's mechanism. Frozen teacher model full multi-step diffusion Sauer, Lorenz, Blattmann, Rombach Student network one to four steps SDXL-Turbo Discriminator real versus fake, single step borrowed from GAN training Real images training set samples the realism target score distillation loss generated image real vs fake signal adversarial loss frozen, provides fidelity trained, few-step trained, provides sharpness fixed, the realism target
The teacher keeps the student honest about the prompt; the discriminator, borrowed from GAN training, supplies the sharpness a pure distillation loss loses at one step. PNG ↓

The Mathematics

Progressive distillation reparameterizes the network to predict a quantity the paper calls vv, a combination of the noise and the clean image, rather than predicting noise directly:

v≡αt ϵ−σt x,x^=αtzt−σt v^θ(zt)v \equiv \alpha_t\,\epsilon - \sigma_t\, x, \qquad \hat x = \alpha_t z_t - \sigma_t\, \hat v_\theta(z_t)
SymbolMeaning
vvthe network’s training target, a signal/noise combination
αt,σt\alpha_t, \sigma_tsignal- and noise-retention terms at step tt
ϵ,x\epsilon, xtrue noise and clean image
ztz_tnoisy latent at step tt
v^θ,x^\hat v_\theta, \hat xnetwork’s predicted vv, and the clean-image estimate recovered from it

The student’s distillation target x~\tilde x is the clean-image estimate implied by running the frozen teacher’s DDIM step (Chapter 9) twice in a row; the student is then trained to reach that same target in a single step, with a loss weighted to stay informative even where the signal-to-noise ratio collapses:

Lθ=w(λt) ∥x~−x^θ(zt)∥22,w(λt)=max⁡ ⁣(αt2σt2, 1)\mathcal{L}_\theta = w(\lambda_t)\, \big\| \tilde x - \hat x_\theta(z_t) \big\|_2^2, \qquad w(\lambda_t) = \max\!\left(\frac{\alpha_t^2}{\sigma_t^2},\, 1\right)

Consistency models parameterize the network so it always outputs an estimate of the clean image, with a built-in identity condition at the boundary of the noising schedule:

fθ(x,t)=cskip(t) x+cout(t) Fθ(x,t),fθ(xϵ,ϵ)=xϵf_\theta(x, t) = c_{\mathrm{skip}}(t)\, x + c_{\mathrm{out}}(t)\, F_\theta(x, t), \qquad f_\theta(x_\epsilon, \epsilon) = x_\epsilon
SymbolMeaning
fθf_\thetathe consistency function the network computes
x,tx, tnoisy input and its timestep
cskip(t),cout(t)c_{\mathrm{skip}}(t), c_{\mathrm{out}}(t)learned schedule functions controlling the skip connection
FθF_\thetathe raw network before the skip-connection parameterization
xϵ,ϵx_\epsilon, \epsiloninput and timestep at the boundary, nearest to clean data

The property that gives the model its name — self-consistency — requires the network to agree with itself at every point along a shared probability flow ODE trajectory:

fθ(xt,t)=fθ(xt′,t′)for all t,t′∈[ϵ,T] on the same trajectoryf_\theta(x_t, t) = f_\theta(x_{t'}, t') \quad \text{for all } t, t' \in [\epsilon, T] \text{ on the same trajectory}

Training a consistency model by distillation compares the network’s output at one point on a trajectory to its own (slowly updated) output one step closer to data, where that nearby point is estimated using a single step of a frozen teacher’s ODE solver:

LCDN(θ,θ−;ϕ)=E[λ(tn) d(fθ(xtn+1,tn+1), fθ−(x^tnϕ,tn))],x^tnϕ:=xtn+1+(tn−tn+1) Φ(xtn+1,tn+1;ϕ)\mathcal{L}_{\mathrm{CD}}^N(\theta, \theta^-; \phi) = \mathbb{E}\Big[\lambda(t_n)\, d\big(f_\theta(x_{t_{n+1}}, t_{n+1}),\ f_{\theta^-}(\hat x_{t_n}^\phi, t_n)\big)\Big], \qquad \hat x_{t_n}^\phi := x_{t_{n+1}} + (t_n - t_{n+1})\,\Phi(x_{t_{n+1}}, t_{n+1}; \phi)
SymbolMeaning
θ,θ−\theta, \theta^-student weights, and their exponential moving average used as the training target
ϕ\phifrozen teacher diffusion model’s parameters
Φ\Phione step of an ODE solver using the teacher, advancing tn+1→tnt_{n+1} \to t_n
x^tnϕ\hat x_{t_n}^\phithe nearby target point produced by that one teacher step
d(⋅,⋅)d(\cdot,\cdot)distance metric between student and target outputs
λ(tn)\lambda(t_n)per-timestep loss weight

Latent consistency distillation extends this same loss into Stable Diffusion’s latent space, adding the classifier-free guidance scale ω\omega and text condition cc as explicit inputs, and letting the teacher step skip kk timesteps at once instead of one:

z^tnΨ,ω←ztn+k+(1+ω) Ψ(ztn+k,tn+k,tn,c)−ω Ψ(ztn+k,tn+k,tn,∅)\hat z_{t_n}^{\Psi,\omega} \leftarrow z_{t_{n+k}} + (1+\omega)\,\Psi(z_{t_{n+k}}, t_{n+k}, t_n, c) - \omega\,\Psi(z_{t_{n+k}}, t_{n+k}, t_n, \varnothing)

Adversarial diffusion distillation trains the student on a weighted sum of the score-distillation loss above and an adversarial loss from a discriminator:

L(θ)=LadvG(θ;ϕ)+λ Ldistill(θ;ψ)\mathcal{L}(\theta) = \mathcal{L}_{\mathrm{adv}}^G(\theta; \phi) + \lambda\, \mathcal{L}_{\mathrm{distill}}(\theta; \psi)
SymbolMeaning
LadvG\mathcal{L}_{\mathrm{adv}}^Gstudent’s adversarial loss against the discriminator
Ldistill\mathcal{L}_{\mathrm{distill}}score-distillation loss against the frozen teacher
θ,ϕ,ψ\theta, \phi, \psistudent, discriminator, and teacher parameters
λ\lambdaweight balancing the two loss terms, set to 2.5

What It Enabled

None of these four methods retired the others; each trades a different combination of training cost, step count, and image fidelity, and product teams choose among them rather than picking a single winner.

MethodYearStepsTraining mechanismReported result
Progressive distillation2022as few as 4iterative halving, teacher-to-student, no GANFID 3.0 on CIFAR-10 at 4 steps; distillation cost comparable to one training run
Consistency models20231 (or 2–3 for a quality bump)distillation from a pretrained model, or standalone training from scratchFID 3.55 (CIFAR-10) and 6.20 (ImageNet 64×64) at 1 step
Latent Consistency Models (LCM)20232–4consistency distillation in latent space, guidance folded into the trajectoryFID 13.53 at 4 steps on LAION-Aesthetic-6.5+, 768×768, built in ~32 A100 GPU-hours
Adversarial Diffusion Distillation (SDXL-Turbo)20231–4score distillation plus an adversarial lossoutperforms LCM and GANs at 1 step; matches 50-step SDXL quality at 4 steps

The immediate product effect was that “generate an image” stopped requiring a multi-second wait. SDXL-Turbo’s model card explicitly disables classifier-free guidance and negative prompts at inference — the guidance behavior is baked into the single-step network itself rather than computed live — which is the same move LCM’s guidance-conditioned distillation made one layer earlier in the lineage. That is what made real-time, interactive diffusion products possible: a canvas that regenerates as a user drags a slider, or a live camera filter, needs frame-rate latency, not “seconds per image,” and few-step distillation is the specific research thread that closed that gap.

Four routes to fewer steps, converging on one product outcome Each method trades a different training cost for a different step count; none retires the others. Grey monospace text is the step count each stage reaches. DDIM 2020-10 tens of steps Progressive distillation 2022-02 4 steps Consistency models 2023-03 1 step LCM 2023-10, latent + guidance 2 to 4 steps SDXL-Turbo (ADD) 2023-11, adversarial 1 to 4 steps Few-step video next chapter deterministic sampler single-mechanism distillation combined mechanisms, production models
Four methods, four different training costs, converging on the same product outcome: a generate button that responds in a handful of steps instead of dozens. PNG ↓

The lineage also runs sideways into other media and into other compression axes. Consistency-style step distillation is the same underlying idea video diffusion models later adopted to make per-clip generation affordable, covered in Video Generation, Chapter 14 rather than re-derived there. And step distillation is a deliberately different compression axis from parameter distillation — shrinking a network’s weight count rather than its sampling schedule — the general teacher-student framing for which, including soft targets and temperature, is covered in Engine Room, Chapter 16; a model can be shrunk both ways at once, and production pipelines increasingly do. Separately, the probability-flow-ODE view that consistency models build on is one of two roads out of DDIM’s deterministic sampler — the other leads to training generative paths as straight lines from the start rather than distilling curved ones after the fact, covered in Chapter 19.

Key Papers

PaperAuthorsYearLinkWhy it matters
Progressive Distillation for Fast Sampling of Diffusion ModelsSalimans and Ho2022arXiv:2202.00512First to train step-count down directly, halving a teacher’s steps repeatedly; introduced the vv-parameterization for stability at few steps
Consistency ModelsSong, Dhariwal, Chen, and Sutskever2023arXiv:2303.01469Trained a single network to map any point on a diffusion trajectory directly to its endpoint, enabling true one-step sampling with an optional multi-step quality trade-off
Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step InferenceLuo, Tan, Huang, Li, and Zhao2023arXiv:2310.04378Brought consistency distillation into Stable Diffusion’s guided, text-conditioned latent space, folding classifier-free guidance into the trajectory itself
Adversarial Diffusion DistillationSauer, Lorenz, Blattmann, and Rombach2023arXiv:2311.17042Combined score distillation with an adversarial loss to reach single-step, real-time image synthesis at foundation-model quality; the mechanism behind SDXL-Turbo

PM Lens

Papers referenced