TyXe: Pyro-based Bayesian neural nets for Pytorch
Hippolyt Ritter, Theofanis Karaletsos

TL;DR
TyXe is a flexible, Pyro-based library for Bayesian neural networks in Pytorch, enabling easy experimentation with priors, inference, and architectures for uncertainty estimation across various models.
Contribution
TyXe introduces a modular, architecture-agnostic framework for Bayesian neural networks in Pytorch, simplifying the integration of Bayesian methods into existing models.
Findings
Demonstrates ease of converting deterministic models to Bayesian versions
Supports a wide range of models including CNNs, GNNs, and NeRFs
Provides practical tools for uncertainty estimation in deep learning
Abstract
We introduce TyXe, a Bayesian neural network library built on top of Pytorch and Pyro. Our leading design principle is to cleanly separate architecture, prior, inference and likelihood specification, allowing for a flexible workflow where users can quickly iterate over combinations of these components. In contrast to existing packages TyXe does not implement any layer classes, and instead relies on architectures defined in generic Pytorch code. TyXe then provides modular choices for canonical priors, variational guides, inference techniques, and layer selections for a Bayesian treatment of the specified architecture. Sampling tricks for variance reduction, such as local reparameterization or flipout, are implemented as effect handlers, which can be applied independently of other specifications. We showcase the ease of use of TyXe to explore Bayesian versions of popular models from…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Gaussian Processes and Bayesian Inference · Machine Learning and Data Classification
