arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.16320stat.MLcs.LG
收藏

通过随机梯度哈密顿蒙特卡洛增强低精度采样

Enhancing Low-Precision Sampling via Stochastic Gradient Hamiltonian Monte Carlo

Purdue University(普渡大学)

Ziyi Wang, Yujie Chen, Qifan Song, Ruqi Zhang

AI总结:

本文研究基于SGHMC的低精度采样方法,理论证明其在非对数凹分布下比SGLD有二次方级效率提升且对量化误差更鲁棒,经多数据集实验验证,为资源受限场景提供高效采样方案。

摘要:

低精度训练已成为一种颇具前景的低成本技术,可在不过多损失精度的前提下提升深度神经网络的训练效率,其贝叶斯版本还能进一步提供不确定性量化并提升泛化精度。本文针对强对数凹分布和非对数凹分布,研究了结合低精度与全精度梯度累加器的随机梯度哈密顿蒙特卡洛(SGHMC)低精度采样方法。理论上,我们的结果表明,对于非对数凹分布,为在2-瓦瑟斯坦距离下达到ε误差,低精度SGHMC相比当前最优的低精度采样器随机梯度朗之万动力学(SGLD)实现了二次方级别的提升:前者复杂度为$\tilde{\bf O}\big(\text{ε}^{-2}{\text{μ}^*}^{-2}\text{log}^2(\text{ε}^{-1})\big)$,后者为$\tilde{\bf O}\big(\text{ε}^{-4}{\text{λ}^*}^{-1}\text{log}^5(\text{ε}^{-1})\big)$。此外,我们证明由于基于动量的更新对梯度噪声具有鲁棒性,低精度SGHMC相比低精度SGLD对量化误差更具鲁棒性。实验上,我们在合成数据以及MNIST、CIFAR-10和CIFAR-100数据集上开展了实验,验证了我们的理论发现。本研究凸显了低精度SGHMC作为一种高效精准的采样方法在大规模及资源受限机器学习场景中的潜力。

英文摘要:

Low-precision training has emerged as a promising low-cost technique to enhance the training efficiency of deep neural networks without sacrificing much accuracy. Its Bayesian counterpart can further provide uncertainty quantification and improved generalization accuracy. This paper investigates low-precision sampling via Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) with low-precision and full-precision gradient accumulators for both strongly log-concave and non-log-concave distributions. Theoretically, our results show that, to achieve $ε$-error in the 2-Wasserstein distance for non-log-concave distributions, low-precision SGHMC achieves quadratic improvement ($\widetilde{\mathbf{O}}\left({ε^{-2}{μ^*}^{-2}\log^2\left({ε^{-1}}\right)}\right)$) compared to the state-of-the-art low-precision sampler, Stochastic Gradient Langevin Dynamics (SGLD) ($\widetilde{\mathbf{O}}\left({ε^{-4}{λ^{*}}^{-1}\log^5\left({ε^{-1}}\right)}\right)$). Moreover, we prove that low-precision SGHMC is more robust to the quantization error compared to low-precision SGLD due to the robustness of the momentum-based update w.r.t. gradient noise. Empirically, we conduct experiments on synthetic data, and {MNIST, CIFAR-10 \& CIFAR-100} datasets, which validate our theoretical findings. Our study highlights the potential of low-precision SGHMC as an efficient and accurate sampling method for large-scale and resource-limited machine learning.

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

↑