Simple Algorithm
Deep Learning · Emergence · 28 min

Few-Step Generation

Progressive distillation, consistency models and adversarial distillation.

A diffusion sampler spends tens to hundreds of network evaluations on one image, twice that with guidance. Yet the probability-flow ODE already defines a deterministic map from noise to data, so one evaluation would do if a network could learn that map. Distillation, consistency and adversarial training are three ways to learn it, and each pays in a different currency: training cost, a little quality, or diversity.

What you’ll learn

  • Explain why a single coarse ODE step fails and what a one-step generator must learn instead: the flow map of the probability-flow ODE.
  • Derive the progressive-distillation target that makes one student DDIM step match two teacher steps, and explain why it needs x\mathbf x- or v\mathbf v-prediction.
  • Define consistency models, prove the error bound for consistency distillation, and explain how consistency training removes the teacher.
  • Derive the distribution-matching gradient as a difference of two scores, and compare adversarial and distribution-matching distillation in quality, diversity and cost.

The map a one-step generator must learn

Sampling cost is the number of network evaluations (NFE) times the cost of one evaluation, doubled by classifier-free guidance. The best ODE solvers of The Design Space of Diffusion Models need tens of evaluations, and simply taking fewer, larger steps fails. In EDM's coordinates the ODE is dx/dσ=(x−D(x;σ))/σd\mathbf x/d\sigma=(\mathbf x-D(\mathbf x;\sigma))/\sigma, so a single Euler step from pure noise to σ=0\sigma=0 returns D(x;σmax⁡)D(\mathbf x;\sigma_{\max}), the denoiser's answer at maximal noise, which is close to the dataset mean for every starting point. A coarse step averages over all the trajectories it should be choosing between.

