Theorem (Anderson 1982). If solves the forward SDE

with marginal densities , then the time-reversed process solves

where time runs backwards from to () and is a Brownian motion in reverse time. Starting from and integrating to produces samples of .

For the Variance-Preserving SDE (, ) with the learned score :

The score term pulls the sample towards the data distribution. Because , the backward step moves against the predicted noise.

It is discretised with the Euler-Maruyama Method or with DDPM’s exact Gaussian step (see DDPM Ancestral Sampling). The deterministic counterpart with the same marginals is the Probability Flow ODE.

References

  1. B. D. O. Anderson (1982). Reverse-time diffusion equation models. Stoch. Proc. Appl. 12(3), 313–326. doi:10.1016/0304-4149(82)90051-5
  2. Y. Song et al. (2021). Score-Based Generative Modeling through Stochastic Differential Equations. ICLR 2021. arXiv:2011.13456