TL;DR
SA-Solver is a new training-free stochastic sampler for diffusion models that bridges the gap between fast deterministic ODE solvers and high-quality stochastic SDE solvers. By leveraging a linear multi-step Adams method and a controllable noise scale, it achieves state-of-the-art generation quality (FID) with significantly fewer function evaluations than previous stochastic methods.
What Problem Does This Paper Address?
Diffusion Probabilistic Models (DPMs) generate high-quality data by reversing a noise-injection process. However, this reversal is computationally expensive, typically requiring hundreds of neural network function evaluations (NFEs).
To speed this up, researchers often treat the sampling process as solving an Ordinary Differential Equation (ODE). While ODE solvers like DDIM or DPM-Solver are fast, they are deterministic. Stochastic Differential Equation (SDE) solvers, on the other hand, inject noise during sampling, which empirical evidence suggests can lead to higher diversity and better data quality. The catch? Existing SDE samplers are either slow (requiring many steps to converge) or highly sensitive to hyperparameters. SA-Solver aims to provide a fast, robust, and theoretically grounded stochastic sampler.
Methods
The authors introduce two main innovations:
- Variance-Controlled Diffusion SDEs: They propose a family of reverse SDEs that all share the same marginal probability distributions but differ in their noise scales, controlled by a function $\tau(t)$. This allows users to "dial in" the amount of stochasticity during sampling.
- SA-Solver (Stochastic Adams Solver): This is a linear multi-step SDE solver tailored for diffusion. Unlike standard one-step solvers that only use the current state, SA-Solver uses information from previous steps (a "multi-step" approach) to estimate the next state more accurately.
The algorithm follows a Predictor-Corrector framework:
- Predictor: Uses a stochastic Adams-Bashforth-like step to make an initial guess of the next state.
- Corrector: Refines that guess using a stochastic Adams-Moulton-like step.
Crucially, the authors find that reparameterizing the model to predict the original data ($x_0$) rather than the noise ($\epsilon$) significantly improves the convergence of stochastic solvers.
Datasets
The authors evaluated SA-Solver across several standard image generation benchmarks:
- CIFAR-10 (32x32)
- ImageNet (64x64, 256x256, and 512x512)
- LSUN Bedroom (256x256)
These datasets cover both pixel-space and latent-space diffusion models, as well as various architectures like U-Net and Diffusion Transformers (DiT).
Key Insights and Ideas
- Data-Prediction is King for SDEs: While noise-prediction is standard for ODE solvers, the authors prove and demonstrate that data-prediction reparameterization results in smaller noise variance in the numerical scheme, leading to much better convergence.
- Stochasticity as a Buffer: Stochastic sampling is particularly effective when the model's score estimation is inaccurate (e.g., early in the training process). The injected noise seems to help "correct" for errors in the learned gradient.
- Multi-step Efficiency: By using a buffer of previous evaluations, SA-Solver achieves higher-order convergence without needing extra NFEs per step, making it much more efficient than traditional higher-order SDE solvers like Stochastic Runge-Kutta.
Key Results
- State-of-the-Art FID: SA-Solver achieved record-breaking FID scores on multiple benchmarks. For example, it reached an FID of 2.63 on CIFAR-10 and 1.81 on ImageNet 64x64, outperforming both deterministic and existing stochastic samplers.
- Few-Step Performance: Even at low NFEs (e.g., 20-30 steps), SA-Solver remains competitive with or superior to SOTA ODE solvers like UniPC.
- Ablation Success: The combination of multi-step prediction and correction proved vital. As shown in Table 2, moving from a 1-step predictor to a 3-step predictor-corrector setup drastically improved FID scores across various noise settings.
Limitations and Future Work
- Noise Schedule Tuning: While SA-Solver is robust, the optimal noise scale $\tau(t)$ varies depending on the NFE budget. Currently, the authors use empirical criteria to select $\tau$, but they note that a more rigorous theoretical framework for choosing the noise schedule is needed.
- Computational Overhead: While SA-Solver is efficient in terms of NFEs, the multi-step logic and predictor-corrector loops add a small amount of overhead in terms of memory (to store the buffer) and simple arithmetic, though this is negligible compared to the cost of the neural network evaluations themselves.
Summary updated