NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding Diffusion Models by Feynman's Path Integral

Yuji Hirono, Akinori Tanaka, Kenji Fukushima

Introduction

Diffusion models have revolutionized generative AI by reversing a noise-injection process to create data from noise. However, a persistent gap exists between the two primary sampling methods: deterministic Probability Flow ODEs and stochastic SDEs. While ODEs allow for exact likelihood calculations, stochastic sampling often yields higher-quality, more diverse results. This paper bridges this gap by reformulating score-based diffusion models through the lens of Feynman’s path integral formalism, a cornerstone of quantum mechanics.

Methods: The Path Integral Framework

The authors treat the sampling process not as a sequence of points, but as a distribution of entire paths. By defining an "Action" ($A$) and a "Lagrangian" ($L$) for these trajectories, they introduce a physical intuition for stochasticity.

A central innovation is the interpolating parameter $\mathfrak{h} \in [0, 1]$, which acts as a counterpart to Planck’s constant ($\hbar$):

  • $\mathfrak{h} = 0$ (Classical Limit): Corresponds to the deterministic Probability Flow ODE, following the "principle of least action."
  • $\mathfrak{h} = 1$ (Quantum Regime): Corresponds to standard stochastic SDE sampling.
Conceptual overview of "classical" deterministic paths vs. "quantum" stochastic paths, showing how the parameter $\mathfrak{h}$ interpolates between the two regimes.

Using the WKB expansion—a technique for approximating quantum systems—the authors derive a first-order correction for the Negative Log-Likelihood (NLL). This allows for the direct evaluation of how "noise" affects model performance, a task previously considered computationally prohibitive for stochastic processes.

Key Insights and Results

The framework provides a rigorous theoretical backing for the empirical observation that noise improves sample quality. In experiments using synthetic datasets like the Swiss-roll and a 25-Gaussian grid, the authors demonstrated that when the model's internal "score" is imperfect (represented by an error $\epsilon$), increasing the noise parameter $\mathfrak{h}$ actually reduces both the NLL and the 2-Wasserstein distance ($W_2$).

Impact of the noise parameter $\mathfrak{h}$ on Negative Log-Likelihood (NLL) and 2-Wasserstein distance ($W_2$) across different score error levels $\epsilon$.

This suggests that stochasticity helps "propel" the sampling process out of local minima caused by model inaccuracies, much like quantum fluctuations allow particles to explore paths beyond classical trajectories. The $O(\mathfrak{h}^1)$ perturbative expansion accurately predicts these performance gains, providing a new tool for optimizing diffusion models.

Limitations and Future Work

While powerful, the current method faces the "dimensionality curse" due to its reliance on discrete differentials, making it difficult to apply to high-resolution images. Future research may extend this framework to Diffusion Schrödinger Bridges and explore scenarios where noise might degrade quality, further refining our understanding of the generative "quantum" landscape.

Summary updated

BibTeX
@inproceedings{hirono2024understanding,
  author = {Yuji Hirono and Akinori Tanaka and Kenji Fukushima},
  title = {{Understanding Diffusion Models by Feynman's Path Integral}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=AEqim4X0NV},
}
Figure