Abstract
Denoising diffusion probabilistic models (DDPMs) are a class of powerful generative models. The past few years have witnessed the great success of DDPMs in generating high-fidelity samples. A significant limitation of the DDPMs is the slow sampling procedure. DDPMs generally need hundreds or thousands of sequential function evaluations (steps) of neural networks to generate a sample. This paper aims to develop a fast sampling method for DDPMs requiring much fewer steps while retaining high sample quality. The inference process of DDPMs approximates solving the corresponding diffusion ordinary differential equations (diffusion ODEs) in the continuous limit. This work analyzes how the backward error affects the diffusion ODEs and the sample quality in DDPMs. We propose fast sampling through the Restricting Backward Error schedule (RBE schedule) based on dynamically moderating the long-time backward error. Our method accelerates DDPMs without any further training. Our experiments show that sampling with an RBE schedule generates high-quality samples within only 8 to 20 function evaluations on various benchmark datasets. We achieved 12.01 FID in 8 function evaluations on the ImageNet $128\times128$, and a $20\times$ speedup compared with previous baseline samplers.
Introduction
Denoising Diffusion Probabilistic Models (DDPMs) have become the gold standard for high-fidelity image generation. However, their primary drawback is the "speed limit": generating a single image typically requires hundreds or thousands of sequential neural network evaluations. While techniques like knowledge distillation or advanced numerical solvers (e.g., DDIM, DPM-Solvers) have been proposed, they often struggle in the "ultra-fast" regime—specifically when generating images in fewer than 10 steps. In these cases, discretization errors become so significant that image quality collapses. This research introduces a training-free method to overcome this bottleneck by applying Backward Error Analysis, a classic technique from numerical ODE solvers, to the diffusion process.
Methodology: Restricting Backward Error
The core idea is to frame the sampling process as solving a Diffusion ODE (Probability Flow). When taking large discrete steps, the solver does not follow the original path perfectly. Instead, it follows a "modified path." The discrepancy between these paths is defined as the "backward error."
To manage this error, the authors developed two approaches:
- DRBE (Dynamically Restricting Backward Error): An algorithm that calculates second-order derivatives to adjust step sizes on the fly. It takes smaller steps where the path "curvature" is high and larger leaps where it is flat.
- RBE Schedule: A key observation was that the optimal step schedule produced by DRBE is nearly identical across different random noise initializations for a specific model. This allows for a pre-calculated, fixed set of time steps—the RBE schedule—that can be used for all generations without expensive per-image gradient calculations.
Experimental Results
The RBE schedule was evaluated on benchmarks including ImageNet 64×64, ImageNet 128×128, and LSUN Bedroom 256×256.
The results demonstrate that the RBE schedule provides a 20× speedup over original DDPM sampling. Notably, on ImageNet 128×128, the method achieved an FID score of 12.01 in just 8 steps, a regime where previous state-of-the-art solvers like DPM-Solver often fail.
Discussion and Insights
The success of the RBE schedule stems from the "locally parallel" nature of diffusion ODE flows. The difficulty of sampling at any given time depends primarily on the model's training rather than the specific image. The RBE schedule acts as a "curvature-aware" map, forcing the solver to be more precise when the mathematical "bend" in the diffusion process is sharpest.
While highly effective and stable, the method is currently deterministic. Future work may explore stochastic benefits or the design of optimal noise schedules during the initial training phase. Additionally, while validated up to 256×256 resolution, the scalability to ultra-high-resolution models remains an area for further investigation.
Summary updated