In a DDPM, why is the reverse-time conditional tractable when conditioned on even though is not, and how do you derive its mean and variance by completing the square in Bayes’ rule?
Deep learning, Diffusion models
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can derive the exact Gaussian reverse posterior used in the DDPM variational ELBO and understand why conditioning on avoids the intractable data integral.
Key idea
The unconditional reverse transition requires integrating over the unknown data distribution . Conditioning on fixes both factors in Bayes’ rule— and —as explicit Gaussians, so their product is Gaussian with variance .
Steps
- Contrast with : by Markovity of the forward chain, . Bayes’ rule gives , avoiding any integral over the unknown .
- Write the exponent (quadratic in , treating each coordinate independently since covariances are isotropic): .
- Collect the coefficient to find : , so .
- Collect the linear coefficient to find : . Multiply by : .
- Connect to the ELBO: the DDPM variational bound decomposes into step-wise KL terms . Setting to have variance reduces to squared error , which after substituting yields the weighted noise-prediction loss.
Common mistakes
- Writing and forgetting the factor multiplying from .
- Confusing the true conditional variance (smaller than , and at since ) with the forward step noise .
How long your answer should be
One page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: For linear regression with inverted dropout on the inputs (keep probability ), why does the expected squared loss equal the ordinary squared loss plus an adaptive L2 penalty? What is the closed-form solution, and what does the penalty say about how dropout regularises?
Next in Deep learning: For a positive pair and independent negative samples with critic score , how do you prove that minimising the InfoNCE loss maximises a lower bound on the mutual information , and what is the optimal critic ?