The exact probability-flow ODE, though, defines a deterministic flow map Φσ→σ′\Phi_{\sigma\to\sigma'} that carries a point at noise level σ\sigma along its trajectory to level σ′\sigma'. Flow maps compose, Φσ′→σ′′∘Φσ→σ′=Φσ→σ′′\Phi_{\sigma'\to\sigma''}\circ\Phi_{\sigma\to\sigma'}=\Phi_{\sigma\to\sigma''}, and Φσmax⁡→0\Phi_{\sigma_{\max}\to0} pushes the starting noise forward to the data distribution, up to the teacher's errors. It is a perfectly good one-step generator; it is just not available in closed form. Every method in this lesson is a way to learn it, or to learn a different map with the same output distribution.

The most direct approach is regression. Luhman & Luhman (2021) generated pairs of starting noise and final ODE output with a trained teacher and fitted a student G(z)≈Φσmax⁡→0(z)G(\mathbf z)\approx\Phi_{\sigma_{\max}\to0}(\mathbf z) in one step, reaching sample quality comparable to GANs of the time on CIFAR-10 and CelebA without adversarial training. Its costs are the reasons for everything that followed: every training pair needs a full teacher solve, and an intricate map is hard to fit in one shot.

Progressive distillation

Progressive distillation (Salimans & Ho, 2022) splits the problem into easy pieces: teach a student to do in one deterministic DDIM step what the teacher does in two, then make the student the next teacher and repeat, halving the number of steps each round. Here the noisy sample is zt=αtx+σtϵ\mathbf z_t=\alpha_t\mathbf x+\sigma_t\boldsymbol\epsilon with data x\mathbf x, continuous time t∈[0,1]t\in[0,1] and αt2+σt2=1\alpha_t^2+\sigma_t^2=1 (so αt=αˉt\alpha_t=\sqrt{\bar\alpha_t} in the notation of Diffusion Models), and a DDIM step from tt to an earlier ss with clean-image prediction x^\hat{\mathbf x} is zs=αsx^+σsσt(zt−αtx^)\mathbf z_s=\alpha_s\hat{\mathbf x}+\frac{\sigma_s}{\sigma_t}(\mathbf z_t-\alpha_t\hat{\mathbf x}).

DerivationThe target that makes one step equal two
  1. zt′=αt′x^η(zt)+σt′σt(zt−αtx^η(zt)),zt′′=αt′′x^η(zt′)+σt′′σt′(zt′−αt′x^η(zt′))\mathbf z_{t'}=\alpha_{t'}\hat{\mathbf x}_\eta(\mathbf z_t)+\frac{\sigma_{t'}}{\sigma_t}\big(\mathbf z_t-\alpha_t\hat{\mathbf x}_\eta(\mathbf z_t)\big),\qquad\mathbf z_{t''}=\alpha_{t''}\hat{\mathbf x}_\eta(\mathbf z_{t'})+\frac{\sigma_{t''}}{\sigma_{t'}}\big(\mathbf z_{t'}-\alpha_{t'}\hat{\mathbf x}_\eta(\mathbf z_{t'})\big)

    For a student with NN steps, pick t=i/Nt=i/N and let the teacher take two DDIM steps, through t′=t−12Nt'=t-\tfrac{1}{2N} to t′′=t−1Nt''=t-\tfrac1N:

  2. x~=zt′′−(σt′′/σt) ztαt′′−(σt′′/σt) αt\tilde{\mathbf x}=\frac{\mathbf z_{t''}-(\sigma_{t''}/\sigma_t)\,\mathbf z_t}{\alpha_{t''}-(\sigma_{t''}/\sigma_t)\,\alpha_t}

    A single student step from tt to t′′t'' with prediction x~\tilde{\mathbf x} lands at αt′′x~+σt′′σt(zt−αtx~)\alpha_{t''}\tilde{\mathbf x}+\frac{\sigma_{t''}}{\sigma_t}(\mathbf z_t-\alpha_t\tilde{\mathbf x}). Set it equal to the teacher's zt′′\mathbf z_{t''} and solve for x~\tilde{\mathbf x}:

  3. L(θ)=Ex,ϵ,i[w(λt) ∥x~−x^θ(zt)∥2],λt=log⁡αt2σt2\loss(\boldsymbol\theta)=\E_{\mathbf x,\boldsymbol\epsilon,i}\Big[w(\lambda_t)\,\big\|\tilde{\mathbf x}-\hat{\mathbf x}_{\boldsymbol\theta}(\mathbf z_t)\big\|^2\Big],\qquad\lambda_t=\log\frac{\alpha_t^2}{\sigma_t^2}

    Train the student, initialized as a copy of the teacher, with the usual weighted regression but this target in place of the data:

  4. The target is a deterministic function of zt\mathbf z_t given the teacher. The original training target, the data x\mathbf x, is not: many images could have produced zt\mathbf z_t, and the regression returns their blurry average. The student can therefore afford sharp predictions, which is what lets it take larger steps.

Predict before you look

Progressive distillation starts from a teacher that samples in 1,024 steps. How many rounds of halving produce a 4-step student?

Show the answer

8

1024/4=256=281024/4=256=2^8, so 8 rounds. Salimans & Ho trained 50,000 updates per round (100,000 for the 2- and 1-step rounds), and the total cost of distilling down to 4 steps was comparable to or below that of training the original model. On CIFAR-10, starting from 8,192 steps, they reached FID 3.0 with 4 steps.

Parameterization matters. Each round evaluates the student at lower signal-to-noise ratios, and the last rounds start from pure noise, αt=0\alpha_t=0. There noise prediction breaks down: x^=(zt−σtϵ^)/αt\hat{\mathbf x}=(\mathbf z_t-\sigma_t\hat{\boldsymbol\epsilon})/\alpha_t divides by zero, the input zt=ϵ\mathbf z_t=\boldsymbol\epsilon says nothing about x\mathbf x, and the ϵ\boldsymbol\epsilon-loss, which equals SNR⋅∥x−x^∥2\mathrm{SNR}\cdot\norm{\mathbf x-\hat{\mathbf x}}^2, gives that case zero weight. Salimans & Ho therefore predicted x\mathbf x directly, or a mix of x\mathbf x and ϵ\boldsymbol\epsilon, or v=αtϵ−σtx\mathbf v=\alpha_t\boldsymbol\epsilon-\sigma_t\mathbf x with x^=αtzt−σtv^\hat{\mathbf x}=\alpha_t\mathbf z_t-\sigma_t\hat{\mathbf v} (Continuous Flows & Flow Matching shows v\mathbf v is a velocity), with weights max⁡(SNR,1)\max(\mathrm{SNR},1) or SNR+1\mathrm{SNR}+1 on ∥x−x^∥2\norm{\mathbf x-\hat{\mathbf x}}^2, and they trained so that the last time index has SNR exactly zero.

