# Mamba Flow Matching Neural Processes: Linear-Time Inference for Irregularly Observed Spatial Fields

*Cosmo Santoni, Giovanni Charles, Timothy James Hitge, Oliver Watson, Elizaveta Semenova*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150767) · [OpenReview](https://openreview.net/forum?id=fVeT6lAKvN) · [Open on the map](../papers.html#p150767)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Neural Data Assimilation](../pgroup/117.md) · Type: new method · Keywords: spatial interpolation, neural processes, Mamba-2, flow matching, linear-time inference, irregular observations

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › State-Space Models and Continuous-Time Dynamics

## Summary
MambaFlowNP introduces a joint-predictive neural process with linear-time inference using a multi-directional Mamba-2 scan and flow-matching training, enabling scalable interpolation of irregularly observed spatial fields.

## Explained to a 5-year-old
We want to fill in missing spots on a map when we only have a few dots. The new method can look at all the dots together and guess the missing spots quickly, even when there are a million dots. It works like a fast scanner that reads the dots one by one and uses a special training trick to make the guesses better. It helps scientists monitor weather and track insects over big areas. It runs so fast that it can do this in less than a second on a computer.

## Explained to a 5-year-old, longer
Imagine you have a big map of temperature across a country, but you only know the temperature at a few random places. You want to know the temperature everywhere else, like filling in the blanks on a coloring page. The paper creates a new way to do this filling that works super fast, even when there are millions of known spots. It uses a special scanner that reads all the known spots together, one after another, like a quick look-through. It also uses a clever training method that helps the scanner make better guesses. This scanner can see how each new spot relates to all the others, so the guesses are more accurate. The method is especially useful for scientists who need to watch the weather over huge areas. It also helps track where insects that spread disease live, because those maps also have many unknown spots. The new approach is much faster than older methods that needed a lot of computer time. It can handle a million points in less than a second on a single computer. This speed means that real-time predictions become possible for large sensor networks. In short, it gives us a fast, accurate way to fill in missing information on big maps.

## For a technical reader
The paper presents MambaFlowNP, a joint-predictive neural process that achieves linear-time inference for interpolating irregularly spaced spatial data. It replaces the quadratic-time self-attention used by prior neural processes with a multi-directional Mamba-2 scan that processes context and query tokens in a single shared sequence, preserving full context information. Training uses a conditional flow-matching objective, allowing the model to learn the velocity of each query directly from its scan position without compressing the context into a single hidden state. The result is a scalable solution that attains state-of-the-art accuracy on synthetic and NOAA temperature benchmarks while running orders of magnitude faster than attention-based baselines. Finally, a single forward pass can handle up to a million points on one GPU in under a second, enabling real-time inference for large sensor networks.

## Problem
Interpolating spatial fields from sparse, irregularly spaced observations is challenging, especially when joint-predictive models rely on self-attention that scales quadratically with the number of points, limiting scalability. Existing linear-time alternatives compress context into a single hidden state, losing important information for query predictions.

## Method
The approach uses a joint-predictive neural process trained with a conditional flow-matching objective, where a multi-directional Mamba-2 scan processes context and query tokens in a single shared sequence, allowing each query to read its velocity directly from its scan position without compressing the context into a single hidden state.

## Results
The approach achieves the lowest RMSE on every tier and the lowest CRPS at the California and continental US tiers, while running 170-760× faster than the strongest joint-predictive baseline, and scales to 106 points in under a second on a single GPU.

## Contributions
It introduces a joint-predictive neural process that combines linear-time state-space modeling with flow-matching training, preserves full context information via a shared Mamba-2 scan, and enables amortized inference at million-point scale for large sensor networks.

## Practical relevance
This scalability enables real-time, amortized joint-predictive inference for continental-scale, irregularly sampled sensor networks, supporting climate monitoring and disease vector surveillance.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150767)
