Score-Based Generative Modeling through Stochastic Differential Equations

Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon +1 more
11/26/2020
cs.LGstat.ML

Official code: yang-song/score_sde (1,845 stars, Apache-2.0, JAX, last commit 2022-11-29).

Abstract

Creating noise from data is easy; creating data from noise is generative modeling. We present a stochastic differential equation (SDE) that smoothly transforms a complex data distribution to a known prior distribution by slowly injecting noise, and a corresponding reverse-time SDE that transforms the prior distribution back into the data distribution by slowly removing the noise. Crucially, the reverse-time SDE depends only on the time-dependent gradient field (\aka, score) of the perturbed data distribution. By leveraging advances in score-based generative modeling, we can accurately estimate these scores with neural networks, and use numerical SDE solvers to generate samples. We show that this framework encapsulates previous approaches in score-based generative modeling and diffusion probabilistic modeling, allowing for new sampling procedures and new modeling capabilities. In particular, we introduce a predictor-corrector framework to correct errors in the evolution of the discretized reverse-time SDE. We also derive an equivalent neural ODE that samples from the same distribution as the SDE, but additionally enables exact likelihood computation, and improved sampling efficiency. In addition, we provide a new way to solve inverse problems with score-based models, as demonstrated with experiments on class-conditional generation, image inpainting, and colorization. Combined with multiple architectural improvements, we achieve record-breaking performance for unconditional image generation on CIFAR-10 with an Inception score of 9.89 and FID of 2.20, a competitive likelihood of 2.99 bits/dim, and demonstrate high fidelity generation of 1024 x 1024 images for the first time from a score-based generative model.

View on arXivView PDF

Code Implementations(1)

JAXApache-2.0

Official code for Score-Based Generative Modeling through Stochastic Differential Equations (ICLR 2021, Oral)

1,845232Python, Jupyter NotebookJan 3, 20213 years agoApache-2.0
controllable-generationdiffusion-modelsflaxgenerative-modelsiclr-2021+5 more

Similar Papers

Cite this paper

@article{song2020scorebased,
  title  = {Score-Based Generative Modeling through Stochastic Differential Equations},
  author = {Yang Song and Jascha Sohl-Dickstein and Diederik P. Kingma and Abhishek Kumar and Stefano Ermon and Ben Poole},
  year   = {2020},
  eprint = {2011.13456},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.13456}
}

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/2011.13456.svg)](https://codeofpaper.com/paper/2011.13456)

Discussion