Stable Consistency Tuning: Understanding and Improving Consistency Models

Fu-Yun Wang, Zhengyang Geng, Hongsheng Li · DOI

TL;DR

This paper introduces Stable Consistency Tuning (SCT), a novel method that improves consistency models for faster and higher-quality image generation. By reframing consistency model training as a Markov Decision Process (MDP) and using Temporal Difference (TD) learning, SCT addresses training variance and discretization errors, achieving state-of-the-art results on CIFAR-10 and ImageNet-64.

What Problem Does This Paper Address?

Diffusion models are known for generating high-quality images but are notoriously slow due to their iterative denoising process, requiring many steps for sampling. Consistency models offer a promising solution by enabling fast, often one-step, generation while maintaining competitive quality. However, existing training methods for consistency models, particularly consistency training/tuning (CT), can suffer from high training variance and discretization errors, leading to unstable training and limiting their performance ceiling. This paper aims to provide a deeper understanding of these limitations and propose a more stable and effective training strategy.

Methods

The core of this work is a new theoretical framework that models the denoising process of diffusion models as a Markov Decision Process (MDP). Consistency model training is then framed as value estimation using Temporal Difference (TD) Learning. This MDP perspective reveals that the key difference between consistency distillation and consistency training lies in how the "reward" is estimated, impacting training stability and performance.

Building on this understanding, the authors propose Stable Consistency Tuning (SCT), which introduces several enhancements:

  • Variance Reduction: SCT incorporates variance-reduced learning using the score identity. This technique, previously applied to diffusion models, is generalized to consistency training/tuning for both conditional and unconditional generation. This helps stabilize training by providing a more accurate estimate of the ground truth score.
  • Discretization Error Reduction: SCT employs a smoother progressive training schedule. This involves gradually reducing the time step size ($\Delta t$) during training, allowing the model to first learn a coarse solution with larger steps and then refine it with smaller steps, leading to better performance and faster convergence.
  • Multistep Consistency Models: The framework is extended to support deterministic multistep sampling, improving fidelity and stability. They also introduce an "edge-skipping" inference strategy to mitigate challenges in multistep consistency models.
  • Classifier-Free Guidance (CFG): The paper validates the effectiveness of CFG for consistency models, using a sub-optimal version of the model itself for guidance, which enhances sample quality.

Datasets

The paper evaluates its proposed method on the following standard datasets:

  • CIFAR-10: Used for both unconditional and conditional generation experiments.
  • ImageNet-64: Used for conditional generation experiments.

Key Insights and Ideas

  • MDP and TD Learning Framework: Modeling consistency model training as an MDP and TD learning provides a unifying perspective to understand different training strategies and their inherent trade-offs (e.g., performance upper bound vs. training stability).
  • Variance as a Bottleneck: The paper highlights training variance, stemming from the gap between conditional and ground truth epsilon estimates, as a primary bottleneck for consistency training/tuning.
  • Discretization Error and Training Schedules: Discretization error due to ODE solver approximations is another key challenge. The paper shows that a carefully designed progressive training schedule (gradually decreasing $\Delta t$) is crucial for balancing performance and stability.
  • Score Identity for Variance Reduction: Generalizing variance-reduced score estimation using the score identity to consistency training is a significant contribution, improving training stability.
  • Edge-Skipping for Multistep: The edge-skipping inference strategy is a clever way to address the challenges of training multistep consistency models by avoiding problematic transitions between timesteps.

Key Results

SCT demonstrates significant improvements over previous methods, particularly Easy Consistency Tuning (ECT):

  • State-of-the-Art Performance: SCT achieves new state-of-the-art (SoTA) FID scores for consistency models on ImageNet-64, with 1-step FID of 2.42 and 2-step FID of 1.55.
  • Faster Convergence: Figure 3 shows that SCT converges faster than ECT, achieving better FID scores with fewer training iterations.
  • Improved FID on CIFAR-10: The paper reports notable improvements in both 1-step and 2-step FID on CIFAR-10, especially when using the entire training set for variance-reduced target calculation (1-step FID dropping from 5.61 to 4.56).
  • Enhanced Sample Quality: Qualitative results (Figures 7-15) show high-quality samples generated by SCT across different datasets and conditions.
  • Effectiveness of CFG: Classifier-free guidance is shown to further enhance sample quality.

Limitations and Future Work

  • Benchmark Limitations: The current work is limited to CIFAR-10 and ImageNet-64 for validation. The authors suggest that future research should explore consistency training/tuning on larger-scale benchmarks, such as text-to-image generation.
  • Multistep Inference: While edge-skipping improves multistep sampling, the paper notes that achieving perfect multistep training remains a challenge, and further work could explore this.
  • Generalization of Variance Reduction: While generalized to conditional generation, the paper mentions that applying variance-reduced estimation to text-to-image generation is a potential area for future study.

Summary updated

BibTeX
@misc{wang2024stable,
  author = {Fu-Yun Wang and Zhengyang Geng and Hongsheng Li},
  title = {{Stable Consistency Tuning: Understanding and Improving Consistency Models}},
  year = {2024},
  eprint = {2410.18958},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.18958},
}
Figure