Flow Neural Processes: Efficient Probabilistic Inference via Amortized Probability Flows
Abstract
Neural Processes (NPs) provide a flexible framework for learning distributions over functions from sparse observations. Existing approaches often face a tradeoff between expressive uncertainty modeling and efficient inference. We address this challenge with a unified flow-based framework for Neural Processes. First, we introduce Flow Neural Processes (FlowNP), which formulates conditional function generation through flow matching and learns conditional probability flows over arbitrary context and target sets. FlowNP enables coherent posterior sampling and likelihood estimation while achieving state-of-the-art performance across standard NP benchmarks. However, sample generation requires iterative ODE integration, resulting in increased inference costs. To address this limitation, we introduce Direct Flow Neural Processes (D-FlowNP), a step-amortized extension that learns large integration steps through self-consistency objectives, enabling accurate posterior sampling with substantially fewer function evaluations. We evaluate the proposed framework on synthetic Gaussian processes, image completion, weather forecasting, Navier-Stokes simulations, and black hole imaging. Across domains, FlowNP improves predictive performance and uncertainty modeling, while D-FlowNP preserves sample quality under aggressive reductions in inference cost, enabling efficient one-step and few-step generation. Together, these results establish flow matching as an effective foundation for Neural Processes and demonstrate that inference-step amortization substantially improves their practical applicability.
Create a lesson
Metadata
- Comments
- 37 pages. Accepted for publication in Machine Learning: Science and Technology
Related papers
Amortized Mesh Adaptation on Surfaces using Graph Neural Diffusion
Shared title terminologycs.LGErik Jansson, James Rowbottom, Chris Budd et al.
Confidence-Driven Incremental Modality Selection for Efficient Inference with Large Multimodal Models
Shared title terminologycs.LGMd Ibrahim Ibne Alam, Parikshit Ram, Koushik Kar et al.
Scaling Laws for End-to-End LeVJEPA Pretraining: Compute- and Data-Efficient Representation Learning
Shared title terminologycs.LGAndy Zeyi Liu, Hoaran Sun, Yagiz Devre et al.
A Pareto Front of Control Targets for the Learning Dynamics of Recurrent Neural Networks
Shared title terminologycs.LGLorenzo Livi, Filippo Maria Bianchi
Laplacian Flows for Policy Learning
Shared title terminologycs.LGXingrui Gu, Chuyi Jiang, Luckeciano Carvalho Melo et al.
CARAT: Contrast-Aware Token-Normalized Rollout Allocation for Efficient Group-Relative Policy Optimization
Shared title terminologycs.LGCaleb Nguyen, Meilin Chen, Nadia Kowalski et al.