On Accelerating Diffusion-Based Sampling Process via Improved Integration Approximation

Guoqiang Zhang, Kenta Niwa, W. Bastiaan KleijnarXiv 2023 · DOI

Introduction

Diffusion models have revolutionized generative AI, yet their practical utility is often hampered by slow sampling speeds. Generating high-quality images typically requires numerous iterations, or Neural Function Evaluations (NFEs), to solve the underlying Ordinary Differential Equation (ODE) that governs the reverse diffusion process. While advanced samplers like DDIM, EDM, and DPM-Solver have been developed to reduce these steps, they rely on fixed mathematical coefficients derived from general numerical integration methods. This paper introduces Improved Integration Approximation (IIA), a novel framework that optimizes these coefficients specifically for the learned score function of a pre-trained model, enabling high-fidelity generation with significantly fewer steps.

The Challenge of Fixed Coefficients

Standard ODE solvers assume a generic smooth function. However, in diffusion models, the "function" is a specific neural network trained on a particular data distribution. When sampling is accelerated by taking larger steps (low NFEs), the approximation errors of traditional fixed-coefficient solvers (like Euler or Heun) accumulate rapidly. This leads to a degradation in image quality, often manifesting as blurriness or structural incoherence.

Improved Integration Approximation (IIA)

The core insight of IIA is that the integration coefficients do not need to be rigid. Instead, they can be treated as learnable parameters optimized to minimize the discretization error for a specific model.

The Optimization Workflow

  1. Reference Generation: A high-precision "ground truth" is established by performing a fine-grained integration (using many small steps) for a given time interval.
  2. MSE Minimization: The IIA framework formulates a Mean Squared Error (MSE) objective to minimize the difference between a single "coarse" step (using optimized coefficients) and the fine-grained reference.
  3. Pre-computation: This optimization is performed once using a small batch of noise samples (e.g., 200). Because it is a quadratic optimization problem, it is computationally efficient, taking only seconds to minutes.
  4. Deployment: The resulting optimized coefficients are stored and applied during inference. This "plug-and-play" approach requires no retraining of the diffusion model and introduces no additional overhead during image generation.

Experimental Results

The authors validated IIA across diverse benchmarks, including CIFAR10, FFHQ, AFHQV2, ImageNet64, and COCO2014.

Quantitative Performance

The most significant improvements were observed at low NFEs (under 25 steps). On the COCO2014 dataset using Stable Diffusion V2, IIA-DPM-Solver achieved an FID of 12.97 at 10 steps, a notable improvement over the 15.82 FID of the baseline DPM-Solver.

Qualitative Comparison

Visual evidence confirms that IIA maintains structural integrity and detail where standard methods fail at high acceleration.

Comparison of standard DDIM (top row) and the proposed IIA-DDIM (bottom row) at 10 sampling steps across different scenes.

As shown in the figure above, at 10 steps, standard DDIM results in noticeable artifacts and loss of detail (e.g., the distorted bench in column 'a' or the blurry facial features in column 'b'). IIA-DDIM produces much sharper and more coherent images, effectively matching the quality of much higher NFE counts.

Discussion and Limitations

While IIA offers a substantial boost for fast sampling, its advantages diminish as the number of steps increases. Beyond 25–40 steps, the gap between IIA and standard solvers narrows, as the discretization error of traditional methods becomes sufficiently small. Additionally, in certain "unstable" regimes where the FID score does not decrease monotonically with steps, the assumption that better integration leads to better FID may not always hold.

Conclusion

Improved Integration Approximation provides a simple yet effective way to enhance the efficiency of diffusion models. By shifting from generic integration coefficients to model-specific optimized parameters, IIA enables high-quality image synthesis at speeds previously reserved for lower-fidelity outputs. This data-driven refinement of the sampling process represents a significant step toward making real-time, high-resolution diffusion generation more accessible.

Summary updated

BibTeX
@misc{zhang2023accelerating,
  author = {Guoqiang Zhang and Kenta Niwa and W. Bastiaan Kleijn},
  title = {{On Accelerating Diffusion-Based Sampling Process via Improved Integration Approximation}},
  year = {2023},
  eprint = {2304.11328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.11328},
}
Figure