扩散与流匹配背后的几何:Wasserstein空间中的梯度流与测地线
The Geometry Behind Diffusion and Flow Matching: Gradient Flows and Geodesics in Wasserstein Space
AI总结:
本文揭示扩散模型和流匹配模型共享Wasserstein流形几何:扩散对应自由能梯度流的JKO离散化,流匹配对应Benamou-Brenier测地线,两者沿不同路径到达相同端点。
摘要:
具有有限二阶矩的概率测度空间 $\mathcal{P}_2(\mathbb{R}^d)$ 承载着一种自然的几何:二次Wasserstein距离 $W_2$ 使其成为完备度量空间,并且根据Otto的观点,它是一个(形式上的)黎曼流形,其测地线是最优传输插值。在该流形上,自由能 $F(\rho) = KL(\rho || \pi)$ 的梯度流正是Fokker-Planck方程,其隐式欧拉离散化是JKO格式。这是扩散模型背后的几何:前向过程沿自由能下降,每个去噪步骤实现一个JKO步骤,从而恢复DDPM、DDIM、NCSN/SMLD和Energy Matching;这是一个统一的框架,而非分离的理论。同一流形支持第二个变分原理。其测地线——Benamou-Brenier公式的最小作用量曲线——正是流匹配学习的最优传输路径。固定两个端点并沿测地线前进,生成过程变为沿直线的确定性ODE,因此采样步数大大减少。将两类模型置于同一流形上,它们的关系变得精确:扩散遵循自由能梯度流(初值问题),最优传输流匹配遵循Wasserstein测地线(边值问题)。两者沿不同路径到达相同端点。
英文摘要:
The space $\mathcal{P}_2(\mathbb{R}^d$) of probability measures with finite second moment carries a natural geometry: the quadratic Wasserstein distance W_2 makes it a complete metric space and, following Otto, a (formal) Riemannian manifold whose geodesics are the optimal-transport interpolations. On this manifold, the gradient flow of the free energy F(rho) = KL(rho || π) is exactly the Fokker-Planck equation, and its implicit-Euler discretization is the JKO scheme. This is the geometry underlying diffusion models: the forward process descends the free energy, and each denoising step realizes one JKO step, which recovers DDPM, DDIM, NCSN/SMLD, and Energy Matching; this is one scheme, not separate theories. The same manifold supports a second variational principle. Its geodesics - the minimum-action curves of the Benamou-Brenier formula - are precisely the optimal-transport paths that Flow Matching learns. Fixing both endpoints and following the geodesic, generation becomes a deterministic ODE along a straight line, hence far fewer sampling steps. Placing both families of models on one manifold makes their relationship exact: diffusion follows a free-energy gradient flow, an initial-value problem; optimal-transport Flow Matching follows a Wasserstein geodesic, a boundary-value problem. The two reach the same endpoints along different paths.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。