From Diffusion Models to Flow Matching: The Evolution
How the field evolved from score-based diffusion to flow matching — understanding the mathematical thread connecting these approaches.
A Brief History
The journey from diffusion models to flow matching represents one of the most elegant simplifications in modern generative modeling. Let's trace the mathematical evolution.
Score-Based Diffusion (2020-2021)
The key insight: if you can estimate the score function \nabla_x \log p_t(x) at each noise level, you can generate samples by running a reverse-time SDE:
This works beautifully but requires careful noise schedule design and many sampling steps.
The ODE Perspective (2022)
Song et al. showed that every diffusion SDE has a corresponding probability flow ODE:
This opened the door to deterministic sampling and connections to normalizing flows.
Flow Matching (2023+)
Flow matching simplifies everything dramatically. Instead of learning a score function through denoising, you directly learn a velocity field that transports noise to data:
The training objective becomes:
where x_t = (1-t)x_0 + tx_1 is a simple linear interpolation.
Why Flow Matching Wins
The Unifying View
All these approaches are instances of learning transport maps between distributions. The mathematics of optimal transport provides the unifying framework — and understanding it deeply reveals why certain design choices work better than others.