OneFlowSBI: One Model, Many Queries for Simulation-Based Inference
Mayank Nautiyal, Li Ju, Melker Ernfors, Klara Hagland, Ville Holma, Maximilian Werkö Söderholm, Andreas Hellander, Prashant Singh
TL;DR
OneFlowSBI addresses the lack of a generalizable SBI framework by learning a single flow-matching model over the joint distribution $p(\boldsymbol{\theta}, \mathbf{y})$, enabling flexible queries through a query-aware masking scheme. It introduces a masked linear interpolant and a mask-conditioned flow objective $\mathcal{L}_{\text{OneFlowSBI}}(\phi)$ that transports probability mass only along unobserved coordinates, allowing posterior sampling, likelihood estimation, and arbitrary conditionals from a single model. Across ten SBIBM benchmarks and two high-dimensional real-world problems, OneFlowSBI achieves competitive accuracy with state-of-the-art solvers while maintaining robustness to noise and missing data and achieving fast sampling with few ODE steps. The framework offers a versatile, amortized SBI tool suitable for exploratory workflows and multi-modal observations across domains.
Abstract
We introduce \textit{OneFlowSBI}, a unified framework for simulation-based inference that learns a single flow-matching generative model over the joint distribution of parameters and observations. Leveraging a query-aware masking distribution during training, the same model supports multiple inference tasks, including posterior sampling, likelihood estimation, and arbitrary conditional distributions, without task-specific retraining. We evaluate \textit{OneFlowSBI} on ten benchmark inference problems and two high-dimensional real-world inverse problems across multiple simulation budgets. \textit{OneFlowSBI} is shown to deliver competitive performance against state-of-the-art generalized inference solvers and specialized posterior estimators, while enabling efficient sampling with few ODE integration steps and remaining robust under noisy and partially observed data.
