arXiv:2609.00198cs.CVAug 2026

Manuscript Offprint

arXiv:2609.00198

A Lagrangian View of Flow Matching

Peyman Milanfar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Modern explicit-time generative models, such as Flow Matching [Lipman et al., 2023] and Rectified Flow [Liu et al., 2023], are typically derived top-down via Optimal Transport and the continuity equation. This standard Eulerian approach focuses on the macroscopic transport of probability mass. In this paper, we present an alternative, bottom-up mechanical derivation grounded in a Lagrangian (particle-centric) perspective. By analyzing the local Taylor expansion of a continuous denoiser, we motivate a strict invariance condition required for optimal, single-step generation: the conservation of target identity. Enforcing this condition yields a governing quasi-linear advection Partial Differential Equation (PDE). We demonstrate that solving this PDE via the Method of Characteristics analytically yields the straight-line trajectories of Flow Matching. This geometric perspective isolates the Jacobian of the denoiser as the primary source of trajectory curvature, providing a direct mathematical explanation for why straight-line flows enable massive step sizes, and why empirical models require distillation to flatten intersecting characteristics.

1 The Predictor-Corrector and the Moving Target

Consider a generative process mapping noise to data over a continuous time parameter t∈[0,1]t \in [0,1], where t=0t=0 defines the clean data manifold. Let x(t)x(t) be the state of the trajectory. We rely on a differentiable denoising function f(x,t)f(x,t) whose objective is to predict the final clean data state x0x_0 from the current state x(t)x(t).

As the state moves infinitesimally along the trajectory by dxdx over time dtdt, the denoiser's prediction of the target changes according to its total continuous differential:

df=Jf(x,t) dx+∂f∂t(x,t) dt(1)df = J_f(x,t) \, dx + \frac{\partial f}{\partial t}(x,t) \, dt \tag{1}

where JfJ_f is the spatial Jacobian matrix and ∂f/∂t\partial f/\partial t represents the temporal drift.

This continuous drift presents a fundamental challenge for the discrete ODE solvers used in standard generative models (such as Gaussian diffusion). To understand this algorithmic penalty, consider what happens when a discrete solver attempts to navigate this changing field across a single, finite time step. Suppose the solver is currently at state xx at time tt:

  1. The Predictor: The solver applies the denoiser to get its first prediction, f(x,t)f(x,t). It calculates the residual error between its current state and this target, (x−f(x,t))(x - f(x,t)), and uses this to dictate the discrete step forward, Δx\Delta x.

  2. The Corrector: The solver arrives at the new state, x+Δxx + \Delta x, at the advanced time t−Δtt - \Delta t. It must now apply the denoiser a second time to re-evaluate the target.

We can observe the denoiser's behavior during this second application by taking a first-order Taylor expansion at the new state, which acts as the discrete, macroscopic version of the total differential:

f(x+Δx,t−Δt)≈f(x,t)+Jf(x,t)Δx−∂f∂t(x,t)Δt(2)f(x+\Delta x,t-\Delta t)\approx f(x,t)+J_{f}(x,t)\Delta x-\frac{\partial f}{\partial t}(x,t)\Delta t \tag{2}

This expansion reveals a fundamental bottleneck. Because the noise schedule curves the underlying manifold, the destination is constantly shifting. The Jacobian JfJ_{f} corrects the estimate by reacting to the newly revealed local geometry at x+Δxx+\Delta x, while the temporal derivative accounts for the receding timeline. Consequently, in standard diffusion, the denoiser's prediction of the clean image changes at every single step. Because the target is continuously moving, solvers are forced to take extremely small, conservative step sizes ( Δt\Delta t) to avoid overshooting the shifting destination.