Last modified: 7 Oct 2025 This note is organized during the study of the "Introduction to Flow Matching and Diffusion Models" course (https://diffusion.csail.mit.edu/). The content is derived from course notes, lectures and labs. I reorganized the material for my own understanding. The lab parts should be viewed with the source code for a comprehensive understanding since I didn’t show most utility functions.

1️⃣ Introduction

Generation → Sampling: Formalize what it means to “generate” objects

We represent the objects we want to generate as vectors.

How good an image is $\approx$ How likely it is under data distribution.

Distribution of data we want to generate: Probability Density $p_{data}: \mathbb{R}^d \rightarrow \mathbb{R}{\ge0}, \ \ \ z\mapsto p{data}(z)$

A generative model converts samples from a initial distribution (e.g. Gaussian) into samples from the data distribution.

Screenshot 2025-09-06 at 15.20.23.png

Flow Models

Diffusion Models