Introduction
Diffusion Probabilistic Models (DPMs) have emerged as the state-of-the-art in generative AI, powering breakthroughs in image and video synthesis. However, the field currently consists of a fragmented landscape of techniques—ranging from stochastic Markovian processes (DDPM) to deterministic ordinary differential equations (ODEs). FreeFlow provides a rigorous mathematical unification of these disparate methods by reframing diffusion as a process of Optimal Transport (OT) and gradient flows in Wasserstein space.
Theoretical Framework: Gradient Flows in Wasserstein Space
The core of the FreeFlow framework is the interpretation of the space of probability measures as an infinite-dimensional Riemannian manifold, denoted as $\mathcal{P}(\mathbb{R}^n)$. Within this geometric setting, the diffusion process is viewed as a "steepest descent" or gradient flow of a free energy functional $E(\rho)$.
By utilizing the Benamou-Brenier Theorem, the authors link the probabilistic evolution of data to the physical principles of fluid dynamics. This allows for an analysis from two distinct perspectives:
- Lagrangian: Tracking individual "particles" (data points) along their trajectories.
- Eulerian: Observing the "flow field" at fixed spatial positions.
Unifying Diffusion Models
A significant contribution of this work is the "Rosetta Stone" for DPMs. The authors demonstrate that the standard Fokker-Planck equation—the governing equation for most diffusion models—is a specific instance of a gradient flow where the energy functional combines negative entropy and a potential function.
As shown in the table above, popular models like DDPM, VP-SDE, and PFGM can be mapped into a single set of parameters ($D_t$ and $\nabla \Psi$). This proves that these seemingly different methods are variations of the same underlying gradient flow mechanism.
Key Insights: Energy Dissipation and Shock Waves
The FreeFlow framework reveals that diffusion is essentially a process of energy dissipation. The probability density moves to maximize entropy and minimize potential energy, effectively minimizing the Kullback–Leibler (KL) divergence between the current data distribution and a stationary target distribution (typically a Gaussian).
Furthermore, the framework identifies a critical defect in non-optimal transport: shock waves. In the Lagrangian view, if trajectories are not optimized, the paths of different data points can intersect. These intersections create "shock waves" that complicate the learning process. By applying principles of Optimal Transport, specifically straight-line trajectories for convex cost functions, FreeFlow provides a theoretical foundation for "rectified flow" models that achieve faster sampling through linear paths.
Conclusion
FreeFlow offers a comprehensive "Grand Unified Theory" for diffusion models. While primarily theoretical, it identifies the geometric and physical principles that govern generative modeling. By connecting DPMs to the Monge-Ampère equation and Riemannian geometry, this framework paves the way for designing more efficient, "shock-free" generative models that leverage optimal transport for superior performance.
Summary updated