DPM-Solver:一种用于扩散概率模型快速采样的常微分方程求解器

DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps

朱军 Jun Zhu · Tsinghua University · 2022-06-02 · arXiv:2206.00927 ↗ · 被引 2434

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

扩散概率模型(DPM)是新兴的强大生成模型。尽管其生成质量高,但采样速度慢,通常需要数百或数千次大型神经网络的顺序函数评估(步骤)才能生成一个样本。从 DPM 采样可视为求解相应的扩散常微分方程(ODE)。本文提出了扩散 ODE 解的精确公式,该公式解析计算解的线性部分,而非像先前工作那样将所有项留给黑箱 ODE 求解器。通过变量变换,解可等价简化为神经网络的指数加权积分。基于该公式,我们提出了 DPM-Solver,一种针对扩散 ODE 的快速专用高阶求解器,具有收敛阶保证。DPM-Solver 适用于离散时间和连续时间 DPM,无需额外训练。实验结果表明,DPM-Solver 在各种数据集上仅需 10 到 20 次函数评估即可生成高质量样本。在 CIFAR10 数据集上,我们实现了 10 次函数评估下 FID 为 4.70,20 次函数评估下 FID 为 2.87,并且在各种数据集上相比先前最先进的无训练采样器实现了 4 到 16 倍的加速。

Diffusion probabilistic models (DPMs) are emerging powerful generative models. Despite their high-quality generation performance, DPMs still suffer from their slow sampling as they generally need hundreds or thousands of sequential function evaluations (steps) of large neural networks to draw a sample. Sampling from DPMs can be viewed alternatively as solving the corresponding diffusion ordinary differential equations (ODEs). In this work, we propose an exact formulation of the solution of diffusion ODEs. The formulation analytically computes the linear part of the solution, rather than leaving all terms to black-box ODE solvers as adopted in previous works. By applying change-of-variable, the solution can be equivalently simplified to an exponentially weighted integral of the neural network. Based on our formulation, we propose DPM-Solver, a fast dedicated high-order solver for diffusion ODEs with the convergence order guarantee. DPM-Solver is suitable for both discrete-time and continuous-time DPMs without any further training. Experimental results show that DPM-Solver can generate high-quality samples in only 10 to 20 function evaluations on various datasets. We achieve 4.70 FID in 10 function evaluations and 2.87 FID in 20 function evaluations on the CIFAR10 dataset, and a $4\sim 16\times$ speedup compared with previous state-of-the-art training-free samplers on various datasets.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 19)

阅读逐段中英对照全文 →