TL;DR
Consistency Models are a new family of generative models designed to overcome the slow sampling speeds of traditional diffusion models. By learning to map any point on a "Probability Flow" trajectory directly back to its data origin, these models enable high-quality, single-step image generation. Furthermore, they retain the flexibility to trade compute for better quality through iterative sampling.
The Problem with Diffusion Models
Diffusion models (such as Stable Diffusion or DALL-E 2) have revolutionized AI-generated media, but they possess a major Achilles' heel: speed. Generating a single image typically requires dozens or even hundreds of iterative "denoising" steps. This computational expense makes real-time applications difficult and costly.
While other architectures like Generative Adversarial Networks (GANs) can generate images in a single step, they are notoriously difficult to train and often suffer from "mode collapse," where the model lacks diversity in its outputs. The authors sought a "best of both worlds" solution: a model as fast as a GAN but as stable and high-quality as a diffusion model.
Methods: The Consistency Function
The core innovation of this paper is the Consistency Function. In a standard diffusion model, data is converted to noise via a trajectory defined by a Probability Flow (PF) Ordinary Differential Equation (ODE). A consistency model learns a function that maps any point on that trajectory—regardless of the noise level—directly back to the starting point (the clean image).
The authors propose two primary ways to train these models:
- Consistency Distillation (CD): This approach uses a pre-trained diffusion model as a "teacher." The consistency model learns to match the teacher's output across different points on the ODE trajectory.
- Consistency Training (CT): This method allows the model to be trained as a standalone generative model from scratch, without needing a pre-trained teacher. It uses an unbiased estimator of the score function to enforce the consistency property.
To ensure the model behaves correctly at the end of the trajectory, they use a specific boundary condition ($f(x_\epsilon, \epsilon) = x_\epsilon$) enforced through a skip-connection architecture. This guarantees that if the model is fed a clean image, it returns that same clean image.
Datasets
The researchers evaluated their models on several standard computer vision benchmarks:
- CIFAR-10: A dataset of 32x32 images across 10 categories.
- ImageNet 64x64: A downsampled version of the massive ImageNet dataset.
- LSUN Bedroom & LSUN Cat (256x256): Large-scale datasets focused on specific object and scene categories at higher resolutions.
Key Insights
- Self-Consistency as a Superpower: The fundamental insight is that points on the same ODE trajectory should all map to the same origin. By enforcing this "self-consistency" during training, the model naturally learns to jump from pure noise to a clean image in one step.
- The Compute-Quality Trade-off: Unlike GANs, which are strictly "one-shot," consistency models allow for multistep sampling. Users can chain the model's outputs (denoise, add a little noise back, denoise again) to incrementally improve image quality if extra compute time is available.
- Zero-Shot Versatility: Because these models are built on the theory of diffusion trajectories, they inherit the ability to perform "inverse" tasks like inpainting (filling in missing parts of an image), colorization, and super-resolution without being explicitly trained for them.
- No Teacher Required: The success of Consistency Training (CT) without a pre-trained diffusion model suggests that consistency might be a viable alternative to the standard diffusion training objective itself.
Key Results
- State-of-the-Art Speed: On CIFAR-10, Consistency Distillation achieved a new state-of-the-art FID (Fréchet Inception Distance, a measure of image quality) of 3.55 for one-step generation.
- Outperforming Previous Distillation: CD significantly outperformed "Progressive Distillation" (PD), the previous leading method for speeding up diffusion models, across multiple datasets and sampling steps.
- Strong Standalone Performance: When trained from scratch (CT), the models outperformed other non-adversarial one-step models like VAEs and Normalizing Flows, and even matched the quality of some GANs on ImageNet 64x64.
- Efficiency: The models achieve record-breaking FIDs on ImageNet 64x64 (6.20) using only a single network evaluation, whereas traditional diffusion models might need 50 or more.
Limitations and Future Work
- Training Variance: The authors noted that Consistency Training (CT) currently exhibits higher variance and is more sensitive to hyperparameters than the distillation (CD) approach.
- Initialization: For CT to work well on complex datasets, it was helpful to initialize the model with weights from a pre-trained EDM (a type of diffusion model), indicating that training entirely from scratch still has room for improvement.
- Architecture Constraints: The requirement to satisfy the boundary condition places specific constraints on neural network design.
- Future Directions: The authors suggest exploring better sampling schedules and extending the framework to other domains like audio and video generation, where fast sampling speeds are even more critical.
Summary updated