Flow Matching Neural Processes
Hussen Abu Hamad, Dan Rosenbaum
TL;DR
FlowNP solves the neural process conditioning problem with flow matching, using a transformer to predict flow velocities for all target points in parallel and enabling ODE-based sampling and likelihood estimation. By modeling conditional distributions directly and amortizing conditioning, FlowNP achieves state-of-the-art results on synthetic GP benchmarks, 2D image datasets, and real-world ERA5 weather data, while offering a simple, implementable alternative to autoregressive and diffusion-based NP methods. The approach preserves exchangeability, approximates consistency through NP training, and provides a controllable trade-off between accuracy and runtime via the number of ODE steps. Overall, FlowNP delivers fast, coherent conditional sampling and likelihood computation for function-valued data, with practical impact across domains requiring flexible conditional uncertainty modeling.
Abstract
Neural processes (NPs) are a class of models that learn stochastic processes directly from data and can be used for inference, sampling and conditional sampling. We introduce a new NP model based on flow matching, a generative modeling paradigm that has demonstrated strong performance on various data modalities. Following the NP training framework, the model provides amortized predictions of conditional distributions over any arbitrary points in the data. Compared to previous NP models, our model is simple to implement and can be used to sample from conditional distributions using an ODE solver, without requiring auxiliary conditioning methods. In addition, the model provides a controllable tradeoff between accuracy and running time via the number of steps in the ODE solver. We show that our model outperforms previous state-of-the-art neural process methods on various benchmarks including synthetic 1D Gaussian processes data, 2D images, and real-world weather data.
