Sbi Reloaded: a Toolkit for Simulation-based Inference Workflows

📅 2024-11-26
🏛️ Journal of Open Source Software
📈 Citations: 10
Influential: 0
📄 PDF
🤖 AI Summary
Likelihood-free and gradient-free parameter calibration in black-box simulators poses significant challenges for Bayesian inference. Method: This paper introduces the first simulation-based, fully amortized, gradient-free, and parallelizable neural Bayesian inference framework, accompanied by the open-source PyTorch package SBI. The framework unifies neural posterior estimation (NPE), neural likelihood estimation (NLE), neural ratio estimation (NRE), and mixture density networks (MDNs), integrating Monte Carlo sampling, Bayesian optimization, and simulation scheduling into a modular, end-to-end workflow with production-ready defaults and comprehensive diagnostic tools. Contribution/Results: Evaluated across physics, biology, and astronomy, SBI substantially lowers the barrier to simulation-based inference, accelerates posterior estimation by multiple-fold, and achieves state-of-the-art reusability and scalability.

Technology Category

Application Category

📝 Abstract
Scientists and engineers use simulators to model empirically observed phenomena. However, tuning the parameters of a simulator to ensure its outputs match observed data presents a significant challenge. Simulation-based inference (SBI) addresses this by enabling Bayesian inference for simulators, identifying parameters that match observed data and align with prior knowledge. Unlike traditional Bayesian inference, SBI only needs access to simulations from the model and does not require evaluations of the likelihood-function. In addition, SBI algorithms do not require gradients through the simulator, allow for massive parallelization of simulations, and can perform inference for different observations without further simulations or training, thereby amortizing inference. Over the past years, we have developed, maintained, and extended $ exttt{sbi}$, a PyTorch-based package that implements Bayesian SBI algorithms based on neural networks. The $ exttt{sbi}$ toolkit implements a wide range of inference methods, neural network architectures, sampling methods, and diagnostic tools. In addition, it provides well-tested default settings but also offers flexibility to fully customize every step of the simulation-based inference workflow. Taken together, the $ exttt{sbi}$ toolkit enables scientists and engineers to apply state-of-the-art SBI methods to black-box simulators, opening up new possibilities for aligning simulations with empirically observed data.
Problem

Research questions and friction points this paper is trying to address.

Tuning simulator parameters to match observed data
Enabling Bayesian inference without likelihood evaluations
Providing flexible tools for simulation-based inference workflows
Innovation

Methods, ideas, or system contributions that make the work stand out.

Neural network-based Bayesian SBI algorithms
No likelihood function or gradients required
Amortized inference for diverse observations
🔎 Similar Papers
No similar papers found.
J
Jan Boelts
Machine Learning in Science, University of Tübingen; Tübingen AI Center; TransferLab, appliedAI Institute for Europe
M
Michael Deistler
Machine Learning in Science, University of Tübingen; Tübingen AI Center
M
Manuel Gloeckler
Machine Learning in Science, University of Tübingen; Tübingen AI Center
Á
Álvaro Tejero-Cantero
TransferLab, appliedAI Institute for Europe; ML Colab, Cluster ML in Science, University of Tübingen
Jan-Matthis Lueckmann
Jan-Matthis Lueckmann
Google
Machine learningBayesian inferenceTheoretical Neuroscience
G
Guy Moss
Machine Learning in Science, University of Tübingen; Tübingen AI Center
P
Peter Steinbach
Helmholtz-Zentrum Dresden-Rossendorf
Thomas Moreau
Thomas Moreau
Inria, CEA, Université Paris-Saclay
Machine learningTime seriesBi-level optimizationConvolutional Dictionary Learning
Fabio Muratore
Fabio Muratore
Robert Bosch GmbH
J
Julia Linhart
Université Paris-Saclay, INRIA, CEA, Palaiseau, France
Conor Durkan
Conor Durkan
School of Informatics, University of Edinburgh
J
Julius Vetter
Machine Learning in Science, University of Tübingen; Tübingen AI Center
Benjamin Kurt Miller
Benjamin Kurt Miller
Research Scientist, Meta
machine learningsimulation-based inferencephysical inductive biases
M
Maternus Herold
TransferLab, appliedAI Institute for Europe; Research and Innovation Center, BMW Group; Institute for Applied Mathematics and Scientific Computing, University of the Bundeswehr Munich, Germany
Abolfazl Ziaeemehr
Abolfazl Ziaeemehr
Aix Marseille, INSERM, INS, France
M
Matthijs Pals
Machine Learning in Science, University of Tübingen; Tübingen AI Center
Theo Gruner
Theo Gruner
Technische Universität Darmstadt
Robot LearningApproximate InferenceSystem Identification
S
Sebastian Bischoff
Machine Learning in Science, University of Tübingen; Tübingen AI Center; University Hospital Tübingen and M3 Research Center
A
Anastasia N. Krouglova
Faculty of Science, B-3000, KU Leuven, Belgium; VIB-Neuroelectronics Research Flanders (NERF) and imec, Belgium
Richard Gao
Richard Gao
University of Tübingen
Computational NeuroscienceCognitive Science
J
Janne K. Lappalainen
Machine Learning in Science, University of Tübingen; Tübingen AI Center
Bálint Mucsányi
Bálint Mucsányi
University of Tübingen
Uncertainty QuantificationProbabilistic MLComputer Vision
F
Felix Pei
Neuroscience Institute, Carnegie Mellon University
A
Auguste Schulz
Machine Learning in Science, University of Tübingen; Tübingen AI Center
Z
Zinovia Stefanidi
Machine Learning in Science, University of Tübingen; Tübingen AI Center
P
Pedro L. C. Rodrigues
Université Grenoble Alpes, INRIA, CNRS, Grenoble INP, LJK, France
C
Cornelius Schröder
Machine Learning in Science, University of Tübingen; Tübingen AI Center
F
Faried Abu Zaid
TransferLab, appliedAI Institute for Europe
J
Jonas Beck
Tübingen AI Center; Hertie Institute for AI in Brain Health, University of Tübingen
J
Jaivardhan Kapoor
Machine Learning in Science, University of Tübingen; Tübingen AI Center
D
David S. Greenberg
Institute of Coastal Systems - Analysis and Modeling; Helmholtz AI
P
Pedro J. Gonçalves
VIB-Neuroelectronics Research Flanders (NERF) and imec, Belgium; Departments of Computer Science Electrical Engineering, KU Leuven, Belgium
J
Jakob H. Macke
Machine Learning in Science, University of Tübingen; Tübingen AI Center; Department Empirical Inference, Max Planck Institute for Intelligent Systems, Tübingen, Germany