TL;DR
This paper introduces Improved Integration Approximation (IIA), a "plug-and-play" technique to accelerate diffusion model sampling by optimizing the mathematical coefficients of the underlying ODE solvers. By minimizing the error between coarse steps and fine-grained integration targets, IIA significantly boosts image quality at very low sampling budgets (under 25 steps) without requiring any retraining of the generative model.
The Problem: Slow Sampling in Diffusion Models
Diffusion probabilistic models (DPMs) have revolutionized generative AI, but they are notoriously slow. Generating a high-quality image typically requires solving a complex Ordinary Differential Equation (ODE) over dozens or hundreds of steps.
While popular samplers like DDIM, DPM-Solver++, and EDM have made strides in reducing the number of function evaluations (NFE), they rely on standard numerical integration methods with fixed, pre-determined coefficients. These "one-size-fits-all" coefficients are derived from general calculus principles rather than the specific characteristics of a pre-trained model. Consequently, when we try to take very large steps (low NFE) to save time, the integration error compounds, leading to blurry or distorted images. The authors aim to find the "optimal" coefficients for these specific models to maintain high fidelity even when sampling is pushed to its speed limits.
Methodology: Improved Integration Approximation (IIA)
The core innovation is the IIA framework. Instead of accepting the default coefficients of an ODE solver, the authors treat them as variables to be optimized.
- Constructing a Target: For a given time interval, the authors define a "ground truth" by running the original ODE solver over many fine-grained mini-steps (a high-resolution integration).
- MSE Optimization: They then set up a Mean Squared Error (MSE) function that measures the difference between this fine-grained target and a single "coarse" step taken by the solver.
- Solving for Coefficients: By minimizing this MSE using a small set of initial noise samples, they derive optimized coefficients (stepsizes) tailored to that specific model and timestep.
- One-Time Cost: This optimization is a pre-computation step. It involves solving simple quadratic optimization problems, which takes only seconds to minutes. Once these optimal coefficients are stored, they can be reused for all future sampling with zero additional computational overhead compared to the original method.
The authors apply this technique to several state-of-the-art samplers, resulting in IIA-DDIM, IIA-DPM-Solver++, and IIA-EDM.
Key Insights
- Model-Specific Tuning: Standard ODE solvers are designed to work on any differentiable function. IIA recognizes that a pre-trained diffusion model has a specific "landscape," and tuning the solver to that landscape yields better results than using generic mathematical constants.
- The "Aha" of Fine-Grained Targets: You don't need real ground-truth data to optimize a solver. By using the solver's own high-resolution output as a target, you can "teach" the coarse version of the solver to behave more like its more accurate (but slower) counterpart.
- Efficiency at the Limit: The "sweet spot" for IIA is at very low NFEs (typically < 25). This is where the original solvers struggle most with integration error, and where the optimized coefficients provide the most dramatic corrections.
- No Retraining Required: One of the most practical aspects of this work is that it requires zero changes to the weights of the pre-trained model, making it easily applicable to existing pipelines like Stable Diffusion.
Key Results
The researchers evaluated their methods across several standard generative modeling benchmarks, including CIFAR10, FFHQ, AFHQV2, ImageNet64, and COCO2014 (for Stable Diffusion V2).
- Quantitative Gains: On CIFAR10 with only 11 steps (NFE), IIA-EDM achieved an FID score (a measure of image quality where lower is better) of 4.90, compared to the original EDM's 14.42.
- Text-to-Image Superiority: When applied to Stable Diffusion V2 at 10 steps, IIA-DPM-Solver++ achieved an FID of 12.97, significantly outperforming the standard DPM-Solver++ (15.82).
- Qualitative Improvement: Visual comparisons show that IIA-based methods produce images with significantly better structural coherence and fewer artifacts at low step counts.
- Negligible Overhead: The time taken to pre-compute the optimized coefficients is tiny compared to the time saved during mass image generation.
Limitations and Future Work
- Diminishing Returns at High NFE: As the number of steps increases (e.g., > 40), the standard solvers become naturally more accurate, and the benefit of IIA diminishes. In some cases, like ImageNet64 at high NFE, the authors noted a slight discrepancy where lower MSE didn't perfectly translate to better FID.
- Heuristic Selection: The authors chose which coefficients to optimize based on empirical testing (e.g., optimizing the stepsize in front of the refined noise in classifier-free guidance). A more automated way to select these parameters could be explored.
- Theoretical Gap: There is still some mystery as to why, at very high NFEs, a more accurate integration approximation doesn't always lead to a better FID score, suggesting that other factors beyond integration error influence final image quality.
Summary updated