TL;DR
Consistency Trajectory Models (CTM) unify score-based diffusion and consistency models into a single framework. By training a network to predict "anytime-to-anytime" jumps along the Probability Flow ODE, CTM enables high-quality single-step generation while providing a natural way to trade off speed for quality—all while maintaining access to the score function for tasks like controllable generation.
The Problem with Current Diffusion Models
Standard diffusion models generate high-quality data but are notoriously slow, requiring dozens or hundreds of neural network evaluations (NFE) to solve a reverse-time differential equation. Consistency Models (CM) were introduced to solve this by learning to map any point on the trajectory directly to the origin (data) in one step.
However, CMs have two major flaws:
- Quality-Speed Trade-off: Surprisingly, as you give CMs more time (more sampling steps), their performance often degrades rather than improves due to accumulated errors.
- Loss of the Score: By focusing only on the "jump" to the end, they lose access to the score function (the gradient of the log-density), which is essential for established techniques in controllable generation (like inpainting) and likelihood estimation.
CTM addresses these limitations by learning the entire trajectory, allowing for unrestricted traversal between any two points in time.
How Consistency Trajectory Models Work
The core innovation is the Consistency Trajectory Model (CTM), a single neural network $G_\theta(\mathbf{x}_t, t, s)$ that predicts the solution of the Probability Flow ODE from time $t$ to any time $s \le t$.
Key components of the CTM framework include:
- Soft Consistency Loss: Unlike CM, which only trains jumps to time 0, CTM uses a "soft" matching loss that compares student predictions across various time intervals. This encourages the model to learn the global trajectory accurately and prevents the error accumulation seen in standard CMs.
- Unified Loss Function: CTM combines three distinct signals:
- Distillation Loss: Learning from a pre-trained teacher diffusion model.
- Denoising Score Matching (DSM): This ensures the model accurately captures the score function, especially for infinitesimal jumps ($s \approx t$).
- Adversarial (GAN) Loss: Used to sharpen samples and reach state-of-the-art perceptual quality in very few steps.
- $\gamma$-sampling: A new sampling family where a parameter $\gamma$ controls the level of stochasticity. It unifies deterministic distillation sampling ($\gamma=0$) and fully stochastic sampling ($\gamma=1$).
Key Insights and Results
CTM achieves impressive quantitative and qualitative results, particularly in the "low NFE" regime, evaluated on datasets like CIFAR-10, ImageNet 64x64, and AFHQ-cat 256x256.
- State-of-the-Art Single-Step Sampling: On CIFAR-10, CTM achieved an FID of 1.73, and on ImageNet 64x64, an FID of 1.92. These are the best reported numbers for single-step diffusion-based models.
- Robust Scaling: Unlike CM, CTM's sample quality consistently improves as the computational budget (number of sampling steps) increases.
- Score Access is a "Free" Bonus: Because CTM is trained to handle very small jumps, it implicitly learns the score function. This means you can use CTM with any existing "plug-and-play" diffusion guidance method without retraining.
- The Power of Jumps: CTM enables "long jumps" along the ODE. This avoids the discretization errors inherent in standard solvers while being much more flexible than fixed-step distillation models.
Limitations and Future Work
- Training Complexity: CTM involves a complex minimax optimization (due to the GAN loss) and multiple loss terms, which can be harder to tune than standard diffusion models.
- Teacher Dependency: While the authors show a "teacher-free" variant, the best results still rely on distilling from a high-quality pre-trained score-based model.
- Resolution Scaling: The experiments were conducted up to 256x256 resolution. Scaling CTM to megapixel-scale images remains an open challenge for future research.
Summary updated