Abstract
We propose Functional Flow Matching (FFM), a function-space generative model that generalizes the recently-introduced Flow Matching model to operate directly in infinite-dimensional spaces. Our approach works by first defining a path of probability measures that interpolates between a fixed Gaussian measure and the data distribution, followed by learning a vector field on the underlying space of functions that generates this path of measures. Our method does not rely on likelihoods or simulations, making it well-suited to the function space setting. We provide both a theoretical framework for building such models and an empirical evaluation of our techniques. We demonstrate through experiments on synthetic and real-world benchmarks that our proposed FFM method outperforms several recently proposed function-space generative models.
Introduction
While generative modeling has achieved remarkable success in domains like image and audio synthesis, most existing methods assume data resides in a finite-dimensional space. However, many physical phenomena—such as temperature fluctuations, fluid dynamics solutions, or complex signals—are fundamentally functions. Traditional models operating on fixed discretizations (e.g., pixel grids) often fail to generalize across resolutions and can become mathematically ill-posed in the functional limit.
Researchers from UC Irvine have introduced Functional Flow Matching (FFM) to address these challenges. Presented at AISTATS 2024, FFM brings the efficiency of Flow Matching to infinite-dimensional function spaces, enabling the creation of discretization-invariant models that outperform existing functional diffusion and GAN-based approaches.
Methodology
FFM generalizes the Flow Matching (FM) paradigm to a measure-theoretic setting. Instead of learning a probability density directly—which is ill-defined in infinite dimensions—FFM learns a vector field that transforms a simple reference distribution (like a Gaussian Process) into the complex data distribution over time.
The framework relies on several key technical innovations:
- Measure-Theoretic Formulation: By utilizing the Weak Continuity PDE and Radon-Nikodym derivatives, the authors ensure mathematical soundness in infinite-dimensional spaces where standard Lebesgue measures do not exist.
- Conditional Flow Matching: The model defines a path of conditional Gaussian measures interpolating between noise and data. By marginalizing over the data, a "marginal vector field" is derived, which the model learns to approximate via regression.
- Simulation-Free Training: Unlike continuous-time models that require solving differential equations during training, FFM uses a regression-based objective. This allows for efficient training by simply sampling time points and predicting the vector field.
- Operator Backbones: The architecture employs Fourier Neural Operators (FNOs), which are inherently designed to learn mappings between function spaces.
Experimental Evaluation
The authors evaluated FFM across diverse benchmarks, including 1D time series (weather data, gene expression, and economic indicators) and 2D fluid dynamics (Navier-Stokes equations).
Key Results
- Accuracy and Statistics: On 1D datasets, the Optimal Transport (OT) variant of FFM consistently achieved the lowest Mean Squared Error (MSE) for pointwise statistics, including mean, variance, and autocorrelation.
- Fluid Dynamics: In 2D Navier-Stokes simulations, FFM accurately captured ground-truth density and energy spectra. In contrast, baseline models like DDO and GANO often suffered from mode collapse.
- Discretization Invariance: A core strength of FFM is its resolution-agnostic nature. Models trained on coarse grids can generate high-quality samples at much higher resolutions (super-resolution) without retraining, maintaining physical plausibility and correlation structures.
Conclusion and Future Work
Functional Flow Matching provides a robust, efficient framework for generative modeling in function spaces. By avoiding likelihood-based pathologies and leveraging simulation-free training, it offers a significant advancement over functional diffusion models.
Future research directions include adapting the model for irregular geometries using architectures like Geo-FNOs and developing standardized high-level metrics for functional generation, as the field currently lacks a "Functional FID" equivalent. Additionally, further theoretical work is needed to verify the absolute continuity assumptions for a broader range of real-world data distributions.
Summary updated