Introduction
Generative modeling aims to transform a simple latent distribution $\mu_0$ (typically Gaussian noise) into a complex data distribution $\mu_1$ (such as images). While Continuous Normalizing Flows (CNFs) and diffusion models achieve this through Ordinary or Stochastic Differential Equations (ODEs/SDEs), they often involve complex likelihood calculations or score matching. Flow matching has recently emerged as a highly scalable alternative that directly learns the velocity field $v_t$ required to transport noise to data.
Despite its success, the mathematical foundations of flow matching have been fragmented across various frameworks like conditional probability paths, rectified flows, and stochastic interpolants. This work provides a rigorous unification of these perspectives and extends the framework to solve Bayesian inverse problems.
Mathematical Framework
The core objective of flow matching is to define a target curve $\mu_t$ connecting $\mu_0$ and $\mu_1$, and subsequently train a neural network to approximate the velocity field $v_t$ that drives this curve. The paper identifies and unifies three primary constructions for these curves:
- Couplings (Transport Plans): Defining a joint distribution between noise and data. While independent couplings are common, Optimal Transport (OT) couplings provide more efficient pairings.
- Markov Kernels: Defining the flow by conditioning the path on specific target samples, a method popularized in Conditional Flow Matching.
- Stochastic Processes: Defining the curve via the conditional expectations of time-differentiable stochastic processes, as seen in Rectified Flows.
The authors mathematically demonstrate that the coupling approach is a special case of both the Markov kernel and stochastic process frameworks, proving that these seemingly distinct methods share the same underlying geometry.
Bayesian Inverse Problems
A significant contribution of this work is the extension of flow matching to Bayesian inverse problems, such as image reconstruction from noisy or blurry observations. To ensure the generated samples strictly respect the observed data, the authors introduce the conditional Wasserstein distance. This metric forces the transport plan to move probability mass only in ways consistent with the conditioning variable, effectively allowing the model to sample from the true posterior distribution.
Key Insights and Results
The Advantage of Straight Paths
When flow matching utilizes Optimal Transport (OT) couplings, the resulting curves are geodesics in Wasserstein space. In practice, this translates to straight-line trajectories from noise to data. These straight paths are significantly easier for numerical ODE solvers to compute, leading to faster generation compared to the curved trajectories found in standard CNFs or independent-coupling models.
Empirical Validation
The framework was validated across several benchmarks:
- Synthetic 2D Datasets: Visualizations confirmed that Minibatch OT flow matching produces straight, non-intersecting trajectories.
- CIFAR-10: The conditional Wasserstein framework enabled successful class-conditional image generation, where standard flow matching often fails to isolate classes properly.
- Inverse Problems: In a 5D synthetic linear inverse problem, the Bayesian flow matching approach accurately recovered complex, multi-modal posterior distributions, matching analytical ground truths.
Discussion and Limitations
While theoretically robust, the practical application of exact Optimal Transport is computationally intensive for large datasets. Consequently, practitioners must rely on minibatch OT approximations. Additionally, the strict conditional Wasserstein distance requires a relaxed metric ($W_\beta$) when dealing with empirical data distributions.
This unified mathematical foundation provides a clear path forward for applying flow matching to more structured domains, including time-series forecasting and complex scientific inverse problems.
Summary updated