Stochastic Process Learning via Operator Flow Matching

Yaozhong Shi, Zachary E Ross, Domniki Asimaki, Kamyar Azizzadenesheli

Introduction

Gaussian Processes (GPs) have long served as the foundational tool for functional regression, providing a mathematically rigorous framework for predicting continuous functions from discrete, noisy observations. Their success stems from their ability to provide closed-form solutions and reliable uncertainty quantification. However, GPs are fundamentally limited by their underlying assumption: the data must follow a Gaussian distribution. In many real-world physical systems—ranging from fluid dynamics and weather patterns to the complex structures of black hole physics—phenomena are inherently non-Gaussian.

While alternatives like Deep GPs and Neural Processes (NPs) have been developed to address these complexities, they often introduce significant trade-offs. These models frequently rely on approximate variational inference, lack exact probability densities, or treat data as discrete point clouds rather than continuous functions. This latter issue is particularly problematic, as it breaks mathematical consistency when data resolution changes. This paper introduces Operator Flow Matching (OFM), a generative framework designed to learn general stochastic processes directly from data while maintaining the exact, closed-form Bayesian inference capabilities of classical GPs.

Methodology

Operator Flow Matching (OFM)

OFM bridges the gap between state-of-the-art generative modeling and infinite-dimensional function spaces. It adapts Flow Matching—a technique typically used for fixed-resolution images—to the domain of Neural Operators. Specifically, the framework utilizes a Fourier Neural Operator (FNO) to parameterize a continuous vector field. This field defines an Ordinary Differential Equation (ODE) that transports samples from a simple, known reference distribution (a standard GP) to a complex target distribution representing the real-world data.

Exact Likelihoods and Mathematical Rigor

One of the primary advantages of OFM is its ability to compute exact likelihoods. Because the learned flow is an invertible ODE, the authors apply the change-of-variables formula to determine the density of any given function. To manage the computational complexity of calculating the divergence of the vector field in high dimensions, the framework employs the Hutchinson trace estimator.

Crucially, OFM satisfies the Kolmogorov Extension Theorem. This ensures that the model learns a mathematically valid stochastic process that remains consistent regardless of how data points are marginalized or permuted. Unlike models that are tied to specific grids, OFM is entirely resolution-agnostic; it can be trained on coarse data and queried at much finer resolutions without requiring retraining.

Universal Functional Regression (UFR)

Beyond density estimation, OFM enables principled Bayesian regression through a process termed Universal Functional Regression (UFR). When presented with sparse, noisy observations, the model performs inference by sampling from the exact posterior distribution in the latent GP space using Stochastic Gradient Langevin Dynamics (SGLD). These latent samples are then mapped back through the learned flow to the data space, providing both predictions and well-calibrated uncertainty bounds.

Experimental Evaluation

The authors evaluated OFM across a diverse range of 1D and 2D functional datasets, including standard Matérn kernels, Truncated GPs (TGP), and complex physical simulations such as Navier-Stokes fluid dynamics and black hole patterns.

Key Findings

  • Superior Performance: OFM consistently outperformed standard GPs, Deep GPs, and Neural Processes on standard metrics, including Standardized Mean Squared Error (SMSE) and Mean Standard Log Loss (MSLL).
  • Extreme Sparse Regression: In complex tasks like Navier-Stokes and black hole modeling, OFM successfully reconstructed intricate dynamics using only 32 random observations—representing a mere 0.7% of the total grid. In these scenarios, traditional GPs and NPs failed to capture the underlying swirling structures and density patterns.
  • Optimal Transport Efficiency: The implementation of a mini-batch optimal transport plan—forcing the flow to follow efficient, straight paths from noise to data—significantly accelerated inference and improved the accuracy of the learned prior compared to independent coupling methods.
  • Calibrated Uncertainty: The model provides highly accurate uncertainty maps (standard deviation) that closely align with ground truth, even in the context of complex physical simulations.

Discussion and Limitations

While OFM represents a significant step forward in functional generative modeling, it faces certain challenges. The framework is currently optimized for low-dimensional domains (1D and 2D), as extending neural operators to higher-dimensional spaces remains an open research problem. Additionally, the computational cost is non-trivial; the requirement to solve ODEs and run SGLD for posterior sampling demands substantial GPU resources and time.

Future work aims to mitigate these costs by integrating more efficient ODE solvers, such as DPM-Solver, and utilizing mixed-precision FNOs. Despite these current limitations, Operator Flow Matching provides a robust, mathematically consistent path toward modeling the complex, non-Gaussian stochastic processes that define the physical world.

Summary updated

BibTeX
@inproceedings{shi2025stochastic,
  author = {Yaozhong Shi and Zachary E Ross and Domniki Asimaki and Kamyar Azizzadenesheli},
  title = {{Stochastic Process Learning via Operator Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Quvnn2o17a},
}
Figure