BayesFlow 2.0: Multi-Backend Amortized Bayesian Inference in Python

Lars Kühmichel, Jerry M. Huang, Valentin Pratz, Jonas Arruda, Hans Olischläger +9 more
2/6/2026
stat.COcs.LGstat.ML

No confident code implementation found for this paper.

Abstract

Modern Bayesian inference involves a mixture of computational methods for estimating, validating, and drawing conclusions from probabilistic models as part of principled workflows. An overarching motif of many Bayesian methods is that they are relatively slow, which often becomes prohibitive when fitting complex models to large data sets. Amortized Bayesian inference (ABI) offers a path to solving the computational challenges of Bayes. ABI trains neural networks on model simulations, rewarding users with rapid inference of any model-implied quantity, such as point estimates, likelihoods, or full posterior distributions. In this work, we present the Python library BayesFlow, Version 2.0, for general-purpose ABI. Along with direct posterior, likelihood, and ratio estimation, the software includes support for multiple popular deep learning backends, a rich collection of generative networks for sampling and density estimation, complete customization and high-level interfaces, as well as new capabilities for hyperparameter optimization, design optimization, and hierarchical modeling. Using a case study on dynamical system parameter estimation, combined with comparisons to similar software, we show that our streamlined, user-friendly workflow has strong potential to support broad adoption.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{khmichel2026bayesflow,
  title  = {BayesFlow 2.0: Multi-Backend Amortized Bayesian Inference in Python},
  author = {Lars Kühmichel and Jerry M. Huang and Valentin Pratz and Jonas Arruda and Hans Olischläger and Daniel Habermann and Simon Kucharsky and Lasse Elsemüller and Aayush Mishra and Niels Bracher and Svenja Jedhoff and Marvin Schmitt and Paul-Christian Bürkner and Stefan T. Radev},
  year   = {2026},
  eprint = {2602.07098},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.07098v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.07098.svg)](https://codeofpaper.com/paper/2602.07098)

Discussion