An optimal control perspective on diffusion-based generative modeling

Julius Berner, Lorenz Richter, Karen Ullrich
11/2/2022
cs.LGmath.OCstat.ML
diffusion-flow

Official code: juliusberner/sde_sampler (76 stars, Python, MIT, PyTorch, last commit 2025-03-14).

Abstract

We establish a connection between stochastic optimal control and generative models based on stochastic differential equations (SDEs), such as recently developed diffusion probabilistic models. In particular, we derive a Hamilton-Jacobi-Bellman equation that governs the evolution of the log-densities of the underlying SDE marginals.

Show full abstract

This perspective allows to transfer methods from optimal control theory to generative modeling. First, we show that the evidence lower bound is a direct consequence of the well-known verification theorem from control theory. Further, we can formulate diffusion-based generative modeling as a minimization of the Kullback-Leibler divergence between suitable measures in path space. Finally, we develop a novel diffusion-based method for sampling from unnormalized densities -- a problem frequently occurring in statistics and computational sciences. We demonstrate that our time-reversed diffusion sampler (DIS) can outperform other diffusion-based sampling approaches on multiple numerical examples.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Improved sampling via learned diffusions (ICLR2024) and an optimal control perspective on diffusion-based generative modeling (TMLR2024)

769Python, ShellJan 20, 20241 years agoMIT
deep-learningdiffusion-modelsneural-networkspytorchsampling-methods+2 more

Similar Papers

Cite this paper

@article{berner2022optimal,
  title  = {An optimal control perspective on diffusion-based generative modeling},
  author = {Julius Berner and Lorenz Richter and Karen Ullrich},
  year   = {2022},
  eprint = {2211.01364},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.01364}
}

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

Discussion