Article view

torch_blue: A Flexible Python Package for Bayesian Neural Networks in PyTorch

By Arvid Weyrauch, Lars Helge Heyen, Juan Pedro Gutiérrez Hermosillo Muriedas, Pei-Hsuan Hsia, Asena Karolin Özdemir, Achim Streit, Markus Götz, Charlotte Debus

Article information

Publication
Published 23 January 2026
Institutions at publication
Karlsruhe Institute of Technology
3 Citations OpenAlex, 6 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Bayesian Neural Networks (BNN) integrate uncertainty quantification in all steps of the training and prediction process, thereby enabling better-informed decisions (Arbel et al., 2023). Among the different approaches to implementing BNNs, Variational Inference (VI) (Hoffman et al., 2013) specifically strikes a balance between the ability to consider a large variety of distributions while maintaining low enough compute requirements to allow scaling to larger models. However, setting up and training BNNs is quite complicated, and existing libraries all either lack flexibility, lack scalability, or tackle Bayesian computation in general, adding even more complexity and therefore a huge barrier to entry. Moreover, no existing framework directly supports straightforward BNN model prototyping by offering pre-programmed Bayesian network layer types, similar to PyTorch's nn module. This forces any BNNs to be implemented from scratch, which can be challenging even for non-Bayesian networks.

Citations per year

Citations per year
YearCitations
2026 3

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 3 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
Germany8