When we learn a diffusion model, we learn the reverse process of the encoder. In other words, we learn a series of probabilistic mappings back from latent variable to , from to , and so on, until we reach the data .

The true reverse distributions of the diffusion process are complex multi-modal distributions that depend on the data distribution . We approximate these as normal distributions:

where:

  • is a neural network that computes the mean of the normal distribution in the estimated mapping from to the preceding latent variable .
  • The terms are predetermined.
  • If the noise schedule hyperparameters in the diffusion process are close to zero (and the number of time steps ) is large, then this normal approximation will be reasonable.

We generate new examples from using ancestral sampling:

  • First, we draw from .
  • Then, we sample from , sample from and so on until we finally generate from .