Streamlining Prediction in Bayesian Deep Learning
Rui Li Marcus Klasson Arno Solin Martin Trapp
The rising interest in Bayesian deep learning (BDL) has led to a plethora of methods for estimating the posterior distribution. However, efficient computation of inferences, such as predictions, has been largely overlooked with Monte Carlo integration remaining the standard. In this work we examine streamlining prediction in BDL through a single forward pass without sampling. For this, we use local linearisation of activation functions and local Gaussian approximations at linear layers. Thus allowing us to analytically compute an approximation of the posterior predictive distribution. We showcase our approach for both MLP and transformers, such as ViT and GPT-2, and assess its performance on regression and classification tasks.

Open-source library: https://github.com/AaltoML/SUQ.
Bayesian deep learning, uncertainty quantification
We streamline prediction in Bayesian deep learning through a single forward pass without the need of sampling.