Abstract
Generative diffusion models have emerged as a dominant paradigm in artificial intelligence, yet their mathematical foundations are frequently described through disparate lenses of non-equilibrium statistical mechanics and probability theory. This paper provides a unifying theoretical bridge by deriving the training objectives of diffusion models from a classical "action principle." By framing the reverse diffusion process as a stochastic optimal control problem, we demonstrate that the widely used "score matching" technique is fundamentally a search for the most efficient physical trajectory to reconstruct data from noise. This perspective connects modern generative AI to the principle of least action, a cornerstone of theoretical physics.
Introduction
While generative models like DALL-E and Stable Diffusion have achieved remarkable empirical success, the underlying theory often feels like a collection of mathematical heuristics. This work addresses the need for a fundamental physical principle that dictates model training. By revisiting Erwin Schrödinger’s 1931 argument regarding the "Schrödinger bridge," the paper connects the machine learning objective of score matching to the principle of least action—the same principle used to describe the paths of planets and the behavior of light.
Notation and Mathematical Preliminaries
To facilitate the theoretical derivation, we define a set of symbols representing physical and statistical quantities. The following table summarizes the notation used throughout the paper, bridging the gap between particle dynamics and probabilistic modeling.
Theoretical Framework: Stochastic Optimal Control
The paper adopts a purely theoretical approach, framing the transformation of noise back into structured data as a variational problem. The derivation proceeds through several key stages:
- The Schrödinger Bridge: The core concept is the Schrödinger bridge, which identifies the most probable path a cloud of particles takes when moving between two probability distributions.
- Action Functional Derivation: By defining an "action" functional—a quantity representing the "cost" of a trajectory—the author employs the method of adjoint equations to identify stationary points. In physics, the principle of least action dictates that nature follows the path minimizing this cost.
- Connecting to Score Matching: The "control" term required to steer noise back toward the data distribution is shown to be proportional to the score function, defined as the gradient of the log-probability ($\nabla \ln P$).
The Action Principle in Score Matching
A central insight of this work is that score matching is not merely a statistical convenience but a mathematical requirement for finding the "most efficient" trajectories satisfying the boundary conditions of a diffusion process.
The score function can be intuitively understood as a restoring force. Much like a spring pulls a displaced weight back toward equilibrium, the score function acts as the force that counters stochastic noise to maintain the integrity of the data distribution. In high-dimensional spaces, while many paths from noise to data are theoretically possible, the "least action" path becomes overwhelmingly the most probable one due to the Large Deviation Principle.
Key Result
The primary result is the derivation of the fundamental training objective for generative diffusion models from first principles:
$$\theta^* = \text{argmin}_\theta \sum_{s=1}^{n-1} \frac{1}{2} D(t_s) \Delta t_s \mathbb{E}_{\mathbf{x}_d} \mathbb{E}_{\mathbf{x}_s|\mathbf{x}_d} \left[ \left\| \mathbf{S}_\theta(\mathbf{x}_s, t_s) - \nabla_{\mathbf{x}_s} \ln \overleftarrow{P}(\mathbf{x}_s, t_s | \mathbf{x}_d, 0) \right\|_2^2 \right]$$
This result confirms that training a neural network to predict the gradient of the log-probability (the score) is mathematically equivalent to minimizing a physical action functional. This provides a unified framework for various diffusion flavors, such as Score Matching with Langevin Dynamics (SMLD) and Denoising Diffusion Probabilistic Models (DDPM).
Conclusion and Future Directions
This work provides a rigorous theoretical foundation for diffusion models, eschewing empirical benchmarks in favor of mathematical clarity. While the current derivation assumes smooth functions and avoids the complexities of measure theory, it opens new avenues for research. Specifically, the action principle approach could be generalized to non-trivial data manifolds. By leveraging the underlying symmetries of data distributions through the lens of physics, future models may achieve higher accuracy in specialized domains such as cosmology or particle physics.
Summary updated