Reverse Transition Kernel: A Flexible Framework to Accelerate Diffusion Inference

Xunpeng Huang, Difan Zou, Hanze Dong, Yi Zhang, Yian Ma, Tong Zhang

Introduction: The Bottleneck in Diffusion Inference

Generating data from trained diffusion models is notoriously slow. Popular inference algorithms, such as Denoising Diffusion Probabilistic Models (DDPM) and their variants, rely on discretizing reverse Stochastic Differential Equations (SDEs) or their equivalent Ordinary Differential Equations (ODEs). This approach breaks the denoising process into thousands of tiny, simple steps.

Each step typically uses a basic Gaussian approximation, which is computationally cheap but requires a massive number of iterations to keep the cumulative error low. The authors of this paper identify a fundamental imbalance in this paradigm: we are solving too many trivial subproblems. They propose a new question: Can we accelerate inference by solving fewer, slightly more complex subproblems?

The Reverse Transition Kernel (RTK) Framework

To address this inefficiency, the authors introduce the Reverse Transition Kernel (RTK) framework. Instead of relying on standard SDE discretization, RTK views the entire denoising diffusion process as a sequence of distinct sampling subproblems.

  1. Balanced Decomposition: By selecting a larger, constant step size ($\eta$), the RTK framework drastically reduces the total number of subproblems from thousands to a near-constant amount ($\tilde{O}(1)$).
  2. Strong Log-Concavity: The challenge of using fewer steps is that the subproblems become harder. However, the authors mathematically prove that if the step size is chosen carefully, the target distribution of each denoising step becomes strongly log-concave. This is a "gold standard" property in sampling theory, guaranteeing that certain advanced algorithms will converge extremely quickly.

Advanced Samplers: RTK-MALA and RTK-ULD

With the subproblems now strongly log-concave, the framework leverages two high-performance sampling algorithms to solve them:

  • RTK-MALA (Metropolis-Adjusted Langevin Algorithm): This sampler includes an "accept-reject" step to correct for discretization errors. Because standard diffusion models only provide the "score" (the gradient of the log-density) rather than the energy function, the authors also developed a Score-Only Variant of RTK-MALA. This variant approximates energy differences using only score evaluations, making it fully compatible with existing pre-trained models.
  • RTK-ULD (Underdamped Langevin Dynamics): This sampler incorporates "momentum" into the sampling process, allowing it to explore the target distribution more efficiently.

Theoretical Guarantees

The RTK framework bridges the gap between practical heuristics and rigorous sampling theory, providing state-of-the-art convergence guarantees in total variation (TV) distance:

  • Linear Convergence: Under slightly stricter conditions, RTK-MALA achieves a striking $\mathcal{O}(d^{2}\log(d/\epsilon))$ convergence rate. This linear convergence with respect to the sampling error $\epsilon$ significantly outperforms the polynomial convergence rates of standard DDPM.
  • Optimal Error Dependence: RTK-ULD achieves an $\epsilon$ target error within $\tilde{\mathcal O}(d^{1/2}\epsilon^{-1})$ under mild conditions. This represents the state-of-the-art dependence on both dimension ($d$) and target error ($\epsilon$) for diffusion inference.

Empirical Results

The theoretical milestones are well supported by numerical experiments on synthetic and image datasets:

  • Synthetic Mixtures of Gaussians (MoG): Tested on complex 10-dimensional multi-modal distributions (like spiral and chessboard patterns), RTK-MALA and RTK-ULD achieved higher marginal accuracy than DDPM under the exact same computational budget, measured in Number of Function Evaluations (NFE).
  • MNIST Image Generation: On the classic handwritten digit dataset, RTK-based methods achieved significantly lower (better) Fréchet Inception Distance (FID) scores than DDPM. This improvement was particularly pronounced when the number of steps was heavily restricted (e.g., NFE = 20).
  • Reconstructing Fine Details: Standard DDPM often struggles to capture the "peaks and valleys" of complex distributions at low step counts. By being more accurate per step, the RTK samplers reconstruct these fine-grained structures much more effectively.

Limitations and Future Work

While the RTK framework presents a major theoretical and practical leap, the authors note a few areas for future exploration:

  • Scalability: Current evaluations are limited to synthetic data and MNIST. Testing the framework on large-scale, high-resolution datasets (such as ImageNet) is a necessary next step.
  • Energy Estimation: The most accurate version of RTK-MALA requires an exact energy function. While the score-only workaround is highly effective, developing more robust energy estimators for pre-trained score-based models remains an open research area.
  • Hyperparameter Tuning: Advanced samplers like MALA and ULD introduce additional hyperparameters (such as inner-loop step sizes), making them slightly less "plug-and-play" than standard DDPM.

Summary updated

BibTeX
@inproceedings{huang2024reverse,
  author = {Xunpeng Huang and Difan Zou and Hanze Dong and Yi Zhang and Yian Ma and Tong Zhang},
  title = {{Reverse Transition Kernel: A Flexible Framework to Accelerate Diffusion Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=C2xCLze1kS},
}
Figure