Results and limits. The distilled models stayed near the teacher's quality down to 4 or 8 steps and degraded faster at 2 and 1, while undistilled DDIM and stochastic samplers degraded sharply below about 128 steps. Guidance distillation (Meng et al., 2023) applies the same idea to classifier-free guidance: first a student that takes the guidance weight ww as an input learns to output the guided combination in one evaluation, then progressive distillation cuts its steps, giving 1 to 4 steps for latent text-to-image models.

Check your understanding

Why can a progressive-distillation student make sharper predictions than the model it was copied from?

  1. It is a larger network
  2. Its target x~\tilde{\mathbf x} is fully determined by zt\mathbf z_t through the teacher's deterministic steps, whereas the original target x\mathbf x is uncertain given zt\mathbf z_t, so the original regression averages over possibilities
  3. It is trained with an adversarial loss
  4. It sees the clean data x\mathbf x at test time
Show the answer

B. Its target x~\tilde{\mathbf x} is fully determined by zt\mathbf z_t through the teacher's deterministic steps, whereas the original target x\mathbf x is uncertain given zt\mathbf z_t, so the original regression averages over possibilities

A squared-error regression returns the conditional mean of its target. For the original model that mean averages many clean images; for the student, the target is a single deterministic point, the endpoint of two teacher steps, so the optimum is sharp and larger steps become possible.

Consistency models

Consistency distillation (CD) enforces self-consistency between neighboring noise levels σn<σn+1\sigma_n<\sigma_{n+1} of an EDM-style grid. Draw a data point and noise it to xσn+1\mathbf x_{\sigma_{n+1}}; take one ODE-solver step with a pretrained teacher's score to get x^σn\hat{\mathbf x}_{\sigma_n} on (nearly) the same trajectory; and minimize λ(σn) d(fθ(xσn+1,σn+1),fθ−(x^σn,σn))\lambda(\sigma_n)\,d\big(f_{\boldsymbol\theta}(\mathbf x_{\sigma_{n+1}},\sigma_{n+1}),f_{\boldsymbol\theta^-}(\hat{\mathbf x}_{\sigma_n},\sigma_n)\big) for a metric dd (squared ℓ2\ell_2, ℓ1\ell_1 or LPIPS), where θ−\boldsymbol\theta^- is a stop-gradient copy of θ\boldsymbol\theta, originally an exponential moving average of it. Without the boundary condition, the constant function f≡0f\equiv\mathbf 0 would be perfectly self-consistent; with it, consistency propagates the identity at σmin⁡\sigma_{\min} up the whole trajectory.

