DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lu, Cheng, Zhou, Yuhao, Bao, Fan, Chen, Jianfei, Li, Chongxuan, Zhu, Jun
Format: Preprint
Published: 2022
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913845858009088
author Lu, Cheng
Zhou, Yuhao
Bao, Fan
Chen, Jianfei
Li, Chongxuan
Zhu, Jun
author_facet Lu, Cheng
Zhou, Yuhao
Bao, Fan
Chen, Jianfei
Li, Chongxuan
Zhu, Jun
contents Diffusion probabilistic models (DPMs) have achieved impressive success in high-resolution image synthesis, especially in recent large-scale text-to-image generation applications. An essential technique for improving the sample quality of DPMs is guided sampling, which usually needs a large guidance scale to obtain the best sample quality. The commonly-used fast sampler for guided sampling is DDIM, a first-order diffusion ODE solver that generally needs 100 to 250 steps for high-quality samples. Although recent works propose dedicated high-order solvers and achieve a further speedup for sampling without guidance, their effectiveness for guided sampling has not been well-tested before. In this work, we demonstrate that previous high-order fast samplers suffer from instability issues, and they even become slower than DDIM when the guidance scale grows large. To further speed up guided sampling, we propose DPM-Solver++, a high-order solver for the guided sampling of DPMs. DPM-Solver++ solves the diffusion ODE with the data prediction model and adopts thresholding methods to keep the solution matches training data distribution. We further propose a multistep variant of DPM-Solver++ to address the instability issue by reducing the effective step size. Experiments show that DPM-Solver++ can generate high-quality samples within only 15 to 20 steps for guided sampling by pixel-space and latent-space DPMs.
format Preprint
id arxiv_https___arxiv_org_abs_2211_01095
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
Lu, Cheng
Zhou, Yuhao
Bao, Fan
Chen, Jianfei
Li, Chongxuan
Zhu, Jun
Machine Learning
Computer Vision and Pattern Recognition
Diffusion probabilistic models (DPMs) have achieved impressive success in high-resolution image synthesis, especially in recent large-scale text-to-image generation applications. An essential technique for improving the sample quality of DPMs is guided sampling, which usually needs a large guidance scale to obtain the best sample quality. The commonly-used fast sampler for guided sampling is DDIM, a first-order diffusion ODE solver that generally needs 100 to 250 steps for high-quality samples. Although recent works propose dedicated high-order solvers and achieve a further speedup for sampling without guidance, their effectiveness for guided sampling has not been well-tested before. In this work, we demonstrate that previous high-order fast samplers suffer from instability issues, and they even become slower than DDIM when the guidance scale grows large. To further speed up guided sampling, we propose DPM-Solver++, a high-order solver for the guided sampling of DPMs. DPM-Solver++ solves the diffusion ODE with the data prediction model and adopts thresholding methods to keep the solution matches training data distribution. We further propose a multistep variant of DPM-Solver++ to address the instability issue by reducing the effective step size. Experiments show that DPM-Solver++ can generate high-quality samples within only 15 to 20 steps for guided sampling by pixel-space and latent-space DPMs.
title DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2211.01095