Diffusion Model Notes: From the Evidence Lower Bound and Score Matching to DDIM, Guidance, and Flow Matching
A set of diffusion model notes (Diffusion Model, a class of generative models that learn a data distribution by adding noise step by step and then denoising step by step) organized in the same style as the reinforcement learning algorithm notes: it first clarifies the three routes of generative modeling and where diffusion sits among them, then follows the chain of forward noising → evidence lower bound and simplified loss → score matching and Langevin dynamics → DDPM → DDIM acceleration → continuous-time stochastic differential equations and probability flow ordinary differential equations → conditional guidance → latent-space diffusion → network architecture and parameterizations → flow matching and rectified flow → distillation and few-step sampling → evaluation metrics → integration with reinforcement learning and embodied intelligence, and for each stage gives the objective, the formulas, complete pseudocode, a paragraph-by-paragraph walkthrough, the gradient flow and detach checklist, a pitfall checklist, and the scope of application. It closes with more than ten application scenarios, one model-selection decision chain, and an abbreviation reference table.