从偏微分方程视角解析生成扩散模型的逆过程机制。
Generative diffusion models from a PDE perspective
- 用偏微分方程建模扩散逆过程,揭示其数学本质。
- 证明逆过程分布支撑集包含于原始数据分布,无内在正则化。
- 适用于理解扩散模型理论基础,适合研究者深入分析。
扩散模型已成为生成新数据的主流框架,其核心在于时间反演扩散过程。本文从偏微分方程(PDE)视角,阐释该方法的工作原理,推导逆向动力学的控制方程,并对其解进行解析研究。通过连接前向与逆向动态,我们证明逆过程的分布支撑集包含于原始分布中,因此在解析形式下,扩散方法不具有内在正则化能力,也无普遍泛化原则。这引发疑问:为何实践中仍存在泛化现象?进一步地,在前向过程起始点固定的前提下,我们推导出逆过程随机微分方程(SDE)的显式解,从而将两种主流扩散生成方法——稳定扩散(离散动态)与基于得分的方法(连续动态)统一起来。最后,当原始分布由有限个数据点构成时,逆向动态是显式的(损失函数有明确最小值),但求解该动态无法生成新样本,系统收敛至原始数据点。这表明精确求解最小化问题反而导致过拟合,即‘太好反而适得其反’。
原文摘要 · Abstract (English)
Diffusion models have become the de facto framework for generating new datasets. The core of these models lies in the ability to reverse a diffusion process in time. The goal of this manuscript is to explain, from a PDE perspective, how this method works and how to derive the PDE governing the reverse dynamics as well as to study its solution analytically. By linking forward and reverse dynamics, we show that the reverse process's distribution has its support contained within the original distribution. Consequently, diffusion methods, in their analytical formulation, do not inherently regularize the original distribution, and thus, there is no generalization principle. This raises a question: where does generalization arise, given that in practice it does occur? Moreover, we derive an explicit solution to the reverse process's SDE under the assumption that the starting point of the forward process is fixed. This provides a new derivation that links two popular approaches to generative diffusion models: stable diffusion (discrete dynamics) and the score-based approach (continuous dynamics). Finally, we explore the case where the original distribution consists of a finite set of data points. In this scenario, the reverse dynamics are explicit (i.e., the loss function has a clear minimizer), and solving the dynamics fails to generate new samples: the dynamics converge to the original samples. In a sense, solving the minimization problem exactly is "too good for its own good" (i.e., an overfitting regime).
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。