Improving Function Space Flow Matching with Kernel Optimal Transport
Organizations: University of California, Los Angeles · Block, Inc. · Imperial College London
Abstract
Generative models for function-valued data, such as time series and solutions of partial differential equations, must learn distributions over infinite-dimensional spaces. Functional Flow Matching (FFM) extends Flow Matching to this setting, learning a velocity field whose flow transports a Gaussian prior to the data distribution, but it inherits the independent endpoint pairing of standard Flow Matching: in each batch, prior and data samples are matched arbitrarily, so the conditional bridge must traverse both the shared global structure of the dataset and instance-specific residuals. In function space this is harder to fix than in finite dimensions, since optimal transport (OT) on function spaces is delicate to formulate and a flat Euclidean surrogate ignores the geometry that distinguishes function-valued data. We propose kernel Functional Flow Matching (kFFM), which replaces the independent pairing by entropic OT under a kernel-induced cost, the coupling underlying the Hilbert Sinkhorn Divergence (HSD), leaving the FFM neural-operator architecture unchanged. We prove that the kernel cost and the HSD objective are uniformly bounded and well-posed on Banach ambient spaces, derive an error decomposition against quadratic-cost OT on compact metric spaces that isolates an irreducible kernel-cost mismatch term, and prove a discretization-invariance bound whose rate is governed by Sobolev regularity. Empirically, kFFM improves distributional matching over FFM, diffusion, adversarial, and finite-dimensional OT baselines on time-series and PDE benchmarks, with significant paired-seed gains over FFM and improvements that persist under non-kernel and physics-based diagnostics, including a turbulent Navier-Stokes benchmark. Bounded kernel costs already outperform raw Sinkhorn, and function-space-aware kernels (signature, Sobolev RBF) give further gains on rough or path-valued data.
Figures & tables
| Dataset | kFFM (selected) | CFM-OT( ) | FFM | DDPM | DDO/NCSN | GANO | Gain (%) |
|---|---|---|---|---|---|---|---|
| Heston | kFFM (RBF/wn) : | – | |||||
| AEMET | kFFM (Sig/gp) : | – | |||||
| KdV | kFFM (Sob-RBF/gp) : | – | |||||
| Economy | kFFM (Sig/gp) : | ||||||
| Gene Expr. | kFFM (Sig/gp) : | ||||||
| Stoch. KdV | kFFM (Sob-RBF/gp) : |
| Sliced- | Marginal- | |||
|---|---|---|---|---|
| Dataset | FFM | kFFM | FFM | kFFM |
| Gene Expr. (Sig/gp) | ||||
| Economy (Sig/gp) | ||||
| Navier–Stokes (RBF/wn) | ||||
| Stoch. NS (RBF/wn) | ||||
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Quantity | Measurement |
|---|---|
| End-to-end training overhead vs. FFM | – at the largest trained resolution ( Navier–Stokes) |
| Peak coupling memory | – MB across benchmarks and ; – of the FNO forward+backward peak (e.g. MB vs. GB on Navier–Stokes ) |
| Per-batch coupling time | – ms, about one FNO step |
| Bounded RBF vs. unbounded Sinkhorn ( ) | vs. ms per batch ( ); – faster end-to-end training |
| Signature-kernel memory | GB at time points vs. GB at ; the selection rule therefore assigns RBF/ costs to very long sequences |
| Larger-model control | Giving FFM the budget as extra epochs does not close the gap (loss curves plateau early) |
| Dataset | Metric | FFM | kFFM-Sig |
|---|---|---|---|
| Gene Expr. | Sliced- | ||
| Marginal- | |||
| Autocorr. MSE ( ) | |||
| log-Spectrum MSE ( ) | |||
| Economy | Sliced- | ||
| Marginal- |
| Dataset | Heston | AEMET | KdV | Economy | Gene Expr. | Stoch. KdV | Stoch. NS | Navier–Stokes |
|---|---|---|---|---|---|---|---|---|
| MMD-RBF (%) |
Flow Matching
Flow matching learns continuous-time vector fields that transport simple noise distributions into data for efficient generative modeling.
See all 656 papers