arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.04154stat.MLcond-mat.dis-nncs.LG
收藏

有限温度下的贝叶斯神经网络

Bayesian Neural Networks at Finite Temperature

École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院)

Robert J. N. Baldock, Nicola Marzari

摘要:

我们概括了贝叶斯神经网络的分类公式,并表明,虽然从后采样确实会导致更好的泛化比通过标准优化的成本函数,甚至更好的性能一般可以通过采样有限的温度($T$)分布来自后。以MNIST数据的两个不同的深度(3个隐藏层)分类器为例,我们发现在每种情况下都适合使用完全不同的$T$值。特别地,对于典型的神经网络分类器,在$T>0$处观察到测试误差的明显最小值。这表明全批模拟退火的早期停止标准:冷却直到平均验证误差开始增加,然后恢复到具有最低验证误差的参数。随着$T$的增加,分类器从准确分类器过渡到具有比向每个类分配相等概率更高的训练误差的分类器。这些温度引起的影响的有效研究,使使用复制交换哈密顿蒙特卡罗模拟技术。最后,我们展示了如何使用热力学积分来执行深度神经网络的模型选择。类似于拉普拉斯近似,该方法假设后验由单一模式主导。然而,至关重要的是,没有对该模式的形状进行假设,并且不需要精确计算和反演Hessian。

英文摘要:

We recapitulate the Bayesian formulation of neural network based classifiers and show that, while sampling from the posterior does indeed lead to better generalisation than is obtained by standard optimisation of the cost function, even better performance can in general be achieved by sampling finite temperature ($T$) distributions derived from the posterior. Taking the example of two different deep (3 hidden layers) classifiers for MNIST data, we find quite different $T$ values to be appropriate in each case. In particular, for a typical neural network classifier a clear minimum of the test error is observed at $T>0$. This suggests an early stopping criterion for full batch simulated annealing: cool until the average validation error starts to increase, then revert to the parameters with the lowest validation error. As $T$ is increased classifiers transition from accurate classifiers to classifiers that have higher training error than assigning equal probability to each class. Efficient studies of these temperature-induced effects are enabled using a replica-exchange Hamiltonian Monte Carlo simulation technique. Finally, we show how thermodynamic integration can be used to perform model selection for deep neural networks. Similar to the Laplace approximation, this approach assumes that the posterior is dominated by a single mode. Crucially, however, no assumption is made about the shape of that mode and it is not required to precisely compute and invert the Hessian.

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

↑