arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.12957cs.LGstat.CO
收藏

贝叶斯深度学习的优化与剪枝

On the optimization and pruning for Bayesian deep learning

UNSW(新南威尔士大学)

Xiongwen Ke, Yanan Fan

摘要:

贝叶斯深度学习的目标是通过后验分布提供不确定性量化。然而,由于神经网络的超高维度,在权重空间上的精确推断在计算上是难以处理的。变分推理(VI)是一种很有前途的方法,但在权重空间上的朴素应用不能很好地扩展,并且往往在预测准确性上表现不佳。在本文中,我们提出了一种新的自适应变分贝叶斯算法的训练神经网络的权重空间,实现高的预测精度。通过证明具有预处理矩阵的随机梯度哈密顿蒙特卡罗(SGHMC)是等价的,我们提出了EM算法中的MCMC,它在捕获神经网络的稀疏性之前加入了尖峰和板。EM-MCMC算法允许我们在一次性内执行优化和模型修剪。我们在CIFAR-10,CIFAR-100和ImageNet数据集上评估了我们的方法,并证明了我们的密集模型可以达到最先进的性能,而我们的稀疏模型与以前提出的修剪方案相比表现非常好。

英文摘要:

The goal of Bayesian deep learning is to provide uncertainty quantification via the posterior distribution. However, exact inference over the weight space is computationally intractable due to the ultra-high dimensions of the neural network. Variational inference (VI) is a promising approach, but naive application on weight space does not scale well and often underperform on predictive accuracy. In this paper, we propose a new adaptive variational Bayesian algorithm to train neural networks on weight space that achieves high predictive accuracy. By showing that there is an equivalence to Stochastic Gradient Hamiltonian Monte Carlo(SGHMC) with preconditioning matrix, we then propose an MCMC within EM algorithm, which incorporates the spike-and-slab prior to capture the sparsity of the neural network. The EM-MCMC algorithm allows us to perform optimization and model pruning within one-shot. We evaluate our methods on CIFAR-10, CIFAR-100 and ImageNet datasets, and demonstrate that our dense model can reach the state-of-the-art performance and our sparse model perform very well compared to previously proposed pruning schemes.

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

↑