DerivationProof
  1. en+1=fθ(x^σn,σn)−fθ(xσn,σn)+en\mathbf e_{n+1}=f_{\boldsymbol\theta}(\hat{\mathbf x}_{\sigma_n},\sigma_n)-f_{\boldsymbol\theta}(\mathbf x_{\sigma_n},\sigma_n)+\mathbf e_n

    Let en=fθ(xσn,σn)−f(xσn,σn;ϕ)\mathbf e_n=f_{\boldsymbol\theta}(\mathbf x_{\sigma_n},\sigma_n)-f(\mathbf x_{\sigma_n},\sigma_n;\boldsymbol\phi) along an exact trajectory. Noised data have positive density everywhere, so zero loss forces fθ(xσn+1,σn+1)=fθ(x^σn,σn)f_{\boldsymbol\theta}(\mathbf x_{\sigma_{n+1}},\sigma_{n+1})=f_{\boldsymbol\theta}(\hat{\mathbf x}_{\sigma_n},\sigma_n), and the true ff is constant along the trajectory:

  2. ∥en+1∥≤∥en∥+L ∥x^σn−xσn∥=∥en∥+O((σn+1−σn)p+1)\norm{\mathbf e_{n+1}}\le\norm{\mathbf e_n}+L\,\norm{\hat{\mathbf x}_{\sigma_n}-\mathbf x_{\sigma_n}}=\norm{\mathbf e_n}+\order{(\sigma_{n+1}-\sigma_n)^{p+1}}

    The solver step lands within its local error of the true point, and fθf_{\boldsymbol\theta} is Lipschitz:

  3. ∥en∥≤∑k<nO((σk+1−σk)p+1)≤O((Δσ)p) (σmax⁡−σmin⁡)=O((Δσ)p)■\norm{\mathbf e_n}\le\sum_{k<n}\order{(\sigma_{k+1}-\sigma_k)^{p+1}}\le\order{(\Delta\sigma)^p}\,(\sigma_{\max}-\sigma_{\min})=\order{(\Delta\sigma)^p}\qquad\blacksquare

    The boundary condition makes e1=0\mathbf e_1=\mathbf 0. Summing the recursion, each term is at most (σk+1−σk)⋅O((Δσ)p)(\sigma_{k+1}-\sigma_k)\cdot\order{(\Delta\sigma)^p}, and the step lengths add up to σmax⁡−σmin⁡\sigma_{\max}-\sigma_{\min}:

Consistency training (CT) removes the teacher. Its only role was the score in the ODE step, and Tweedie's formula gives an unbiased estimate, ∇log⁡p(xσ;σ)=−E[(xσ−x)/σ2∣xσ]\nabla\log p(\mathbf x_\sigma;\sigma)=-\E\big[(\mathbf x_\sigma-\mathbf x)/\sigma^2\mid\mathbf x_\sigma\big]. Substituting it, the two points become the same data point noised with the same noise at the two levels, and Song et al. proved that for Euler steps and an exact teacher the distillation loss equals the training loss up to o(Δσ)o(\Delta\sigma). The grid is refined during training: coarse grids give low-variance but biased targets early, fine grids nearly unbiased ones later.

python
import torch
import torch.nn.functional as F

sigma_data, sigma_min = 0.5, 0.002

def consistency_fn(net, x, sigma):
    s = sigma.view(-1, *[1] * (x.dim() - 1))
    c_skip = sigma_data**2 / ((s - sigma_min)**2 + sigma_data**2)        # = 1 at sigma_min
    c_out = sigma_data * (s - sigma_min) / (sigma_data**2 + s**2).sqrt()  # = 0 at sigma_min
    c_in = 1 / (sigma_data**2 + s**2).sqrt()
    return c_skip * x + c_out * net(c_in * x, sigma)

def ct_loss(net, x0, sigmas):                  # sigmas: increasing grid, sigmas[0] = sigma_min
    n = torch.randint(0, len(sigmas) - 1, (x0.shape[0],))
    lo, hi = sigmas[n], sigmas[n + 1]
    z = torch.randn_like(x0)                   # the same noise at both levels
    pred = consistency_fn(net, x0 + hi.view(-1, *[1] * (x0.dim() - 1)) * z, hi)
    with torch.no_grad():                      # target branch: no gradient
        target = consistency_fn(net, x0 + lo.view(-1, *[1] * (x0.dim() - 1)) * z, lo)
    return F.mse_loss(pred, target)

Consistency training with a stop-gradient target, as in the improved recipe. Song & Dhariwal (2024) also replaced squared error by a Pseudo-Huber loss and drew noise levels from a log-normal distribution. A one-step sample of a batch of BB is consistency_fn(net, sigma_max * torch.randn(B, *dims), torch.full((B,), sigma_max)).

The numbers moved fast. The original paper reached one-step FID 3.55 on CIFAR-10 with distillation (2.93 in two steps) and 6.20 on ImageNet 64×6464\times64 (4.70 in two), but only 8.70 on CIFAR-10 with consistency training. Improved consistency training (Song & Dhariwal, 2024) traced a flaw in the theory to the running-average teacher and removed it, swapped LPIPS for Pseudo-Huber losses, used a log-normal noise distribution and doubled the grid size at set intervals: one-step FID 2.51 on CIFAR-10 and 3.25 on ImageNet 64×6464\times64 (2.24 and 2.77 in two steps), better than distillation, with no teacher at all. Lu & Song (2025) stabilized continuous-time consistency models and scaled them to 1.5 billion parameters on ImageNet 512×512512\times512, with two-step FID 1.88, within about 10% of the best diffusion models. Latent consistency models (Luo et al., 2023) distill the guided probability-flow ODE of Stable Diffusion in its latent space, giving 2 to 4 step text-to-image generation from 32 A100 GPU-hours of training.

