NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Trajectory Consistency Distillation

Jianbin Zheng, Minghui Hu, Zhongyi Fan, Chaoyue Wang, Changxing Ding, Dacheng Tao, Tat-Jen ChamarXiv 2024 · DOI

Abstract

Diffusion models are the current state-of-the-art for image synthesis but are computationally expensive, often requiring dozens of iterations. While Latent Consistency Models (LCMs) have reduced this to 1–4 steps, they often suffer from a "clarity ceiling," producing blurry or over-smoothed results. Trajectory Consistency Distillation (TCD) is a novel framework that overcomes these limitations. By refining the mathematical mapping of the sampling trajectory and introducing Strategic Stochastic Sampling, TCD enables high-fidelity generation in 2–8 steps, rivaling or even surpassing the original teacher models in detail.

Introduction

Standard diffusion models like Stable Diffusion typically require 20 to 50 Number of Function Evaluations (NFEs) to produce clean images. Distillation techniques like Consistency Models (CMs) were designed to accelerate this process. However, these models often plateau in quality; increasing the step count does not necessarily lead to better images and can sometimes cause performance to decline due to accumulated discretization errors. TCD addresses this by rethinking the consistency function and the sampling strategy to maintain sharpness and detail at any step count.

Methodology

TCD introduces two primary technical innovations to the distillation pipeline:

  1. Trajectory Consistency Function (TCF): Traditional consistency models attempt to map any point on a trajectory directly back to the origin ($x_0$). TCD broadens this boundary condition, allowing the model to map to any arbitrary point $s$ along the trajectory. Utilizing a semi-linear parameterization inspired by high-order exponential integrators (like DPM-Solver), TCF reduces the mathematical errors introduced during the distillation process.
  2. Strategic Stochastic Sampling (SSS): While most fast samplers are deterministic, TCD introduces a parameter $\gamma$ to control stochasticity. This "Strategic Stochastic Sampling" allows for a bijective traversal that avoids the error accumulation seen in standard multi-step sampling, helping to "correct" errors and add fine-grained texture.

Implemented via Low-Rank Adaptation (LoRA), TCD acts as a lightweight plugin that can be integrated into various community-tuned models and tools like ControlNet without requiring full retraining.

Experimental Results

Quantitative Performance

Quantitative evaluations on the COCO2017 validation set demonstrate TCD's superiority. At 4 steps, TCD achieves an FID of 12.68, significantly better than LCM (15.03) and traditional solvers like DPM++ (18.50).

Quantitative comparison showing TCD outperforming LCM and DPM++ in ImageReward and Complexity Score as inference time increases.

As shown in the performance metrics, TCD maintains a higher complexity score than LCM, which tends to plateau. This indicates that TCD successfully captures more fine-grained detail as the number of steps increases.

Qualitative Comparison

One of the most significant advantages of TCD is its stability at higher NFEs. While LCM images often become "waxy" or lose coherence when pushed beyond their intended step count, TCD remains sharp and detailed.

Visual comparison of LCM and TCD across different NFEs, highlighting TCD's ability to maintain detail and avoid the degradation seen in LCM at higher step counts.

In the comparison above, TCD consistently produces more intricate textures (such as the feathers in the wings) compared to the flatter results of LCM. Remarkably, at 20 steps, TCD has been shown to outperform its own SDXL teacher model by bypassing certain discretization errors inherent in standard ODE solvers.

Conclusion

Trajectory Consistency Distillation effectively bridges the gap between the speed of consistency models and the high-fidelity output of slow diffusion solvers. By allowing for flexible trajectory mapping and controlled stochasticity, TCD provides a robust, plug-and-play solution for real-time, high-quality image generation.

Summary updated

BibTeX
@misc{zheng2024trajectory,
  author = {Jianbin Zheng and Minghui Hu and Zhongyi Fan and Chaoyue Wang and Changxing Ding and Dacheng Tao and Tat-Jen Cham},
  title = {{Trajectory Consistency Distillation}},
  year = {2024},
  eprint = {2402.19159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.19159},
}
Figure