Skip to main content
QUICK REVIEW

[Paper Review] AMAGOLD: Amortized Metropolis Adjustment for Efficient Stochastic Gradient MCMC

Ruqi Zhang, A. Feder Cooper|arXiv (Cornell University)|Feb 29, 2020
Markov Chains and Monte Carlo MethodsMathematics8 citations
TL;DR

AMAGOLD is a novel second-order stochastic gradient MCMC algorithm that applies Metropolis-Hastings corrections infrequently to remove bias in SGHMC while amortizing their computational cost. It achieves asymptotically exact sampling with a fixed step size and a convergence rate within a constant factor of full-batch baselines, outperforming SGHMC in robustness and accuracy on synthetic and real-world Bayesian inference tasks.

ABSTRACT

Stochastic gradient Hamiltonian Monte Carlo (SGHMC) is an efficient method for sampling from continuous distributions. It is a faster alternative to HMC: instead of using the whole dataset at each iteration, SGHMC uses only a subsample. This improves performance, but introduces bias that can cause SGHMC to converge to the wrong distribution. One can prevent this using a step size that decays to zero, but such a step size schedule can drastically slow down convergence. To address this tension, we propose a novel second-order SG-MCMC algorithm---AMAGOLD---that infrequently uses Metropolis-Hastings (M-H) corrections to remove bias. The infrequency of corrections amortizes their cost. We prove AMAGOLD converges to the target distribution with a fixed, rather than a diminishing, step size, and that its convergence rate is at most a constant factor slower than a full-batch baseline. We empirically demonstrate AMAGOLD's effectiveness on synthetic distributions, Bayesian logistic regression, and Bayesian neural networks.

Motivation & Objective

  • To address the bias introduced by stochastic gradients and fixed step sizes in SGHMC, which prevent convergence to the true posterior.
  • To maintain the computational efficiency of stochastic gradient MCMC while ensuring asymptotic exactness.
  • To reduce the computational burden of Metropolis-Hastings corrections by applying them only every T steps, amortizing their cost.
  • To provide theoretical guarantees on convergence rate and bias removal without requiring diminishing step sizes or precise noise variance estimation.
  • To empirically validate AMAGOLD's robustness and performance on synthetic distributions, Bayesian logistic regression, and Bayesian neural networks.

Proposed method

  • AMAGOLD applies Metropolis-Hastings corrections every T steps in the SGHMC update sequence, rather than at every iteration, to correct bias from stochastic gradients.
  • It uses a reversible or non-reversible variant of SGHMC with a momentum variable and energy accumulator to track the change in energy during updates.
  • The Metropolis-Hastings acceptance probability is computed using the full energy difference and accumulated momentum terms, ensuring detailed balance.
  • The algorithm amortizes the cost of M-H corrections by reusing the same correction over T steps, reducing per-iteration overhead.
  • A spectral gap-based convergence rate bound is derived, showing AMAGOLD's rate is within a constant factor of the full-batch baseline.
  • The method does not require step size decay or accurate noise variance estimation, enhancing practical usability.

Experimental results

Research questions

  • RQ1Can Metropolis-Hastings corrections be applied infrequently in SGHMC to maintain asymptotic exactness without incurring prohibitive computational cost?
  • RQ2Does amortizing M-H corrections over T steps preserve the convergence properties of full-batch MCMC while maintaining computational efficiency?
  • RQ3Can AMAGOLD achieve a convergence rate within a constant factor of full-batch HMC, even with stochastic gradients?
  • RQ4How does AMAGOLD compare to SGHMC in terms of robustness to hyperparameter choices, especially step size?
  • RQ5Does AMAGOLD maintain accuracy on real-world Bayesian inference tasks like Bayesian logistic regression and Bayesian neural networks?

Key findings

  • AMAGOLD converges to the true posterior distribution with a fixed step size, eliminating the need for diminishing step sizes commonly used to reduce bias in SGHMC.
  • The convergence rate of AMAGOLD is bounded within a constant factor of the full-batch baseline, demonstrating theoretical efficiency.
  • AMAGOLD is significantly more robust to step size selection than SGHMC, with stable performance across a wide range of step sizes.
  • On synthetic distributions, AMAGOLD achieves lower KL divergence than SGHMC, especially when step sizes are suboptimal.
  • In Bayesian logistic regression and Bayesian neural networks, AMAGOLD outperforms SGHMC in sampling accuracy and generalization, while remaining competitive with full-batch baselines in runtime.
  • The M-H acceptance probability in AMAGOLD remains sufficiently high over a wide range of step sizes, enabling effective exploration without excessive rejection.

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.