Pick a concrete input and say what the equation should give before you read the math.
Foundation reference
Consistency Models
A consistency model generates a sample in one network evaluation, where a diffusion sampler usually needs tens to hundreds. With consistency distillation, Song et al. (2023) reported one-step FID scores of 3.55 on CIFAR-10 and 6.20 on ImageNet 64×64 (lower is better).
Study guide
Where to start
Why does requiring every point on a trajectory to map to the same end point force the network to learn the whole ODE solution, not just one step of it?
How to study this pagePredict · Check · Generalize · Continue
Work through the math, then read the cited papers for the original argument.
Identify the part of the idea that survives a change of notation or model, so you can recognize it in another paper or system.
Use the prerequisites and related concepts at the end of the page to fill the next gap.
Why It Matters for Modern Models
- A consistency model generates a sample in one network evaluation, where a diffusion sampler usually needs tens to hundreds. With consistency distillation, Song et al. (2023) reported one-step FID scores of 3.55 on CIFAR-10 and 6.20 on ImageNet 64×64 (lower is better).
- Consistency models can also be trained from data alone, without a pretrained diffusion model: improved consistency training reached one-step FID scores of 2.51 on CIFAR-10 and 3.25 on ImageNet 64×64, and 2.24 and 2.77 with two steps (Song & Dhariwal, 2024).
- The same model can use extra steps when they are affordable: alternating denoising with re-noising improves the samples, so one model covers a range of speed and quality trade-offs (Song et al., 2023).
Questions to Think About
- How can consistency training enforce self-consistency without a pretrained diffusion model to say which points lie on the same trajectory?
- Why does a multistep consistency sampler add noise back in between denoising steps, and why does that improve the sample?
Core Math
A diffusion model defines a probability-flow ODE whose trajectories carry each noise sample to a data sample as time runs from down to a small (Song et al., 2021). A consistency function maps every point on such a trajectory to the trajectory's end point (Song et al., 2023):
Two properties follow:
- Self-consistency: whenever and lie on the same trajectory.
- Boundary condition: . Song et al. build this into the network as with and .
Training enforces self-consistency between neighbouring times of a discretized trajectory:
where is a distance between images and is a copy of that receives no gradient (an exponential moving average in the original paper). In consistency distillation, comes from one ODE-solver step of a pretrained diffusion model. In consistency training, both points are made from the same data sample and the same noise, so no pretrained model is needed.
Sampling takes one network evaluation, with , or alternates denoising and re-noising for a few more steps to trade compute for quality.