arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.19157stat.MLcs.LG
收藏

深度学习时代的可扩展贝叶斯推断:从高斯过程到深度神经网络

Scalable Bayesian Inference in the Era of Deep Learning: From Gaussian Processes to Deep Neural Networks

University of Cambridge(剑桥大学);Darwin College(达尔文学院);Department of Engineering(工程系)

Javier Antoran

AI总结:

本文针对深度神经网络缺乏模型不确定性的问题,提出基于线性化拉普拉斯近似和随机梯度下降的可扩展贝叶斯推断方法,并成功应用于ResNet-50和三维断层重建。

摘要:

在大规模数据集上训练的大型神经网络已成为机器学习的主导范式。这些系统依赖于其参数的最大似然点估计,因而无法表达模型不确定性。这可能导致过度自信的预测,并阻碍深度学习模型用于序贯决策。本论文开发了可扩展的方法,使神经网络具备模型不确定性。具体而言,我们利用线性化拉普拉斯近似,为预训练神经网络提供由其切线性模型给出的不确定性估计。这将神经网络中的贝叶斯推断问题转化为共轭高斯-线性模型中的贝叶斯推断问题。然而,其代价在神经网络参数数量或观测数量乘以输出维度上仍然是三次方的。按假设,这两者都不可处理。我们通过使用随机梯度下降(SGD)——深度学习的核心算法——在线性模型及其凸对偶即高斯过程中执行后验采样,来解决这一不可处理性问题。由此,我们回到线性化神经网络,发现线性化拉普拉斯近似在用于超参数学习时,与现代深度学习实践——即随机优化、早停和归一化层——存在若干不兼容之处。我们解决了这些问题,并构建了一个基于采样的EM算法,用于线性化神经网络的可扩展超参数学习。我们将上述方法应用于使用在ImageNet(120万观测值和1000个输出维度)上训练的ResNet-50(2500万参数)进行线性化神经网络推断。此外,我们将我们的方法应用于估计通过深度图像先验网络获得的三维断层重建的不确定性。

英文摘要:

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.

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

↑