[Paper Review] OneFlowSBI: One Model, Many Queries for Simulation-Based Inference
OneFlowSBI learns a single flow-matching model of the joint distribution p(theta, y) with a query-aware mask, enabling posterior, likelihood, and arbitrary conditionals without retraining, and shows competitive accuracy across benchmarks and real-world problems.
We introduce extit{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 extit{OneFlowSBI} on ten benchmark inference problems and two high-dimensional real-world inverse problems across multiple simulation budgets. extit{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.
Motivation & Objective
- Motivate generalized simulation-based inference that handles missing or noisy observations and supports diverse queries beyond just the posterior.
- Develop a single joint model of parameters and observations to enable flexible conditional queries through masking.
- Introduce a mask-aware flow-matching objective that yields efficient, high-fidelity conditional sampling with minimal ODE integration steps.
- Demonstrate competitive performance against specialized SBI methods on benchmarks and real-world high-dimensional problems.
- Show robustness to noise and partial observability while maintaining sampling efficiency for multi-query use cases.
Proposed method
- Model the joint distribution p(theta, y) with a single flow-matching generative model operating on z = [theta; y].
- Use a binary mask m to designate observed versus unobserved coordinates and define a masked linear interpolant z_t = m ◦ z_1 + (1−m) ◦ (t z_1 + (1−t) z_0).
- Train a time-dependent vector field v_t^φ(z_t, m) with a masked residual objective that targets only the unmasked coordinates, yielding L_OneFlowSBI with per-coordinate weighting to balance parameter and observation dimensions.
- Optimize a masked conditional flow-matching loss that enforces straight transport geometry and results in tractable ODEs for sampling.
- Adopt a masking distribution p(m) that blends posterior, likelihood, and partial conditioning modes to enable multi-query inference without retraining.
- Infer samples by integrating a mask-constrained ODE on the joint state so that observed coordinates are clamped and unobserved coordinates are transported.

Experimental results
Research questions
- RQ1Can a single flow-matching model represent the joint distribution p(theta, y) and support diverse inference queries via masking without task-specific retraining?
- RQ2How does OneFlowSBI perform on standard SBI benchmarks across varying budgets and modalities compared to specialized posterior estimators and generalized solvers?
- RQ3Is the method robust to noisy and partially observed data while maintaining sampling efficiency in high-dimensional problems?
- RQ4To what extent can OneFlowSBI execute multi-query inferences (posterior, likelihood, prior, marginal, and mixed conditionals) from a single trained model?
- RQ5What is the impact of the masking strategy and ODE discretization steps on inference accuracy and efficiency?
Key findings
- OneFlowSBI achieves competitive posterior fidelity across ten SBIBM benchmarks and two high-dimensional real-world problems.
- The model supports posterior sampling, likelihood evaluation, and arbitrary conditionals without retraining by changing the observation mask.
- Sampling remains accurate with few ODE steps due to the straight transport geometry induced by masked linear interpolation.
- OneFlowSBI demonstrates robustness to additive observation noise and missing data, with degradation only at high noise or high missingness levels.
- Across benchmarks, OneFlowSBI often matches or exceeds specialized posterior estimators and generalized solvers under different budgets and modalities.
- Real-world tasks show effective multi-query inference and interpretable posterior predictive checks in image deblurring and shallow-water inverse problems.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.