LGMLSep 22, 2023

BayesDLL: Bayesian Deep Learning Library

arXiv:2309.12928v13 citationsh-index: 77Has Code
Originality Synthesis-oriented
AI Analysis

This provides a practical tool for researchers and practitioners working with Bayesian neural networks, especially for large-scale applications, though it is incremental as it builds on existing algorithms.

The authors tackled the challenge of implementing Bayesian deep learning for large-scale networks by releasing BayesDLL, a PyTorch library that supports mainstream approximate Bayesian inference algorithms and handles models like Vision Transformers with minimal code modifications.

We release a new Bayesian neural network library for PyTorch for large-scale deep networks. Our library implements mainstream approximate Bayesian inference algorithms: variational inference, MC-dropout, stochastic-gradient MCMC, and Laplace approximation. The main differences from other existing Bayesian neural network libraries are as follows: 1) Our library can deal with very large-scale deep networks including Vision Transformers (ViTs). 2) We need virtually zero code modifications for users (e.g., the backbone network definition codes do not neet to be modified at all). 3) Our library also allows the pre-trained model weights to serve as a prior mean, which is very useful for performing Bayesian inference with the large-scale foundation models like ViTs that are hard to optimise from scratch with the downstream data alone. Our code is publicly available at: \url{https://github.com/SamsungLabs/BayesDLL}\footnote{A mirror repository is also available at: \url{https://github.com/minyoungkim21/BayesDLL}.}.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes