Diffusion models have revolutionized generative modeling, overtaking GANs in producing high-fidelity images and powering tools like DALL-E and Stable Diffusion. However, this impressive quality comes with a significant "speed tax." Generating a single image typically requires hundreds to thousands of iterations through a massive neural network to gradually refine pure noise into a coherent picture.
This paper introduces DEIS (Diffusion Exponential Integrator Sampler), a fast sampling method designed to drastically reduce this computational burden, generating high-quality images in as few as 10 steps without requiring model retraining.
The Challenge of Discretization Error
The core bottleneck in diffusion model sampling is discretization error. The process of turning noise into an image is governed by a continuous differential equation. When numerical solvers (like the standard Euler method) attempt to take larger steps to speed up generation, they become inaccurate, resulting in blurry or distorted images. Previous attempts to accelerate this process often relied on complex "black-box" ODE solvers that ignored the unique mathematical structure of diffusion, or required computationally expensive retraining of the model.
The DEIS Approach
To overcome these limitations, the authors propose a principled discretization scheme based on Exponential Integrators (EI). Their methodology is built on three key pillars:
- Exploiting Semi-linear Structure: The "Probability Flow ODE" governing the diffusion process is semi-linear. It consists of a linear component that can be solved exactly and a non-linear component (approximated by the neural network). By analytically solving the linear part, DEIS eliminates a major source of discretization error.
- Smart Parameterization: The authors observed that the "score function" changes rapidly as the image clarifies, making it difficult to approximate over large steps. Conversely, the "noise prediction" ($\epsilon_\theta$) remains much smoother over time. By parameterizing the solver to use $\epsilon_\theta$, DEIS can take significantly larger steps while staying on the data manifold.
- Polynomial Extrapolation: DEIS employs a multistep approach, using information from previous steps to predict the next one (akin to Adams-Bashforth methods). This "look-back" mechanism achieves higher-order accuracy without the need for additional, costly neural network evaluations.
The paper introduces several variants of this approach, including $t$AB-DEIS (time-based) and $\rho$RK-DEIS (utilizing a change-of-variables for easier ODE solving).
Key Insights
- DDIM as a Special Case: The paper provides a rigorous mathematical proof that the widely popular DDIM (Denoising Diffusion Implicit Model) is actually a first-order (zero-degree polynomial) variant of DEIS. This insight mathematically justifies why DDIM has been so effective.
- Overcoming "Stiffness": The primary hurdle for fast sampling is the "stiffness" of the ODE—its resistance to simple numerical steps. The Exponential Integrator effectively "soften" this problem, allowing for rapid, stable sampling.
- Plug-and-Play: Unlike distillation methods, DEIS does not require training a new model. It can be applied directly to any pre-trained diffusion model.
State-of-the-Art Results
DEIS was evaluated across standard benchmarks including CIFAR10, CelebA, ImageNet, and LSUN Bedroom, setting a new standard for sampling efficiency.
- Unprecedented Speed: On CIFAR10, DEIS achieved an impressive FID score of 4.17 using only 10 Neural Function Evaluations (NFEs), and 2.86 FID with 20 NFEs. Standard models typically require over 100 steps to reach comparable quality.
- Superior Low-Step Performance: At low step counts (5–20 steps), DEIS consistently outperformed other popular samplers, including DDIM, PNDM, and various SDE-based solvers.
- High-Resolution Fidelity: When applied to $256 \times 256$ ImageNet and LSUN datasets, DEIS successfully produced visually stunning, high-fidelity samples in a fraction of the traditional timeframe.
Limitations and Future Directions
While DEIS excels at solving the deterministic (ODE) version of diffusion, accelerating the stochastic (SDE) version—which injects random noise at each step—remains a complex challenge. The authors leave the development of a robust "Stochastic DEIS" for future work. Additionally, the performance of DEIS is sensitive to the time schedule (the spacing of the steps). While quadratic spacing provides a strong default, finding the absolute optimal schedule for specific models is an open area for optimization. Finally, using very high-order polynomials for extrapolation can introduce instability if step sizes are too large, indicating a need to find the "sweet spot" for integrator order.
Summary updated