Book and documentation links

Work in progress: this part of the notes is still being revised.

Books and documentation

The chapter notes develop the module’s main material. These books, tutorials, and documentation pages provide alternative explanations, fuller derivations, and the tools used to build real generative models. The reading plan lists the lecture slides and readings for each topic.

Main references

SourceRelevant material
Murphy, Probabilistic Machine Learning: Advanced Topics (MIT Press, 2023)Free draft; part IV treats every family with consistent notation: chapter 20, an overview (chapter 1), 21 on variational autoencoders (chapter 3), 22 on autoregressive models (chapter 2), 23 on normalizing flows (chapter 4), 24 on energy-based models (chapter 6), 25 on diffusion models (chapters 7–8), and 26 on adversarial networks (chapter 5).
Prince, Understanding Deep Learning (MIT Press, 2023)Free, with notebooks: chapter 14 on unsupervised learning (chapter 1), 15 on adversarial networks (chapter 5), 16 on normalizing flows (chapter 4), 17 on variational autoencoders (chapter 3), and 18 on diffusion models (chapter 7).
Holderrieth and Erives, An Introduction to Flow Matching and Diffusion Models (2026), the notes of MIT 6.S184Free; flow and diffusion models as differential equations, score matching, flow matching, guidance, architectures, and discrete diffusion (chapters 6 and 8–12), with the conversion formulas between velocities, scores, and denoisers used in chapter 9.
Lai, Song, Kim, Mitsufuji, and Ermon, The Principles of Diffusion Models (2025)Free monograph; the variational, score-based, and flow-based views of diffusion and their equivalence, guidance, fast solvers, and distillation (chapters 6–10 and 15).
Lipman et al., Flow Matching Guide and Code (2024)Free; flow matching in continuous, discrete, and Riemannian settings, with a PyTorch library (chapters 9 and 12).
Tomczak, Deep Generative Modeling (Springer, second edition, 2024), with codeA short book with a notebook for each family of models (chapters 2–7 and 12).

Tutorials and surveys

SourceRelevant material
Luo, Understanding Diffusion Models: A Unified Perspective (2022)A step-by-step derivation of diffusion as a hierarchical VAE, its variational bound, and its equivalence to score matching (chapters 3, 6, and 7).
Lilian Weng, What are Diffusion Models? (2021, updated)A compact survey of DDPM, score models, DDIM, guidance, and latent diffusion with consistent notation (chapters 7, 8, 10, and 11).
Yang Song, Generative Modeling by Estimating Gradients of the Data Distribution (2021)Score matching, annealed Langevin dynamics, and the SDE view, by one of their authors (chapters 6 and 8).
Sander Dieleman, blogEssays on guidance and its geometry, the perspectives on diffusion, latent spaces for generation, and diffusion as spectral autoregression (chapters 10, 11, and 15).
Gao, Hoogeboom, Heek, De Bortoli, Murphy, and Salimans, Diffusion Meets Flow Matching: Two Sides of the Same Coin (2024)An interactive explanation of why Gaussian flow matching and diffusion coincide, including their samplers and loss weightings (chapter 9).
Karras, Aittala, Aila, and Laine, Elucidating the Design Space of Diffusion-Based Generative Models (2022)Read as a tutorial: the separation of noise schedule, scaling, preconditioning, loss weighting, and sampler that chapter 8 follows.

Libraries and tools

SourceRelevant material
Hugging Face DiffusersPretrained pipelines for text-to-image, image-to-image, and video models, interchangeable schedulers (DDPM, DDIM, DPM-Solver++, Euler, Heun), guidance, ControlNet, LoRA fine-tuning, and training scripts (chapters 7–11).
k-diffusionReference implementations of the samplers and preconditioning of Karras et al. (chapter 8).
EDM2 codeThe training and sampling code of Karras et al. (2024), with post-hoc weight averaging and autoguidance (chapters 10 and 11).
Flow Matching library and TorchCFMFlow matching with Gaussian, optimal-transport, and discrete paths, and minibatch optimal-transport couplings (chapter 9).
clean-fid and dgm-evalFID and KID computed with consistent resizing, and the metrics and feature spaces compared by Stein et al. (chapter 13).
AudioCraftEnCodec and MusicGen, neural audio codecs and a transformer over their tokens (chapter 12).
Diffusion Policy and LeRobotTraining and evaluating diffusion policies and other imitation-learning policies for robots (chapter 14).
RFdiffusion and WeatherNextProtein design with RFdiffusion, and the weather models of Google DeepMind, whose repository includes GraphCast and GenCast (chapter 14).