[论文解读] Bayesian Neural Networks at Finite Temperature
该论文提出在深度神经网络中从有限温度的贝叶斯后验分布中采样,以超越标准后验采样或最大似然训练,提升泛化性能。它表明在 T > 0 时测试误差达到最优,提出了基于温度的早停准则,并使用热力学积分实现无需海塞矩阵的模型选择,当证据较低时更倾向于选择简单模型。
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.
研究动机与目标
- 为了在深度神经网络分类器中,超越标准的最大似然或后验采样方法,提升泛化性能。
- 为了研究有限温度 T 对泛化性能的影响,并确定最优的 T 值。
- 为了开发一种基于模拟退火过程中温度调整的验证误差的实用早停准则。
- 为了通过热力学积分实现无需计算海塞矩阵的模型选择。
提出的方法
- 在有界权重空间上使用均匀先验,形式化贝叶斯神经网络分类,并推导出温度调整后的后验分布。
- 通过网络权重上的玻尔兹曼分布引入有限温度采样,其中 T 控制后验噪声。
- 采用复制交换哈密顿蒙特卡洛(HMC)在不同温度水平间高效采样,以探索复杂的后验景观。
- 使用带桥接分布的热力学积分(TI)计算模型证据,无需计算或求逆海塞矩阵。
- 将 TI 应用于 MNIST 数据集上的深层(3 层)和浅层(1 层)网络,评估在均匀先验下的模型证据。
- 采用自适应 HMC 进行步长调优,并使用辛普森法则对自由能差值进行数值积分。
实验结果
研究问题
- RQ1从有限温度后验中采样是否能在深度神经网络中实现比标准后验采样或最大似然训练更好的泛化性能?
- RQ2在 MNIST 上,典型深度神经网络分类器的测试误差在何种温度 T > 0 时最小化?
- RQ3温度依赖的验证误差能否作为全批量模拟退火的可靠早停准则?
- RQ4热力学积分如何在不计算代价函数海塞矩阵的情况下实现准确的模型选择?
- RQ5在相同数据和先验条件下,更深的网络是否总是优于更浅的网络?
主要发现
- 在 MNIST 上的典型深度神经网络分类器中,观察到在 T > 0 时测试误差存在明确的最小值,表明其泛化性能优于 T = 1 或 T → ∞ 的情况。
- 最优温度对模型具有依赖性,不同网络架构对应不同的最优 T 值以实现最佳性能。
- 基于温度的早停策略——即降温至验证误差开始上升后回退至最佳参数——在全批量模拟退火中表现有效。
- 热力学积分可在无需计算海塞矩阵的情况下实现准确的模型证据估计,从而可直接比较深层与浅层网络。
- 对于给定的数据集(D₅₀₀)和均匀先验,浅层网络 M⁽¹⁾ 明显优于深层网络 M⁽³⁾,贝叶斯因子约为 e⁻²³³²,表明对更简单模型存在压倒性证据。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。