Accelerating Convergence of Score-Based Diffusion Models, Provably

Gen Li, Yu Huang, Timofey Efimov, Yuting Wei, Yuejie Chi, Yuxin Chen

Introduction

While diffusion models (such as DDPM and DDIM) have revolutionized generative AI, they suffer from a major bottleneck: sampling speed. Generating a single high-quality image often requires hundreds or thousands of sequential function evaluations (NFEs) through a massive neural network.

Although practitioners have developed "fast samplers" (like DPM-Solver) that perform well empirically, the theoretical understanding of why and how fast they converge has lagged. Existing convergence proofs typically focus on slower first-order methods or rely on overly restrictive assumptions—such as the target data distribution being "smooth" or "log-concave," which is rarely true for real-world image data. This paper bridges the gap between fast empirical performance and rigorous theoretical guarantees by introducing new, training-free algorithms that provably accelerate the sampling process for both deterministic and stochastic diffusion models.

Methodology

The authors propose two primary algorithms inspired by the mechanics of higher-order ODE and SDE solvers. Crucially, both methods are training-free, meaning they utilize the exact same pre-trained score networks as standard DDIM or DDPM.

1. Accelerated ODE-based Sampler (Deterministic)

Inspired by second-order ODE solvers, this method introduces a "mid-point" prediction. Instead of taking a single step based solely on the current score, the sampler predicts where the sample will be at the next time step, evaluates the score at that future point, and uses a combination of these scores to refine the final update. This acts as a "momentum" term, allowing the sampler to follow the probability flow ODE much more accurately.

2. Accelerated SDE-based Sampler (Stochastic)

For stochastic sampling, the authors employ a higher-order expansion of the conditional density. This involves injecting noise in two stages: first creating an intermediate noisy point, and then using that point to calculate the final transition. This approach provides a much tighter approximation of the reverse-time stochastic differential equation (SDE).

Theoretical Insights

The core breakthrough of this work lies in the theoretical guarantees provided by moving from first-order to second-order approximations:

  • The Power of Second-Order: In the deterministic case, leveraging a second-order approximation squares the convergence rate ($T \to T^2$). This means significantly fewer steps are required to reach the same level of accuracy.
  • Realistic Assumptions: Unlike previous theories requiring "nice" (log-concave) data distributions, this framework only requires that the score estimates are $\ell_2$-accurate on average. This makes the proofs applicable to the complex, manifold-like distributions typical of real-world images.
  • Stability: The accelerated methods are mathematically proven to remain stable even when the score functions provided by the neural network contain estimation errors.

Empirical Results

The researchers evaluated their accelerated samplers on standard generative modeling benchmarks, including LSUN-Churches, LSUN-Bedroom, CelebA-HQ, CIFAR-10, and ImageNet-64.

Theoretical Speedup: * Deterministic: Achieves a convergence rate of $O(1/T^2)$, vastly outperforming the $O(1/T)$ rate of vanilla DDIM. * Stochastic: Achieves a rate of $O(1/T)$, outperforming the $O(1/\sqrt{T})$ rate of vanilla DDPM.

Visual and Quantitative Performance: On high-resolution datasets like LSUN and CelebA-HQ, the accelerated sampler produced high-quality, crisp images in as few as 5 to 10 steps. In contrast, vanilla DDIM samplers often produced blurry or noisy results at the same step count.

Generated church image at 8 NFEs
Generated bedroom scene

Furthermore, the accelerated sampler frequently halved the FID score (a standard metric for image quality and diversity) compared to vanilla methods when operating under a very small number of steps.

Limitations and Future Work

While this paper presents a significant leap forward, several challenges remain:

  • Dimension Dependency: The current theoretical bounds exhibit a high dependency on the data dimension $d$ (e.g., $d^6$ in the deterministic bound). A more refined analysis is needed to sharpen this dependency for extremely high-dimensional data.
  • Beyond Second-Order: Popular empirical solvers like DPM-Solver-3 utilize third-order methods. Extending this provable framework to third-order or higher remains an open challenge.
  • SDE Acceleration Limits: Although the stochastic rate improved to $O(1/T)$, it still lags behind the deterministic $O(1/T^2)$ rate. Future work will investigate whether even faster stochastic solvers are theoretically possible.

Summary updated

BibTeX
@inproceedings{li2024accelerating,
  author = {Gen Li and Yu Huang and Timofey Efimov and Yuting Wei and Yuejie Chi and Yuxin Chen},
  title = {{Accelerating Convergence of Score-Based Diffusion Models, Provably}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=KB6slOUQP9},
}
Figure