arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.12928cs.LGstat.ML
收藏

BayesDLL:贝叶斯深度学习库

BayesDLL: Bayesian Deep Learning Library

Samsung AI Center Cambridge(三星剑桥人工智能中心);University of Edinburgh(爱丁堡大学)

Minyoung Kim, Timothy Hospedales

AI总结:

BayesDLL 是一个面向 PyTorch 的大规模贝叶斯神经网络库,支持 ViTs 等大型模型,无需修改骨干网络代码,并支持预训练权重作为先验均值,便于对基础模型进行贝叶斯推断。

摘要:

我们发布了一个面向 PyTorch 的大规模深度网络贝叶斯神经网络库。该库实现了主流的近似贝叶斯推断算法:变分推断、MC-dropout、随机梯度 MCMC 和 Laplace 近似。与其他现有贝叶斯神经网络库的主要区别如下:1)我们的库能够处理非常大规模的深度网络,包括 Vision Transformers(ViTs)。2)用户几乎不需要修改任何代码(例如,骨干网络定义代码完全不需要修改)。3)我们的库还允许将预训练模型权重作为先验均值,这对于使用像 ViTs 这样的大规模基础模型进行贝叶斯推断非常有用,因为仅用下游数据从头优化这些模型非常困难。我们的代码已公开,地址为:\url{https://github.com/SamsungLabs/BayesDLL}\ ootnote{镜像仓库也可在:\url{https://github.com/minyoungkim21/BayesDLL}获取。}

英文摘要:

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}.}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