Mamba Flow Matching Neural Processes: Linear-Time Inference for Irregularly Observed Spatial Fields
Cosmo Santoni ⋅ Giovanni Charles ⋅ Timothy James Hitge ⋅ Oliver Watson ⋅ Elizaveta Semenova
Abstract
Interpolating a spatial field, such as daily maximum temperature, from sparse and irregularly located observations is a recurring task across the environmental and health sciences. The standard tool, Gaussian-process kriging, refits hyperparameters and solves an $O(N^3)$ system for every new field. When many related fields are observed, such as daily maps from one sensor network, neural processes (NPs) instead learn the interpolation map from past fields and predict a new field in a single forward pass. Joint-predictive variants, which sample whole fields rather than independent values at each location, typically rely on self-attention over context and query points, incurring $O(K^2)$ compute in the combined point count $K$ and capping practical use at a few thousand points. State-space models offer a linear-time alternative, but a direct state-space adaptation compresses the context into a single hidden state before reading queries, reducing the information available to the decoder. We propose MambaFlowNP, a joint-predictive NP with linear compute, trained with a conditional flow-matching objective. A multi-directional Mamba-2 scan reads context and query tokens in a single shared sequence, so each query's velocity is read from its own scan position rather than from a compressed context summary, and because queries only read the scan state, predictions are consistent across query sets. MambaFlowNP is competitive with the strongest attention-based joint-predictive baselines on synthetic Matérn Gaussian-process benchmarks, and across regional and continental-scale NOAA temperature interpolation tasks it attains the lowest RMSE, the lowest CRPS and near-nominal coverage on every tier, while running $114$–$784\times$ faster than the strongest joint-predictive baseline. A single forward pass scales to $10^6$ points on one NVIDIA L40S GPU in under a second. This makes joint prediction computationally feasible for continental-scale, irregularly sampled sensor networks, with predictive quality evaluated up to $K = 5{,}580$.
Successful Page Load