Elucidating the solution space of extended reverse-time SDE for diffusion models

Qinpeng Cui, Xinyi Zhang, Qiqi Bao, Qingmin Liao
9/12/2023
cs.LGcs.CV

Official code: QinpengCui/ER-SDE-Solver (12 stars, MIT, last commit 2023-09-30).

Abstract

Sampling from Diffusion Models can alternatively be seen as solving differential equations, where there is a challenge in balancing speed and image visual quality. ODE-based samplers offer rapid sampling time but reach a performance limit, whereas SDE-based samplers achieve superior quality, albeit with longer iterations. In this work, we formulate the sampling process as an Extended Reverse-Time SDE (ER SDE), unifying prior explorations into ODEs and SDEs. Theoretically, leveraging the semi-linear structure of ER SDE solutions, we offer exact solutions and approximate solutions for VP SDE and VE SDE, respectively. Based on the approximate solution space of the ER SDE, referred to as one-step prediction errors, we yield mathematical insights elucidating the rapid sampling capability of ODE solvers and the high-quality sampling ability of SDE solvers. Additionally, we unveil that VP SDE solvers stand on par with their VE SDE counterparts. Based on these findings, leveraging the dual advantages of ODE solvers and SDE solvers, we devise efficient high-quality samplers, namely ER-SDE-Solvers. Experimental results demonstrate that ER-SDE-Solvers achieve state-of-the-art performance across all stochastic samplers while maintaining efficiency of deterministic samplers. Specifically, on the ImageNet $128\times128$ dataset, ER-SDE-Solvers obtain 8.33 FID in only 20 function evaluations. Code is available at \href{https://github.com/QinpengCui/ER-SDE-Solver}{https://github.com/QinpengCui/ER-SDE-Solver}

View on arXivView PDF

Code Implementations(1)

MIT
122PythonSep 12, 20233 years agoMIT

Cite this paper

@article{cui2023elucidating,
  title  = {Elucidating the solution space of extended reverse-time SDE for diffusion models},
  author = {Qinpeng Cui and Xinyi Zhang and Qiqi Bao and Qingmin Liao},
  year   = {2023},
  eprint = {2309.06169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.06169v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.06169.svg)](https://codeofpaper.com/paper/2309.06169)

Discussion