Matching distributions: score differences and discriminators

A one-step generator Gθ(z)G_{\boldsymbol\theta}(\mathbf z) does not have to reproduce the teacher's map, only the teacher's distribution of outputs. Write pθp_{\boldsymbol\theta} for the distribution of Gθ(z)G_{\boldsymbol\theta}(\mathbf z), z∼N(0,I)\mathbf z\sim\mathcal N(\mathbf 0,I), and pp for the target. The reverse KL divergence between them has a gradient that needs only scores.

DerivationThe KL gradient is a difference of two scores
  1. DKL(pθ ∥ p)=Ez[log⁡pθ(Gθ(z))−log⁡p(Gθ(z))]\KL(p_{\boldsymbol\theta}\,\|\,p)=\E_{\mathbf z}\big[\log p_{\boldsymbol\theta}(G_{\boldsymbol\theta}(\mathbf z))-\log p(G_{\boldsymbol\theta}(\mathbf z))\big]

    Write the divergence as an expectation over the generator's input:

  2. Ex∼pθ[∇θlog⁡pθ(x)]=∫∇θpθ(x) dx=∇θ ⁣∫pθ=0\E_{\mathbf x\sim p_{\boldsymbol\theta}}\big[\nabla_{\boldsymbol\theta}\log p_{\boldsymbol\theta}(\mathbf x)\big]=\int\nabla_{\boldsymbol\theta}p_{\boldsymbol\theta}(\mathbf x)\,d\mathbf x=\nabla_{\boldsymbol\theta}\!\int p_{\boldsymbol\theta}=\mathbf 0

    Differentiating log⁡pθ(Gθ(z))\log p_{\boldsymbol\theta}(G_{\boldsymbol\theta}(\mathbf z)) gives two terms: the explicit dependence of the density on θ\boldsymbol\theta, whose expectation vanishes, and the dependence through the sample point:

  3. ∇θDKL(pθ ∥ p)=Ez[(sfake(x)−sreal(x))⊤∂Gθ(z)∂θ],x=Gθ(z)\nabla_{\boldsymbol\theta}\KL(p_{\boldsymbol\theta}\,\|\,p)=\E_{\mathbf z}\Big[\big(\mathbf s_{\text{fake}}(\mathbf x)-\mathbf s_{\text{real}}(\mathbf x)\big)^\top\frac{\partial G_{\boldsymbol\theta}(\mathbf z)}{\partial\boldsymbol\theta}\Big],\qquad\mathbf x=G_{\boldsymbol\theta}(\mathbf z)

    What remains are the two scores at the generated point, contracted with the generator's Jacobian:

  4. sreal\mathbf s_{\text{real}} pulls samples toward high data density; −sfake-\mathbf s_{\text{fake}} spreads them out. Neither clean score is available, and where one distribution has no mass the other's score says nothing. Distribution matching distillation (DMD; Yin et al., 2024) therefore noises the generator's samples to a random level tt, takes sreal\mathbf s_{\text{real}} from the frozen teacher and sfake\mathbf s_{\text{fake}} from a second diffusion model trained online on the generator's own samples.

The same two-score gradient had appeared as variational score distillation for text-to-3D generation (Wang et al., 2023), which inspired DMD. Minimizing DKL(pθ ∥ p)\KL(p_{\boldsymbol\theta}\,\|\,p) is mode-seeking: a generator that covers only part of the data pays little. In DMD's own two-mode example, the distribution-matching loss alone recovered only the nearer mode, so DMD added a regression loss toward the teacher's outputs on a fixed set of noise–image pairs. It reached FID 2.62 on ImageNet 64×6464\times64 in one step and 11.49 zero-shot on COCO, generating 20 images per second with half-precision inference. DMD2 (Yin et al., 2024) dropped the expensive regression set, stabilized training by updating the fake-score model more often than the generator, and added a GAN loss against real images, which lets the student surpass its teacher: one-step FID 1.28 on ImageNet 64×6464\times64.

