Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, Jun Zhu• 2022

Related benchmarks

TaskDatasetResultRank
Image GenerationCIFAR-10 (test)
FID5.09
471
Image GenerationImageNet 256x256 (val)
FID4.15
307
Image GenerationCelebA 64 x 64 (test)
FID2.98
203
Unconditional Image GenerationCIFAR-10 unconditional
FID2.65
159
Image GenerationCIFAR10 32x32 (test)
FID3.94
154
Image GenerationImageNet 64x64 resolution (test)
FID3.42
150
Class-conditional Image GenerationImageNet 64x64
FID7.93
126
Image GenerationImageNet 64x64
FID1.45
114
Image GenerationCIFAR-10
FID2.75
95
Unconditional Image GenerationCelebA unconditional 64 x 64
FID3.08
95
Showing 10 of 39 rows

Other info

Code

Follow for update