arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.02063cs.LG
收藏

探究扩散模型中生成过程的最优选择:常微分方程与随机微分方程

Exploring the Optimal Choice for Generative Processes in Diffusion Models: Ordinary vs Stochastic Differential Equations

Institute of Natural Sciences & School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学自然科学研究院与数学科学学院);University of Science and Technology of China(中国科学技术大学);Suzhou Institute of Advanced Research, University of Science and Technology of China(中国科学技术大学苏州高等研究院);City University of Hong Kong(香港城市大学)

Yu Cao, Jingrun Chen, Yixin Luo, Xiang Zhou

AI总结:

该研究针对扩散模型中ODE与SDE生成过程的优劣比较难题,通过数学分析两种极限场景下脉冲形误差对采样的影响,明确了扰动出现位置不同时两类模型的性能差异,并通过多类分布与真实数据集完成数值验证。

摘要:

扩散模型已在计算机视觉领域取得显著成效,但目前尚不清楚基于常微分方程(ODE)的概率流模型与基于随机微分方程(SDE)的扩散模型孰优孰劣,以及各自适用的场景。由于两类模型的表现依赖于数据分布、分数训练及其他数值问题,直接对二者进行比较存在难度。本文针对两种极限场景——零扩散(ODE)场景与大扩散场景,从数学层面研究该问题。我们首先引入脉冲形误差来扰动分数函数,分析采样质量的误差累积情况,随后针对任意误差的泛化问题展开全面分析。研究结果表明:当扰动出现在生成过程末尾时,ODE模型的表现优于扩散系数较大的SDE模型;而当扰动出现较早时,SDE模型的表现优于ODE模型,且我们证实,随着扩散项的幅值增大至无穷大,这类脉冲形扰动导致的样本生成误差会被指数级抑制。我们利用高斯分布、高斯混合分布、瑞士卷分布,以及MNIST、CIFAR-10等真实数据集,对该现象进行了数值验证。

英文摘要:

The diffusion model has shown remarkable success in computer vision, but it remains unclear whether the ODE-based probability flow or the SDE-based diffusion model is more superior and under what circumstances. Comparing the two is challenging due to dependencies on data distributions, score training, and other numerical issues. In this paper, we study the problem mathematically for two limiting scenarios: the zero diffusion (ODE) case and the large diffusion case. We first introduce a pulse-shape error to perturb the score function and analyze error accumulation of sampling quality, followed by a thorough analysis for generalization to arbitrary error. Our findings indicate that when the perturbation occurs at the end of the generative process, the ODE model outperforms the SDE model with a large diffusion coefficient. However, when the perturbation occurs earlier, the SDE model outperforms the ODE model, and we demonstrate that the error of sample generation due to such a pulse-shape perturbation is exponentially suppressed as the diffusion term's magnitude increases to infinity. Numerical validation of this phenomenon is provided using Gaussian, Gaussian mixture, and Swiss roll distribution, as well as realistic datasets like MNIST and CIFAR-10.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