This optional route supplies the algebra behind the main chapter and one experiment that goes beyond it. You need means, variances, Gaussian densities, and completing a square. The likelihood section connects to maximum likelihood from Lesson 2. Nothing here is required to run the lab.
Throughout, \(\alpha_t=1-\beta_t\), \(\bar\alpha_t=\prod_{s=1}^t\alpha_s\), and \(\bar\alpha_0=1\). Images can be treated as vectors; the conditional covariance matrices below are scalar multiples of \(I\).
Sources
The model formulation and objective originate in Ho et al. (2020); these calculations spell out the Gaussian algebra for this course. The lab’s shorter deterministic sampling paths use J. Song et al. (2021). The cosine schedule is from Nichol and Dhariwal (2021), the score identity is discussed in Vincent (2011) and Y. Song et al. (2021), and classifier-free guidance is from Ho and Salimans (2022). No external implementation or figure is copied.
Ho, Jonathan, Ajay Jain, and Pieter Abbeel. 2020. “Denoising Diffusion Probabilistic Models.” Advances in Neural Information Processing Systems.
Ho, Jonathan, and Tim Salimans. 2022.
Classifier-Free Diffusion Guidance.
https://arxiv.org/abs/2207.12598.
Nichol, Alexander Quinn, and Prafulla Dhariwal. 2021.
“Improved Denoising Diffusion Probabilistic Models.” Proceedings of the 38th International Conference on Machine Learning, Proceedings of machine learning research, vol. 139: 8162–71.
https://arxiv.org/abs/2102.09672.
Song, Jiaming, Chenlin Meng, and Stefano Ermon. 2021.
“Denoising Diffusion Implicit Models.” International Conference on Learning Representations.
https://arxiv.org/abs/2010.02502.
Song, Yang, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. 2021.
“Score-Based Generative Modeling Through Stochastic Differential Equations.” International Conference on Learning Representations.
https://iclr.cc/virtual/2021/poster/3177.
Vincent, Pascal. 2011.
“A Connection Between Score Matching and Denoising Autoencoders.” Neural Computation 23 (7): 1661–74.
https://doi.org/10.1162/NECO_a_00142.