paper-with-me

홈 › Papers

Enhancing Low-Precision Sampling via Stochastic Gradient Hamiltonian Monte Carlo

2023-10-25 · Ziyi Wang, Yujie Chen, Qifan Song, Ruqi Zhang

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 $\epsilon$-error in the 2-Wasserstein distance for non-log-concave distributions, low-precision SGHMC achieves quadratic improvement ($\widetilde{\mathbf{O}}\left({\epsilon^{-2}{\mu^*}^{-2}\log^2\left({\epsilon^{-1}}\right)}\right)$) compared to the state-of-the-art low-precision sampler, Stochastic Gradient Langevin Dynamics (SGLD) ($\widetilde{\mathbf{O}}\left({{\epsilon}^{-4}{\lambda^{*}}^{-1}\log^5\left({\epsilon^{-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.

📄 PDF Abstract BibTeX arXiv:2310.16320

Code (1)

comeusr/low-precisionsghmc 공식 구현 pytorch

Tasks

QuantizationUncertainty Quantification

Similar Papers 제목 키워드 기반

Stochastic Gradient Hamiltonian Monte Carlo for Non-Convex Learning

2019-03-25 · Huy N. Chau, Miklos Rasonyi

Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) is a momentum version of stochastic gradient descent with properly injected Gaussian noise to find a global minimum. In this paper, non-asymptotic convergence analysis …

Stochastic Gradient Hamiltonian Monte Carlo with Variance Reduction for Bayesian Inference

2018-03-29 · Zhize Li, Tianyi Zhang, Shuyu Cheng, Jun Zhu 외

Gradient-based Monte Carlo sampling algorithms, like Langevin dynamics and Hamiltonian Monte Carlo, are important methods for Bayesian inference. In large-scale settings, full-gradients are not affordable and thus stocha…

Bayesian Inference

Stochastic Gradient Hamiltonian Monte Carlo Methods with Recursive Variance Reduction

2019-12-01 · NeurIPS 2019 12 · Difan Zou, Pan Xu, Quanquan Gu

Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) algorithms have received increasing attention in both theory and practice. In this paper, we propose a Stochastic Recursive Variance-Reduced gradient HMC (SRVR-HMC) al…

Quantum Speedups for Markov Chain Monte Carlo Methods with Application to Optimization

2025-04-04 · Guneykan Ozgul, Xiantao Li, Mehrdad Mahdavi, Chunhao Wang

We propose quantum algorithms that provide provable speedups for Markov Chain Monte Carlo (MCMC) methods commonly used for sampling from probability distributions of the form $\pi \propto e^{-f}$, where $f$ is a potentia…

Revisiting the Effects of Stochasticity for Hamiltonian Samplers

2021-06-30 · Giulio Franzese, Dimitrios Milios, Maurizio Filippone, Pietro Michiardi

We revisit the theoretical properties of Hamiltonian stochastic differential equations (SDES) for Bayesian posterior sampling, and we study the two types of errors that arise from numerical SDE simulation: the discretiza…

Numerical Integration