stat.MLJan 30, 2026

OneFlowSBI: One Model, Many Queries for Simulation-Based Inference

Authors: Mayank Nautiyal, Li Ju, Melker Ernfors, Klara Hagland, Ville Holma, Maximilian Werkö Söderholm, Andreas Hellander, Prashant Singh

Organizations: Department of Information Technology, Uppsala University, Uppsala, Sweden · Science for Life Laboratory, Uppsala University, Uppsala, Sweden

Abstract

Simulation-based inference (SBI) methods typically amortize a single query, usually the posterior, so each further conditional or marginal needs its own model. Existing generalists amortize many queries in one transformer with one token per variable, so their attention cost grows quadratically with the number of variables. We introduce OneFlowSBI, a masked flow matching framework that trains one network on the joint distribution of parameters and observations. A ternary mask marks each coordinate as observed, generated or absent, so any conditional or marginal is sampled by changing the mask. The mask is an input, rather than a tokenization, so the backbone can follow the data's structure and scale to many variables. On high-dimensional image denoising and shallow water inference, OneFlowSBI achieves lower posterior error than the baselines, samples far faster than a transformer-based generalist, and handles missing regions and partial observation windows without retraining. On most of the ten SBIBM tasks at the largest simulation budget, it matches or exceeds neural posterior estimation and is comparable to transformer-based generalists, while also providing the likelihood and marginals.

Figures & tables

Appendix figures & tables25 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Tokenised Flow Matching for Hierarchical Simulation Based Inference

    Apr 22, 2026Giovanni Charles, Cosmo Santoni, Seth Flaxman +1Flow MatchingSimulation-Based Inference

  2. GenSBI: Generative Methods for Simulation-Based Inference in JAX

    May 26, 2026Aurelio AmerioFlow MatchingSimulation-Based Inference

  3. Conditional Mean Flows: Few-Step Densities for Simulation-Based Inference

    Oct 15, 2026Jonas Arruda, Jan Hasenauer, Stefan T. RadevSimulation-Based InferenceFlow-Based Generative Modeling