Diffusion models generate impressive images, but their sampling path is a long, noisy walk. A sample starts as pure noise and is gradually denoised over hundreds of steps, retracing a stochastic trajectory that was never designed to be efficient. Flow matching asks a simpler question: if we know where we start and where we want to end, why not learn the straightest possible path between them?
That question leads to a training method that is simpler than score matching, more flexible than a normalizing flow, and often much faster at sampling time. It replaces the reverse stochastic differential equation with an ordinary differential equation (ODE) whose vector field is learned directly from interpolated samples.
The core idea in one picture
Imagine a source distribution and a target distribution. The source might be a standard Gaussian. The target might be the distribution of natural images, audio, or protein structures.…