Manuscript Offprint

arXiv:2609.38049

Improving Function Space Flow Matching with Kernel Optimal Transport

Fred Xu, Thomas Markovich, Barbora Barancikova, Yizhou Sun

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

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 limitation 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), while leaving the FFM neural-operator architecture unchanged. Theoretically, we prove that the kernel cost and the HSD objective are uniformly bounded and well-posed on Banach ambient spaces, derive an explicit 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 statistically 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 L2L^{2} Sinkhorn, and function-space-aware kernels (signature, Sobolev RBF) give further gains on rough or path-valued data.

1 Introduction

Flow matching [35] is a powerful framework for generative modeling that learns the velocity field of a probability path between a reference and a data distribution. Time series and PDE snapshots are naturally represented as functions, motivating Kerrigan et al. [25] to extend this framework to function space through Functional Flow Matching (FFM), which defines a path of Gaussian measures in a Hilbert space and parameterizes the velocity field with a neural operator. FFM enjoys resolution-invariance and competitive performance on sequence and PDE datasets, but inherits the independent endpoint coupling of base FM. Under this coupling, each Gaussian prior sample is paired with an arbitrary data function in a minibatch, and the conditional bridge must traverse both

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

the shared global structure of the dataset and instance-specific residuals; the velocity field is then forced to discover the global structure and match each particular instance simultaneously. A natural fix is geometry-aware coupling: pairing each prior sample with a data sample that is already close in a meaningful geometry, so the bridge primarily transports the residual. This idea has improved finite-dimensional flow matching [48], but transferring it to function space is non-trivial: direct optimal transport (OT) on function spaces is delicate to formulate and compute [8, 9, 22, 37], and a flat L2L^{2} surrogate ignores the function-space geometry (Sobolev structure, path roughness) that distinguishes one function-valued sample from another.

We resolve this through a kernel-induced Hilbert space surrogate. Working in a Reproducing Kernel Hilbert Space [46], the entropic coupling underlying the Hilbert Sinkhorn Divergence [31] provides a tractable pairing rule whose kernel encodes prior knowledge about function-space geometry: Sobolev structure for PDE snapshots via the RBF kernel on HkH^k, and p-variation roughness for time series via the signature kernel [5, 6]. Our theory certifies this surrogate coupling (well-posedness with uniform bounds, an error decomposition with an irreducible kernel-mismatch term, and discretization invariance); it makes no straightness or sampling-efficiency claim in function space (Section 4, Appendix C.14), and the sample-quality gains are an empirical claim that we test with paired-seed statistics, non-kernel metrics, physics diagnostics, and a turbulent Navier–Stokes stress test. The kernel-induced surrogate also outperforms raw L2L^2 Sinkhorn: relative to a flat- L2L^2 minibatch-OT baseline (CFM-OT( L2L^2)) with the same Sinkhorn solver and neural-operator backbone, kFFM lowers the distributional error by 75% on Gene Expression and 66% on Economy. Function-space-aware kernels (Sobolev RBF, signature) add further gains on rough or path-valued data. Code for every experiment is publicly available. 1^1 Our main contributions are the following:

  1. We propose kernel Functional Flow Matching (kFFM), to our knowledge the first method to perform OT endpoint coupling in function-space flow matching: a kernel-induced cost couples prior and data samples before flow matching, while the FFM neural-operator architecture is unchanged.

  2. We establish three theoretical results for the function-space setting: uniform boundedness and well-posedness of the kernel cost and HSD on Banach ambient spaces; an explicit error decomposition against quadratic-cost OT on compact metric spaces (kernel mismatch, entropic bias, covering); and a discretization-invariance theorem with an N−2(α−k)/dN^{-2(\alpha-k)/d} rate that ties the function-space objective to the truncated grid representation the model actually computes.

  3. We show empirically that kFFM improves population-level distributional quality on time series and PDE snapshots over functional generative baselines and a finite-dimensional OT coupling baseline, with paired-seed significance, gains that survive non-kernel and physics-based metrics including a turbulent Navier–Stokes benchmark, and a training overhead of only 5–7% at the largest resolution we train. The coupling geometry matters differently across data classes: signature kernels for paths, RBF-type costs for fields.

References (88)