Understanding Diffusion Models by Feynman's Path Integral
Yuji Hirono, Akinori Tanaka, Kenji Fukushima
TL;DR
The paper presents a path-integral formulation of diffusion models based on Feynman’s path integral, linking stochastic score-based diffusion and deterministic probability-flow ODEs through an interpolating parameter $\mathfrak{h}$ that plays the role of Planck’s constant. It re-derives backward-time dynamics, loss functions via Girsanov, and provides a KL-based training objective within this framework. A Wentzel–Kramers–Brillouin (WKB) expansion in $\mathfrak{h}$ yields first-order corrections to the log-likelihood, enabling quantitative analysis of how noise influences sampling performance and model likelihood. Empirical studies on 1D and 2D toy datasets validate the theory and illustrate how controlled noise can improve likelihood under imperfect score estimation, while offering a principled method to compare stochastic and deterministic sampling via $W_2$ distances. The framework opens avenues for analyzing diffusion Schrödinger bridges and priors beyond standard Gaussian assumptions, with implications for understanding when and why noise helps diffusion-based generation.
Abstract
Score-based diffusion models have proven effective in image generation and have gained widespread usage; however, the underlying factors contributing to the performance disparity between stochastic and deterministic (i.e., the probability flow ODEs) sampling schemes remain unclear. We introduce a novel formulation of diffusion models using Feynman's path integral, which is a formulation originally developed for quantum physics. We find this formulation providing comprehensive descriptions of score-based generative models, and demonstrate the derivation of backward stochastic differential equations and loss functions.The formulation accommodates an interpolating parameter connecting stochastic and deterministic sampling schemes, and we identify this parameter as a counterpart of Planck's constant in quantum physics. This analogy enables us to apply the Wentzel-Kramers-Brillouin (WKB) expansion, a well-established technique in quantum physics, for evaluating the negative log-likelihood to assess the performance disparity between stochastic and deterministic sampling schemes.
