Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Gradient Hamiltonian Monte Carlo with Variance Reduction for Bayesian Inference

Zhize Li, Tianyi Zhang|arXiv (Cornell University)|Mar 29, 2018
Markov Chains and Monte Carlo MethodsMathematics26 references6 citations
TL;DR

This paper proposes variance-reduced stochastic gradient Hamiltonian Monte Carlo (SGHMC) algorithms—SVRG-HMC, SAGA-HMC, and their second-order symmetric splitting variants (SVRG2nd-HMC, SAGA2nd-HMC)—to improve Bayesian inference in large-scale settings. By integrating variance reduction techniques from optimization with HMC’s momentum and friction terms, the methods achieve faster convergence and better theoretical guarantees than variance-reduced SGLD, with empirical results showing superior performance on regression and classification tasks using Bayesian neural networks.

ABSTRACT

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 stochastic gradients evaluated on mini-batches are used as a replacement. In order to reduce the high variance of noisy stochastic gradients, Dubey et al. [2016] applied the standard variance reduction technique on stochastic gradient Langevin dynamics and obtained both theoretical and experimental improvements. In this paper, we apply the variance reduction tricks on Hamiltonian Monte Carlo and achieve better theoretical convergence results compared with the variance-reduced Langevin dynamics. Moreover, we apply the symmetric splitting scheme in our variance-reduced Hamiltonian Monte Carlo algorithms to further improve the theoretical results. The experimental results are also consistent with the theoretical results. As our experiment shows, variance-reduced Hamiltonian Monte Carlo demonstrates better performance than variance-reduced Langevin dynamics in Bayesian regression and classification tasks on real-world datasets.

Motivation & Objective

  • To address high variance in stochastic gradients for large-scale Bayesian inference using Hamiltonian Monte Carlo.
  • To extend variance reduction techniques—originally applied to SGLD—to SGHMC, leveraging HMC’s momentum and friction terms for improved convergence.
  • To develop second-order integrators via symmetric splitting to further enhance convergence properties and step size stability.
  • To empirically validate the proposed algorithms on real-world regression and classification datasets, demonstrating superiority over baseline SGHMC and variance-reduced SGLD.
  • To provide theoretical justification for the improved convergence of variance-reduced HMC over variance-reduced SGLD, despite the latter’s simpler structure.

Proposed method

  • Adapts SVRG and SAGA variance reduction techniques to SGHMC by maintaining a running average of full gradients over mini-batches.
  • Introduces SVRG-HMC and SAGA-HMC as variance-reduced variants of SGHMC, with theoretical convergence guarantees under non-i.i.d. sampling.
  • Applies symmetric splitting schemes to convert first-order integrators into second-order ones, improving stability and reducing dependency on step size.
  • Derives theoretical bounds on convergence rates that show improved dependency on step size and variance reduction compared to SGLD variants.
  • Employs a momentum term and friction term in the HMC dynamics, which are preserved and enhanced through variance reduction and symmetric splitting.
  • Implements the algorithms in TensorFlow and evaluates them on UCI datasets, including Bayesian neural networks with ReLU activations and Gaussian priors.

Experimental results

Research questions

  • RQ1Can variance reduction techniques from optimization be successfully extended to SGHMC, given its more complex dynamics involving momentum and friction?
  • RQ2Does the inclusion of momentum and friction in HMC lead to better theoretical convergence than in SGLD when variance reduction is applied?
  • RQ3Can symmetric splitting schemes further improve the convergence and stability of variance-reduced HMC compared to standard integrators?
  • RQ4How do variance-reduced HMC algorithms compare empirically to vanilla SGHMC and variance-reduced SGLD in terms of convergence speed and predictive performance?
  • RQ5Is the performance gain of variance-reduced HMC over SGLD due solely to HMC’s inherent advantages, or is it amplified by the variance reduction mechanism?

Key findings

  • SVRG2nd-HMC and SAGA2nd-HMC outperform vanilla SGHMC and SVRG/SAGA-LD in both regression and classification tasks on real-world UCI datasets.
  • The proposed variance-reduced HMC methods converge markedly faster than benchmarks, with performance gaps consistent across multiple datasets and model architectures.
  • SVRG2nd-HMC allows for slightly larger step sizes without divergence, indicating improved numerical stability compared to SVRG-HMC.
  • Theoretical analysis confirms that variance-reduced HMC has better convergence rates than variance-reduced SGLD due to the momentum and friction terms.
  • SAGA2nd-HMC and SVRG2nd-HMC show similar performance, but SVRG2nd-HMC is preferred due to lower memory cost and simpler implementation.
  • The experiments demonstrate that variance reduction significantly enhances SGHMC’s convergence, confirming that the benefits are not solely due to HMC’s inherent superiority over SGLD.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.