Stanford CME296 Diffusion & Large Vision Models | Spring 2026 | Lecture 2 - Score matching

Stanford CME296 Diffusion & Large Vision Models | Spring 2026 | Lecture 2 - Score matching

🎙 Afshine Amidi, Shervine Amidi 👥 1.2M 📅 April 14, 2026 ⏱ 108 min 👁 23K 📄 lecture 🧭 2026-08-06
Available in: English (current) Français

Keywords

score matchingdenoising score matchingLangevin dynamicsSDEgenerative modeling

Summary

This lecture, part of Stanford’s CME296 course, introduces score matching as an alternative to DDPM for generative modeling. The instructors begin by recapping the DDPM approach, which learns to reverse a noise-adding process. They then motivate score matching by defining the score as the gradient of the log-probability density, which is tractable and points toward high-density regions. The lecture covers the challenges of estimating the score directly, leading to methods like implicit and sliced score matching, but focuses on denoising score matching (DSM). DSM leverages the tractable score of a Gaussian distribution to train a neural network to estimate the score of the data distribution. The instructors discuss limitations of DSM, such as the need for multiple noise levels, and introduce noise conditional score networks and annealed Langevin dynamics to address these. They draw parallels between DDPM and score matching, showing they are related. The lecture then extends to continuous-time formulations using stochastic differential equations (SDEs), deriving the reverse SDE and discussing inference via Euler-Maruyama and the probability flow ODE. The lecture concludes with an introduction to DPM-Solver, a fast solver for the PF-ODE.

184 words

Critical Evaluation

This lecture provides a comprehensive and rigorous introduction to score matching, a fundamental concept in modern generative modeling. The instructors, Afshine and Shervine Amidi, are adjunct lecturers at Stanford, and their expertise is evident in the clear and logical progression of the material. The lecture builds on the previous session’s coverage of DDPM, establishing a strong foundation by contrasting the two paradigms. The mathematical derivations are thorough, with careful attention to the tractability of the score function and the rationale behind denoising score matching. The use of Gaussian distributions as a tractable proxy is well-explained, and the limitations of the approach are honestly addressed, leading to the introduction of noise conditional score networks and annealed Langevin dynamics. The connection between score matching and DDPM is elegantly drawn, unifying the two perspectives. The extension to continuous-time SDEs is a natural and important step, as it provides a general framework for understanding diffusion models. The lecture also covers practical aspects such as training and inference, including the Euler-Maruyama method and the probability flow ODE, and introduces DPM-Solver as an efficient inference technique. The content is highly accurate and aligns with the established literature, including key papers by Song et al. and Ho et al. The lecture is well-paced, with interactive questions that enhance understanding. The only minor weakness is that some derivations are skipped due to time constraints, but the instructors acknowledge this and provide references. Overall, this is an excellent lecture that would benefit both students and practitioners seeking a deep understanding of score-based generative models.

255 words

Title / Content Match

The title accurately reflects the content, which focuses on score matching as a generative modeling paradigm.

Quality & Reliability

9/10

Lecture from Stanford University by experienced instructors, covering established mathematical foundations of score matching and diffusion models. The content is rigorous, well-structured, and aligns with published research in the field.

Chapters

Cited Sources

Concurring Sources

Contribution & Novelties

This lecture provides a clear and rigorous exposition of score matching, bridging the gap between discrete DDPM and continuous SDE formulations. It offers a unified perspective that is often scattered across research papers. The lecture’s strength lies in its pedagogical approach, making complex mathematical concepts accessible while maintaining technical depth.

Pour aller plus loin :

146 words

Radar Profile

The radar chart shows a well-balanced profile with high scores across all dimensions, indicating a lecture that is both information-dense and technically rigorous. The high scores in quantity and quality of information reflect the comprehensive coverage of score matching, while the high technical level is appropriate for an advanced course. The reliability score is also high, given the academic context and alignment with established research.

Reliability 9/10