techlist.io

Distillation

1 posts

OpenAI2024-10-223 min readCurated summary

Simplifying, stabilizing, and scaling continuous-time consistency models

# Simplifying, Stabilizing, and Scaling Continuous-Time Consistency Models Diffusion models produce high-quality images, 3D models, audio, and video, but they need dozens to hundreds of sequential steps to sample. The authors introduce sCM, a simplified formulation of continuous-time consistency models that stabilizes training at large scale. A 1.5B-parameter sCM generates samples with quality comparable to leading diffusion models in just two steps, roughly a 50x wall-clock speedup. ## Why Diffusion Sampling Is Slow - Diffusion models generate samples through a long sequence of denoising steps, which limits efficiency for real-time use. - Existing distillation methods can speed up sampling, but they often bring high compute costs, complex training, or reduced sample quality. ## The sCM Approach - The authors simplify the theoretical formulation of continuous-time consistency models and further stabilize their training. - This enabled scaling to 1.5 billion parameters on ImageNet at 512×512 resolution, which the authors describe as unprecedented for continuous-time consistency models. - Consistency models aim to map noise directly to a clean sample in one step, rather than following the gradual path of a diffusion model. - sCM distills knowledge from a pre-trained diffusion model (the "teacher"). ## Performance and Scaling Behavior - The largest model generates a single sample in 0.11 seconds on one A100 GPU, with no inference optimization. - Evaluation uses Fréchet Inception Distance (FID), where lower is better, and effective sampling compute, which estimates total compute per sample. - Two-step sCM samples achieve FID scores within 10% (relative) of the teacher diffusion model, which needs hundreds of steps, while using less than 10% of its effective sampling compute. - The relative FID gap stays consistent across several orders of magnitude of model size, so the absolute quality gap shrinks as models scale. - Adding sampling steps further reduces the quality gap. ## Limitations - The best sCMs still depend on pre-trained diffusion models for initialization and distillation, leaving a small but consistent quality gap versus the teacher. - FID is an imperfect proxy for sample quality, so close FID scores don't always mean close visual quality. Evaluation may need to vary by application. ## Conclusion sCM makes continuous-time consistency models practical at large scale, offering diffusion-level sample quality with two sampling steps. The authors plan to keep improving inference speed and sample quality for real-time generative AI across image, audio, and video. For applications where latency matters, a two-step consistency model is a strong alternative to a full diffusion sampler, though teams should validate quality beyond FID.