Reproduce “Stochastic Gradient Hamiltonian Monte Carlo” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Tianqi Chen, Emily B. Fox, Carlos Guestrin

Researchers at the University of Washington developed Stochastic Gradient Hamiltonian Monte Carlo (SGHMC), an adaptation of HMC that uses stochastic gradients for scalable Bayesian inference, addressing the instability of naive approaches by introducing a friction term. The method achieves efficient and accurate sampling from complex posterior distributions in large-scale and online settings.

Key insights

  • Naively substituting stochastic gradients into HMC fundamentally alters the Hamiltonian dynamics, making the target distribution non-invariant and causing the system's entropy to strictly increase.
  • Introducing a carefully formulated friction term into the momentum update can theoretically stabilize the dynamics and make the target distribution an invariant distribution for the continuous-time system.
  • The SGHMC framework unifies first-order Langevin dynamics (like SGLD) and has connections to Stochastic Gradient Descent (SGD) with momentum, providing a broader theoretical understanding of stochastic gradient-based sampling and optimization.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.