arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.01384math.NAcs.LGcs.NAmath.OC
收藏

一种自适应Hessian逼近随机梯度MCMC方法

An adaptive Hessian approximated stochastic gradient MCMC method

Purdue University(普渡大学)

Yating Wang, Wei Deng, Guang Lin

摘要:

贝叶斯方法已成功集成到训练深度神经网络中。一个流行的家族是随机梯度马尔可夫链蒙特卡罗方法(SG-MCMC),由于其处理大型数据集的可扩展性和避免过拟合的能力,其获得了越来越多的关注。虽然标准SG-MCMC方法在各种问题中表现出很好的性能,但当目标后验密度中的随机变量具有尺度差异或高度相关时,它们可能是低效的。在这项工作中,我们提出了一个自适应海森近似随机梯度MCMC方法,将局部几何信息,同时从后验采样。其思想是应用随机逼近在每次迭代中顺序地更新预处理矩阵。预条件子具有二阶信息,能有效地引导采样器的随机游动。在更新公式中,我们利用样本及其随机梯度的有限记忆来近似逆Hessian-vector乘法,而不是计算和保存对数后验的完整Hessian。此外,通过平滑优化预处理矩阵,我们提出的算法可以渐近收敛到目标分布在温和的条件下,可控的偏差。为了减少训练和测试的计算负担,我们采用了基于幅度的权重修剪方法来增强网络的稀疏性。我们的方法是用户友好的,是可扩展的标准SG-MCMC更新规则,通过实现一个额外的预条件。逆Hessian模型的稀疏近似降低了存储量和大维数模型的计算复杂性。由随机逼近引入的偏差是可控的,可以从理论上进行分析。对几个问题进行了数值试验。

英文摘要:

Bayesian approaches have been successfully integrated into training deep neural networks. One popular family is stochastic gradient Markov chain Monte Carlo methods (SG-MCMC), which have gained increasing interest due to their scalability to handle large datasets and the ability to avoid overfitting. Although standard SG-MCMC methods have shown great performance in a variety of problems, they may be inefficient when the random variables in the target posterior densities have scale differences or are highly correlated. In this work, we present an adaptive Hessian approximated stochastic gradient MCMC method to incorporate local geometric information while sampling from the posterior. The idea is to apply stochastic approximation to sequentially update a preconditioning matrix at each iteration. The preconditioner possesses second-order information and can guide the random walk of a sampler efficiently. Instead of computing and saving the full Hessian of the log posterior, we use limited memory of the sample and their stochastic gradients to approximate the inverse Hessian-vector multiplication in the updating formula. Moreover, by smoothly optimizing the preconditioning matrix, our proposed algorithm can asymptotically converge to the target distribution with a controllable bias under mild conditions. To reduce the training and testing computational burden, we adopt a magnitude-based weight pruning method to enforce the sparsity of the network. Our method is user-friendly and is scalable to standard SG-MCMC updating rules by implementing an additional preconditioner. The sparse approximation of inverse Hessian alleviates storage and computational complexities for large dimensional models. The bias introduced by stochastic approximation is controllable and can be analyzed theoretically. Numerical experiments are performed on several problems.

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

↑