Adversarial diffusion distillation (ADD; Sauer et al., 2024) initializes the student from a pretrained diffusion model, gives it noisy inputs at a few fixed levels including pure noise, and combines two losses. A discriminator built from a frozen pretrained vision transformer (DINOv2 features worked best) with small trainable heads, conditioned on the text and image embeddings, supplies a hinge adversarial loss. A distillation loss, weighted by 2.5, noises the student's output, lets the teacher denoise it, and pulls the student toward the teacher's denoised estimate. ADD-XL, distilled from SDXL, generates 512×512512\times512 images in a single step, and in the authors' user studies outperformed other few-step methods in one step and matched SDXL in four (Style-Based Generators places this among the uses of GANs today).

ApproachWhat the student matchesTeacherStepsMain risk
Direct or progressive distillationthe teacher's ODE map, in one shot or two steps at a timeyes4–8 best; 1–2 degradecost of teacher sampling; blur at 1–2 steps
Consistency distillation / trainingself-consistency along ODE trajectoriesCD yes, CT no1–2, more by re-noisingtraining sensitive to grids, metrics and weights
Distribution matching (DMD, DMD2)the output distribution, via a difference of scoresyes, plus an online fake-score model1–4mode-seeking; needs a regression or GAN term
Adversarial (ADD)the output distribution, via a discriminator, plus teacher denoisingyes1–4adversarial losses can drop modes
Reflow (Continuous Flows & Flow Matching)a straightened ODE whose Euler steps are nearly exactthe previous flow1–few, often then distilledeach round must simulate the previous flow
Trajectory-matching methods inherit the teacher's map and so its coverage; distribution-matching methods are free to find a different map, which can raise quality above the teacher's and can also lose diversity.

Key takeaways

  • A coarse ODE step returns the denoiser's average answer; a one-step generator must instead learn the ODE's flow map Φσmax⁡→0\Phi_{\sigma_{\max}\to0}, or another map with the same output distribution.
  • Progressive distillation trains a student whose single DDIM step reproduces two teacher steps, with target x~=(zt′′−σt′′σtzt)/(αt′′−σt′′σtαt)\tilde{\mathbf x}=(\mathbf z_{t''}-\tfrac{\sigma_{t''}}{\sigma_t}\mathbf z_t)/(\alpha_{t''}-\tfrac{\sigma_{t''}}{\sigma_t}\alpha_t), halving the steps each round; it needs x\mathbf x- or v\mathbf v-prediction because late rounds start from pure noise.
  • Consistency models learn f(xσ,σ)=xσmin⁡f(\mathbf x_\sigma,\sigma)=\mathbf x_{\sigma_{\min}} with the boundary condition built in; zero distillation loss gives error O((Δσ)p)\order{(\Delta\sigma)^p} for a pp-th order solver, and consistency training replaces the teacher by the same noise at two levels.
  • The reverse-KL gradient is E[(sfake−sreal)⊤∂G/∂θ]\E[(\mathbf s_{\text{fake}}-\mathbf s_{\text{real}})^\top\partial G/\partial\boldsymbol\theta], estimated with two diffusion models on noised samples (DMD); it is mode-seeking, so DMD adds regression and DMD2 a GAN loss, while ADD combines a pretrained-feature discriminator with teacher denoising.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

