Consistency Models
The 2023 paper from OpenAI that enables high-quality diffusion generation in just a single step, bypassing the slow iterative sampling process entirely.
Paper: Consistency Models
Authors: Yang Song, Prafulla Dhariwal, Mark Chen, Ilya Sutskever · 2023
Read the paperThe Problem
Even with advanced samplers like DDIM or DPM-Solver, diffusion models still required 10 to 50 sequential passes through a massive neural network to generate an image. This iterative process fundamentally prevented diffusion models from matching the real-time speed of GANs. Researchers tried "distilling" multi-step models into fewer steps, but the quality degraded rapidly.
The Idea
The authors (including the creator of Score-Based SDEs) proposed Consistency Models. Instead of learning to remove a tiny bit of noise at each step (like DDPM), a consistency model learns to map any noisy point directly to the final, clean image. The core concept is "self-consistency": if and belong to the exact same diffusion trajectory, the model should output the exact same final image for both of them. By enforcing this consistency during training, the model learns to jump from pure noise to the final image in a single step.
How It Works
The model learns a function with the property that for all on a given trajectory.\n\nTraining (Distillation): You take a pre-trained, slow diffusion model. You sample a point , use the slow model to take one tiny denoising step to get . You then feed both and into the Consistency Model. The loss function penalizes the model if . Because by definition, this chain of consistencies forces the model to learn the direct mapping to the origin.\n\nGeneration: To generate an image, you sample pure noise and simply evaluate . The image is generated in exactly one network pass. If you want higher quality, you can optionally take a few alternating steps of adding noise and applying the consistency function.
Why It Mattered
Consistency Models finally bridged the speed gap between diffusion models and GANs, allowing high-quality, continuous-time diffusion models to run in real-time (e.g., 30 frames per second). It represented the most mathematically sound approach to distillation.
What Came After
Consistency Models evolved into Latent Consistency Models (LCMs), which were applied to Stable Diffusion. LCMs became wildly popular in the open-source community, allowing users to generate high-quality SDXL images in 2-4 steps. It enabled real-time interactive drawing apps and live-camera filters powered by diffusion.