Flow Matching for Generative Modeling (Lipman et al.)
May 15, 2026
-diffusion only allows a narrow set of trajectories to go from noise to data (i.e. iterative, stochastic noising/denoising)
Continuous Normalizing Flows - define a continuous-time dynamical system that moves a simple distribution (i.e. Gaussian noise) into the data distribution
- - the state/sample at time
- - a neural network that defines a velocity field
-ODE solver used to solve for
-originally, repeatedly solve ODE through all time steps between 0 and 1, and update NN based on loss at the end instead of using the known correct direction
-much more computationally expensive
flow matching - a method to learn the function for CNFs
-supervise the correct overall motion (interpolate ) for a given image/time step to learn the vector field
-takes advantage of the fact that you know the "total displacement" between noise and sample, and uses that to learn the vector field
score matching - "which direction in space increases probability density the fastest"
-in diffusion used to find gradients of a probability distribution (reverse process) without modeling the underlying distribution
flow matching - objective designed to match a target probability path, allowing a distribution to flow from to some unkown, desired for which there are data samples
-construct intermediate distributions , and then learn the vector field that flows from by sampling data points
- - velocity vector field evaluated at position and time
-FM Objective
-regression between the vector field and the neural network
Process:
1.Sample and
2.Sample time
3.Calculate sample
1.e.g. for linear interpolation, we have
4.Calculate
1.e.g. for linear interpolation
5.Compute regression loss
conditional probability path - , intermediate probability path conditioned on ending at the sample
-Motivation: the location/point can be on many trajectories, making it ambiguous unless conditioned on the sample
marginal probability path - , mixture of all conditional probability paths over samples
marginal vector field - , expectation of all conditional vector fields over samples