GenSBI: Generative Methods for Simulation-Based Inference in JAX
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
Flow and diffusion generative models have established themselves as widely adopted density estimators for simulation-based inference (SBI), extending naturally from neural posterior estimation to likelihood and joint density estimation. Their principled optimization objectives and freedom from architectural constraints have driven rapid adoption across the natural sciences. Yet the most widely used SBI libraries remain PyTorch-based, leaving researchers who develop their forward models and analysis pipelines in JAX without a native option. We present GenSBI, an open-source library that implements flow matching, score matching, and denoising diffusion entirely in JAX. The library offers three transformer-based architectures - SimFormer, Flux1, and a novel Flux1Joint that extends gate-modulated transformer blocks to joint density estimation - all interchangeable through a unified interface that decouples generative method, neural backbone, and inference mode. GenSBI provides an end-to-end workflow from training through posterior calibration (SBC, TARP, LC2ST) and supports custom architectures with domain-specific embedding networks. We validate the framework on standard SBI benchmarks, achieving near-ideal mean C2ST scores (0.50-0.56, where 0.50 is ideal) on SBIBM tasks with minimal per-task tuning and well-calibrated posterior coverage across all tested configurations. The code is publicly available at https://github.com/aurelio-amerio/GenSBI.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 51 of its 83 references that are in the map. First posted on arXiv 26 May 2026.
Builds on
51 of 83 references.
Closest ancestors · 7
Same direction, newest first
- 2026OneFlowSBI: One Model, Many Queries for Simulation-Based Inference30 Jan
- 2025The Curse of Conditions: Analyzing and Improving Optimal Transport for Conditional Flow-Based Generation13 Mar
- 2025Diffusion Models for Molecules: A Survey of Methods and Tasks13 Feb
- 2024Flow Matching Guide and Code9 Dec
- 2023Flow Matching for Scalable Simulation-Based Inference26 May
- 2023Improving and generalizing flow-based generative models with minibatch optimal transport1 Feb
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow7 Sep
Other references · 44
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 3,045
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,114
- 2022TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysiscited by 1,058
- 2020Improved Techniques for Training Score-Based Generative Modelscited by 1,043
32 more
- 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Spacecited by 1,006
- 2023Stochastic Interpolants: A Unifying Framework for Flows and Diffusionscited by 939
- 2017Masked Autoregressive Flow for Density Estimationcited by 684
- 2019Neural Spline Flowscited by 596
- 2025Mean Flows for One-step Generative Modelingcited by 561
- 2019The frontier of simulation-based inferencecited by 502
- 2016Revisiting Classifier Two-Sample Testscited by 268
- 2018Sequential Neural Likelihood: Fast Likelihood-free Inference with Autoregressive Flowscited by 221
- 2019Automatic Posterior Transformation for Likelihood-Free Inferencecited by 219
- 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 191
- 2021Benchmarking Simulation-Based Inferencecited by 162
- 2020BayesFlow: Learning complex stochastic models with invertible neural networkscited by 144
- 2018Validating Bayesian Inference Algorithms with Simulation-Based Calibrationcited by 124
- 2022Optimal Transport Tools (OTT): A JAX Toolbox for all things Wassersteincited by 101
- 2016Neural Autoregressive Distribution Estimationcited by 95
- 2021Real-time gravitational-wave science with neural posterior estimationcited by 78
- 2024All-in-one simulation-based inferencecited by 74
- 2013RNADE: The real-valued neural autoregressive density-estimatorcited by 66
- 2016Fast ε-free Inference of Simulation Models with Bayesian Conditional Density Estimationcited by 52
- 2023Sampling-Based Accuracy Testing of Posterior Estimators for General Inferencecited by 46
- 2024Neural Methods for Amortized Inferencecited by 39
- 2025Simulation-Based Inference: A Practical Guidecited by 32
- 2024BlackJAX: Composable Bayesian inference in JAXcited by 26
- 2021HNPE: Leveraging Global Parameters for Neural Posterior Estimationcited by 19
- 2020OutbreakFlow: Model-based Bayesian inference of disease outbreak dynamics with invertible neural networks and its application to the COVID-19 pandemics in Germanycited by 18
- 2023L-C2ST: Local Diagnostics for Posterior Approximations in Simulation-Based Inferencecited by 18
- 2024Stochastic Sampling from Deterministic Flow Modelscited by 18
- 2025Joint Distillation for Fast Likelihood Evaluation and Sampling in Flow-based Modelscited by 18
- 2025Diffusion Models in Simulation-Based Inference: A Tutorial Reviewcited by 11
- 2019Likelihood-free MCMC with Amortized Approximate Ratio Estimatorscited by 10
- 2024Simulation-based Inference with the Python Package sbijaxcited by 6
- 2024A Comprehensive Guide to Simulation-based Inference in Computational Biologycited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Diffusion posterior sampling for simulation-based inference in tall data settings
- 2025A Review of Diffusion-based Simulation-Based Inference: Foundations and Applications in Non-Ideal Data Scenarios
- 2024A survey of probabilistic generative frameworks for molecular simulations
- 2026Spectra: Exact Component Transport for Test-Time Prior Adaptation in Simulation-Based Inference
- 2026Tokenised Flow Matching for Hierarchical Simulation Based Inference
- 2025Diffusion Tree Sampling: Scalable inference-time alignment of diffusion models
- 2026Calibrating Generative Flows through Regional Probability Matching
- 2025Inference-Time Alignment in Diffusion Models with Reward-Guided Generation: Tutorial and Review