A Unified Sampling Framework for Solver Searching of Diffusion Probabilistic Models

Enshu Liu, Xuefei Ning, Huazhong Yang, Yu Wang

TL;DR

This paper introduces a Unified Sampling Framework (USF) that treats diffusion model sampling as a sequence of customizable per-step decisions rather than a fixed algorithm. By using a predictor-based search method called $S^3$, the authors automatically discover "solver schedules" that significantly outperform state-of-the-art methods at extremely low step counts (under 10 steps), achieving a 2× speedup for Stable Diffusion without any retraining.

The Problem: The <10 Step Barrier

Diffusion Probabilistic Models (DPMs) generate high-quality images by reversing a noise-adding process, which mathematically is equivalent to solving an Ordinary Differential Equation (ODE). While we've moved past the days of needing 1000 steps to get a good image, even modern "fast" solvers like DPM-Solver++ or UniPC struggle when pushed below 10 steps (Number of Function Evaluations, or NFE).

The core issue is that existing solvers typically apply the same mathematical strategy (e.g., a 2nd-order Taylor expansion) at every single timestep. However, the dynamics of the diffusion ODE change as the image emerges from noise. A strategy that works well at the beginning of the process might be suboptimal near the end. The authors identify a gap: we lack a systematic way to mix and match different solving strategies across timesteps to minimize error in the ultra-low NFE regime.

Methods: USF and $S^3$

The authors propose two major innovations to tackle this problem:

1. Unified Sampling Framework (USF)

Instead of viewing a solver as a monolithic block, USF breaks a single sampling step into six independent decisions:

  • Timestep discretization: Where to place the evaluation points.
  • Starting point: Which previous point to use for the current step.
  • Prediction type: Whether the network predicts noise ($\epsilon$) or the original data ($x_0$).
  • Taylor expansion order: How many derivatives to keep.
  • Derivative estimation: How to calculate those derivatives (e.g., Taylor-difference).
  • Correctors: Whether to use an extra step to refine the estimate.
The Unified Sampling Framework (USF) breaks down the sampling process into six customizable decisions.

2. $S^3$ (Solver Search through $S^3$)

Because the combination of these choices creates a massive search space, the authors developed a predictor-based evolutionary search. Since calculating the Fréchet Inception Distance (FID) for every possible schedule is computationally expensive, they train a "lightweight predictor" (an LSTM/MLP) to rank solver schedules. This predictor guides the search toward high-performing schedules, which are then validated with true FID scores.

Key Insights and Ideas

  • The "No Free Lunch" of Solvers: The authors demonstrate that the "rank" of a strategy changes over time. For instance, a 3rd-order solver might be more accurate than a 2nd-order solver at certain timesteps, but actually worse at others.
Normalized loss of different solvers across timesteps, illustrating that no single solver is optimal throughout the entire diffusion process.
  • Data Prediction Wins at the Start: They found that predicting the original data ($x_0$) often outperforms noise prediction when the NFE budget is extremely tight (4 or 5 steps).
  • Low-Order is Sometimes Better: Counter-intuitively, using low-order derivative estimation can sometimes be more stable and yield better results than full high-order estimation when step sizes are large.
  • Transferability: A solver schedule searched for one version of Stable Diffusion (v1.5) transfers remarkably well to another (v1.3), suggesting that these optimized schedules capture fundamental properties of the diffusion process rather than just over-fitting to one model.

Key Results

The results show a significant leap over previous state-of-the-art (SOTA) training-free samplers:

  • CIFAR-10: Achieved an FID of 6.86 with only 5 steps, compared to the previous SOTA of 23.44. At 10 steps, they reached 2.69 FID.
  • Stable Diffusion: The authors achieved a 2× acceleration. Their searched schedule at 5 steps produced results comparable to standard baselines at 10 steps, all without retraining the neural network.
  • Consistency: Across all tested datasets (CelebA, ImageNet, etc.), the $S^3$ searched schedules consistently outperformed the best available baselines, especially in the 4–7 step range.

Limitations and Future Work

While the search process is much faster than retraining a model, it still requires a "warm-up" phase where several thousand images must be generated to train the performance predictor. The authors also noted that they manually pruned the search space to keep it manageable, potentially leaving even better strategies on the table.

Future directions include expanding the search space to include even more exotic numerical methods and exploring whether these "solver schedules" can be generalized into a single, universal schedule that works across all diffusion models without needing a per-model search.

Summary updated

BibTeX
@inproceedings{liu2024unified,
  author = {Enshu Liu and Xuefei Ning and Huazhong Yang and Yu Wang},
  title = {{A Unified Sampling Framework for Solver Searching of Diffusion Probabilistic Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=W2d3LZbhhI},
}
Figure