Adaptive Time-Stepping Schedules for Diffusion Models

Yuzhu Chen, Fengxiang He, Shi Fu, Xinmei Tian, Dacheng TaoUAI 2024

TL;DR

This paper introduces adaptive time-stepping schedules for diffusion models, moving beyond fixed schedules that lack theoretical grounding. By minimizing a novel convergence bound ($EB$), their proposed algorithms, GA (for continuous diffusion) and GC (for discrete diffusion), significantly improve generation quality and can even accelerate the process, especially for under-trained models.

What Problem Does This Paper Address?

Diffusion models have achieved state-of-the-art results in generative tasks, but their performance heavily relies on the "time-stepping schedule" – the set of discrete time points used to approximate the continuous reverse diffusion process. Traditionally, these schedules are fixed and lack theoretical justification, leading to suboptimal performance. This rigidity can result in inefficient sampling or the inclusion of "weak" time steps where the model's score estimator performs poorly. The paper aims to address this by developing adaptive schedules that dynamically adjust these time points to minimize sampling error, grounded in theoretical convergence bounds.

Methods

The core of the paper lies in defining and optimizing a convergence bound, denoted as $EB$. This bound is derived from theoretical analyses of diffusion models and considers two key factors: the error from approximating the score function at each time step and the error introduced by discretizing time.

The authors propose two main algorithms:

  1. Gradient-based Adjusting (GA): For continuous-time diffusion, where time is embedded at every point, GA treats $EB$ as a loss function. It uses gradient descent to adjust the discretization points, effectively "pushing" them towards regions where the score estimator is strong and the time step is appropriate.
  2. Greedy Choosing (GC): For discrete-time diffusion, where time is only available at a finite set of points, GC employs a greedy approach. In each iteration, it selects the single best discretization point from a set of candidates that minimizes the $EB$, effectively refining the schedule one point at a time.

Datasets

The paper evaluates their methods on:

  • Gaussian-target tasks: Used for theoretical analysis and demonstrating the weakness of fixed schedules.
  • MNIST: Used to evaluate GC on under-trained models.
  • CIFAR-10: Used to evaluate GC on well-trained models.
  • CELEBA: Used to evaluate GC on well-trained models.

The authors do not introduce new benchmarks but rather apply their methods to standard datasets to demonstrate their effectiveness.

Key Insights and Ideas

  • Fixed schedules are suboptimal: The paper provides strong evidence that fixed time-stepping schedules, even with many steps, can lead to poor generation quality due to the inclusion of weak score estimators.
  • Adaptive schedules improve quality and efficiency: By dynamically adjusting time steps based on theoretical bounds, adaptive schedules can significantly improve sample quality and potentially reduce the number of steps needed for generation.
  • $EB$ as a unified objective: The proposed convergence bound $EB$ effectively balances the trade-off between score estimation error and time discretization error, providing a principled way to optimize schedules.
  • GA and GC offer practical solutions: The two proposed algorithms, GA and GC, provide concrete methods for implementing adaptive schedules in both continuous and discrete diffusion settings, respectively.
  • Benefit for under-trained models: GC shows particular promise in accelerating the learning process for under-trained diffusion models, enabling them to generate usable samples earlier.

Key Results

  • Improved generation quality: Experiments show that adaptive schedules (GA and GC) lead to improved generation quality compared to fixed schedules on various datasets. For example, on CIFAR-10, GC achieved FID scores comparable to or better than DDIM with the same number of steps, especially with fewer steps.
  • Reduced sampling error: The adaptive schedules demonstrably reduce the KL divergence between the generated distribution and the target distribution, indicating better sample quality.
  • Premature generation for under-trained models: GC enables under-trained models to produce more reasonable and denoised samples at an earlier stage of training, as shown on MNIST.
  • Theoretical grounding: The methods are supported by theoretical convergence bounds, providing a solid foundation for their effectiveness.

Limitations and Future Work

  • Tighter convergence bounds: The authors acknowledge that existing upper bounds for sampling error have gaps and that the instruction on the ratio $C$ (a hyperparameter balancing score error and step size) can be highly different. Future work could focus on deriving tighter bounds.
  • Adaptive training schedule: The current work focuses on adapting the generation process. Future research could explore making the training process itself adaptive, rather than treating the model as fixed.
  • Hyperparameter tuning: While the ratio $C$ is presented as a hyperparameter, its optimal selection might still require tuning. The paper notes that its real value can vary with algebraic considerations.

Summary updated

BibTeX
@inproceedings{chen2024adaptive,
  author = {Yuzhu Chen and Fengxiang He and Shi Fu and Xinmei Tian and Dacheng Tao},
  title = {{Adaptive Time-Stepping Schedules for Diffusion Models}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=HhWwr63jmI},
}
Figure