What does the boundary condition fθ(x,σmin⁡)=xf_{\boldsymbol\theta}(\mathbf x,\sigma_{\min})=\mathbf x of a consistency model rule out?

  1. Multistep sampling
  2. Trivial self-consistent solutions such as a constant function, which would satisfy f(xσ,σ)=f(xσ′,σ′)f(\mathbf x_\sigma,\sigma)=f(\mathbf x_{\sigma'},\sigma') without generating anything
  3. Lipschitz networks
  4. Training without a teacher
Show the answer

B. Trivial self-consistent solutions such as a constant function, which would satisfy f(xσ,σ)=f(xσ′,σ′)f(\mathbf x_\sigma,\sigma)=f(\mathbf x_{\sigma'},\sigma') without generating anything

Self-consistency alone is satisfied by any function that is constant along trajectories, including one constant everywhere. Pinning the function to the identity at σmin⁡\sigma_{\min} forces the shared value along each trajectory to be that trajectory's endpoint.

Question 2

DMD evaluates both scores on generator samples after adding noise to them. Why?

  1. To make the generator's samples more diverse at test time
  2. Because the noise replaces the regression loss
  3. To make the loss cheaper to compute
  4. Clean real and generated distributions may not overlap, so a score can be undefined or uninformative where the other has mass; noise makes both full-support, and the teacher only provides scores of noised data anyway
Show the answer

D. Clean real and generated distributions may not overlap, so a score can be undefined or uninformative where the other has mass; noise makes both full-support, and the teacher only provides scores of noised data anyway

The gradient uses sreal−sfake\mathbf s_{\text{real}}-\mathbf s_{\text{fake}} at the generated points. Noising both distributions to a level tt spreads them over the whole space, so both scores exist everywhere, and a diffusion model is exactly an estimator of such noised scores.

Question 3

You take a single Euler step of the probability-flow ODE from pure noise all the way to σ=0\sigma=0. Where do the samples land?

  1. On exact samples from the data distribution, just less accurately placed
  2. Nowhere in particular: the step diverges
  3. On the training images nearest to each starting point
  4. On the denoiser's estimate at maximal noise, close to the dataset mean, for every starting point
Show the answer

D. On the denoiser's estimate at maximal noise, close to the dataset mean, for every starting point

With σ(t)=t\sigma(t)=t, one Euler step to zero returns D(x;σmax⁡)≈E[x0]D(\mathbf x;\sigma_{\max})\approx\E[\mathbf x_0], which barely depends on the starting point. The step averages over trajectories instead of following one, as the widget's single-step pile shows.

Question 4

Why did progressive distillation move away from ϵ\boldsymbol\epsilon-prediction?

  1. ϵ\boldsymbol\epsilon-prediction is slower to compute
  2. It cannot be used with DDIM
  3. Distillation evaluates the model at ever lower SNR, down to pure noise, where x^=(zt−σtϵ^)/αt\hat{\mathbf x}=(\mathbf z_t-\sigma_t\hat{\boldsymbol\epsilon})/\alpha_t blows up and the ϵ\boldsymbol\epsilon-loss gives zero weight
  4. ϵ\boldsymbol\epsilon-prediction makes the student copy the teacher exactly
Show the answer

C. Distillation evaluates the model at ever lower SNR, down to pure noise, where x^=(zt−σtϵ^)/αt\hat{\mathbf x}=(\mathbf z_t-\sigma_t\hat{\boldsymbol\epsilon})/\alpha_t blows up and the ϵ\boldsymbol\epsilon-loss gives zero weight

At αt→0\alpha_t\to0 small errors in ϵ^\hat{\boldsymbol\epsilon} are amplified by σt/αt\sigma_t/\alpha_t in the implied image, and at αt=0\alpha_t=0 predicting the noise from the noise is trivial and uninformative. Predicting x\mathbf x, a mix of x\mathbf x and ϵ\boldsymbol\epsilon, or v\mathbf v keeps the implied image stable.

Further reading

  • T. Salimans & J. Ho, "Progressive distillation for fast sampling of diffusion models," ICLR (2022).
  • Y. Song, P. Dhariwal, M. Chen & I. Sutskever, "Consistency models," ICML (2023).
  • Y. Song & P. Dhariwal, "Improved techniques for training consistency models," ICLR (2024).
  • T. Yin, M. Gharbi, R. Zhang, E. Shechtman, F. Durand, W. T. Freeman & T. Park, "One-step diffusion with distribution matching distillation," CVPR (2024).
  • A. Sauer, D. Lorenz, A. Blattmann & R. Rombach, "Adversarial diffusion distillation," ECCV (2024).