sbi reloaded: a toolkit for simulation-based inference workflows
Jan Boelts,Michael Deistler,Manuel Gloeckler,Álvaro Tejero-Cantero,Jan-Matthis Lueckmann,Guy Moss,Peter Steinbach,Thomas Moreau,Fabio Muratore,Julia Linhart,Conor Durkan,Julius Vetter,Benjamin Kurt Miller,Maternus Herold,Abolfazl Ziaeemehr,Matthijs Pals,Theo Gruner,Sebastian Bischoff,Nastya Krouglova,Richard Gao,Janne K. Lappalainen,Bálint Mucsányi,Felix Pei,Auguste Schulz,Zinovia Stefanidi,Pedro Rodrigues,Cornelius Schröder,Faried Abu Zaid,Jonas Beck,Jaivardhan Kapoor,David S. Greenberg,Pedro J. Gonçalves,Jakob H. Macke
2024-11-26
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 $\texttt{sbi}$, a PyTorch-based package that implements Bayesian SBI algorithms based on neural networks. The $\texttt{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 $\texttt{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.
Machine Learning