FoundationsChecking saved investigationReading browser-local route memory before showing a continuation.

Foundation Lab

Consistency Models: One-Step Diffusion

Generates images in 1-2 steps instead of 50-1000 steps

Concept 78 of 100Generative ModelsPhase 4
#78ConsistencyGenerative Models
key equationf(x_t, t) = x_0 \quad \forall t

Selected Foundation Object

Keep the equation fixed; move through the evidence.

Concept 78 of 100ConsistencyGenerative Models / Phase 4: Generative modeling families
Current question

Diffusion models trace a path from noise to image; consistency models learn to skip

f(x_t, t) = x_0 \quad \forall t
PredictionCommit before the demo.

Ask what should change when the equation is manipulated, then let the visualization test that expectation.

EvidenceCompare local witness and source.

Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.

InvariantName what survives notation changes.

The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.

Next moveContinue through the atlas.

Use prerequisites, dependents, and semantic links to repair the next gap without leaving the object behind.

Why It Matters for Modern Models

  • Generates images in 1-2 steps instead of 50-1000 steps
  • Bridges the speed gap between diffusion quality and GAN speed
  • The "distillation" approach: learn to jump directly to the answer

What Tutorials Skip

What is still poorly explained in textbooks and papers:

  • Diffusion models trace a path from noise to image; consistency models learn to skip
  • Self-consistency = "any point on the trajectory should predict the same endpoint"
  • Trade-off: fewer steps = faster but lower quality; find the sweet spot

Interactive Visualization

Core Math (Optional Deep Dive)

If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.

Key Equation
f(xt,t)=x0tf(x_t, t) = x_0 \quad \forall t

Consistency function maps any point on ODE trajectory to origin:

f(xt,t)=x0t[0,T]f(x_t, t) = x_0 \quad \forall t \in [0, T]

Self-consistency property:

f(xt,t)=f(xt,t)for all t,t on same trajectoryf(x_t, t) = f(x_{t'}, t') \quad \text{for all } t, t' \text{ on same trajectory}

Training via consistency loss:

L=E[d(f(xt+Δ,t+Δ),f(xt,t))]\mathcal{L} = \mathbb{E}\left[d(f(x_{t+\Delta}, t+\Delta), f(x_t, t))\right]

One-step generation: x0=f(xT,T)x_0 = f(x_T, T) where xTN(0,I)x_T \sim \mathcal{N}(0, I).

Canonical Papers

Consistency Models

Song et al.2023ICML
Read paper →

Improved Techniques for Training Consistency Models

Song & Dhariwal2023arXiv
Read paper →

Connections

Next Moves

Choose the next question to carry this object forward.