In a denoising diffusion probabilistic model (DDPM), the forward process is . How do you derive the closed-form marginal with and , and why does predicting the noise match predicting the score ?
Deep learning, Diffusion models
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can derive the single-step forward sampling formula used to train diffusion models at random timesteps and connect noise prediction to score matching.
Key idea
Repeatedly substituting adds independent zero-mean Gaussians, whose variances sum (). Differentiating the resulting Gaussian log-density gives .
Steps
- Write the reparameterised single step with : , where .
- Prove by induction: for it holds directly since . Assume it holds at : with independent of .
- Substitute into : . Since adding two independent zero-mean Gaussians gives a zero-mean Gaussian whose variance is the sum of variances, the noise variance is . Thus .
- Connect to the score: . Differentiating with respect to and substituting yields .
- Conclude: training with the simplified DDPM loss lets you sample any timestep in without unrolling steps, and estimates the scaled conditional score .
Common mistakes
- Adding standard deviations instead of variances when merging two independent Gaussian noise terms.
- Missing the minus sign and the factor when relating to the score .
How long your answer should be
One page; 6–7 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: Why do gradients of the original minimax GAN objective vanish when and have disjoint supports, what is mode collapse, and how does the Wasserstein-1 distance in WGAN fix both?
Next in Deep learning: At DDPM reverse step with , , and scalar noisy value , a trained noise network predicts . What is the estimated clean signal , and what is the reverse-step mean used to sample ?