Scalable Bayesian Inference in the Era of Deep Learning: From Gaussian Processes to Deep Neural Networks
Javier Antoran
TL;DR
This thesis tackles the scalability gap between Bayesian uncertainty quantification and modern deep learning. It develops scalable uncertainty estimation for neural networks by leveraging the linearised Laplace approximation, casting Bayesian neural inference as a Gaussian-linear problem and then solving it with stochastic methods. A key contribution is the SGD-based sampling framework for Gaussian processes and the sample-based EM algorithm for hyperparameter learning in linearised neural nets, enabling uncertainty estimates on large models like ResNet-50 trained on Imagenet and 3D tomographic reconstructions. The work also provides practical adaptations for modern networks, including normalisation layers and non-converged training, and demonstrates strong empirical performance on large-scale benchmarks and molecular prediction tasks, highlighting the potential for Bayesian reasoning in scalable deep learning.
Abstract
Large neural networks trained on large datasets have become the dominant paradigm in machine learning. These systems rely on maximum likelihood point estimates of their parameters, precluding them from expressing model uncertainty. This may result in overconfident predictions and it prevents the use of deep learning models for sequential decision making. This thesis develops scalable methods to equip neural networks with model uncertainty. In particular, we leverage the linearised Laplace approximation to equip pre-trained neural networks with the uncertainty estimates provided by their tangent linear models. This turns the problem of Bayesian inference in neural networks into one of Bayesian inference in conjugate Gaussian-linear models. Alas, the cost of this remains cubic in either the number of network parameters or in the number of observations times output dimensions. By assumption, neither are tractable. We address this intractability by using stochastic gradient descent (SGD) -- the workhorse algorithm of deep learning -- to perform posterior sampling in linear models and their convex duals: Gaussian processes. With this, we turn back to linearised neural networks, finding the linearised Laplace approximation to present a number of incompatibilities with modern deep learning practices -- namely, stochastic optimisation, early stopping and normalisation layers -- when used for hyperparameter learning. We resolve these and construct a sample-based EM algorithm for scalable hyperparameter learning with linearised neural networks. We apply the above methods to perform linearised neural network inference with ResNet-50 (25M parameters) trained on Imagenet (1.2M observations and 1000 output dimensions). Additionally, we apply our methods to estimate uncertainty for 3d tomographic reconstructions obtained with the deep image prior network.
