Skip to main content
QUICK REVIEW

[Paper Review] Split Hamiltonian Monte Carlo

Babak Shahbaba, Shiwei Lan|arXiv (Cornell University)|Jun 29, 2011
Markov Chains and Monte Carlo MethodsMathematics12 references3 citations
TL;DR

This paper proposes Split Hamiltonian Monte Carlo (HMC), a method that improves sampling efficiency by splitting the Hamiltonian into fast, analytically solvable components and slow, costly components. By simulating the fast part exactly and using larger stepsizes for the slow part, it reduces gradient evaluations and computational cost, significantly improving performance on logistic regression models with real and simulated data.

ABSTRACT

We show how the Hamiltonian Monte Carlo algorithm can sometimes be speeded up by "splitting" the Hamiltonian in a way that allows much of the movement around the state space to be done at low computational cost. One context where this is possible is when the log density of the distribution of interest (the potential energy function) can be written as the log of a Gaussian density, which is a quadratic function, plus a slowly varying function. Hamiltonian dynamics for quadratic energy functions can be analytically solved. With the splitting technique, only the slowly-varying part of the energy needs to be handled numerically, and this can be done with a larger stepsize (and hence fewer steps) than would be necessary with a direct simulation of the dynamics. Another context where splitting helps is when the most important terms of the potential energy function and its gradient can be evaluated quickly, with only a slowly-varying part requiring costly computations. With splitting, the quick portion can be handled with a small stepsize, while the costly portion uses a larger stepsize. We show that both of these splitting approaches can reduce the computational cost of sampling from the posterior distribution for a logistic regression model, using either a Gaussian approximation centered on the posterior mode, or a Hamiltonian split into a term that depends on only a small number of critical cases, and another term that involves the larger number of cases whose influence on the posterior distribution is small. Supplemental materials for this paper are available online.

Motivation & Objective

  • Address the high computational cost of standard HMC, which relies on small step sizes due to costly gradient evaluations.
  • Improve sampling efficiency in high-dimensional Bayesian models by exploiting structure in the potential energy function.
  • Develop two splitting strategies: one using a Gaussian approximation of the posterior, and another using a data subset to model the dominant energy component.
  • Demonstrate that splitting enables larger step sizes for costly components while maintaining high acceptance rates and reducing total computational cost.
  • Extend the method to multinomial logistic models and explore its compatibility with other HMC improvements like RMHMC and automatic tuning.

Proposed method

  • Decompose the Hamiltonian into two parts: $ H(q,p) = U_0(q) + K(p) + U_1(q) $, where $ U_0 $ is analytically solvable and $ U_1 $ is slowly varying.
  • Use analytical solutions for $ U_0 $, such as quadratic (Gaussian) forms, to simulate dynamics exactly without numerical integration.
  • Apply numerical integration (e.g., leapfrog) only to $ U_1 $, allowing larger step sizes due to its slow variation.
  • For data splitting, define $ U_0 $ using a small subset of data (e.g., 30–35%) whose influence dominates the posterior, reducing costly gradient evaluations.
  • Use the MAP estimate to construct $ U_0 $, either via a normal approximation or via a data subset, to capture the main posterior structure.
  • Apply the splitting to logistic regression models by separating the log-likelihood into a fast, quadratic component and a slow, non-quadratic component.

Experimental results

Research questions

  • RQ1Can splitting the Hamiltonian into analytically solvable and slowly varying components reduce the number of costly gradient evaluations in HMC?
  • RQ2How does using a Gaussian approximation of the posterior as $ U_0 $ affect sampling efficiency compared to standard HMC?
  • RQ3Can a small data subset be used effectively to define $ U_0 $, such that the remaining dynamics are computationally cheaper to simulate?
  • RQ4How do the two splitting strategies compare in terms of computational efficiency and mixing performance on real-world logistic regression problems?
  • RQ5To what extent can this splitting technique be generalized to other models, such as multinomial logistic regression?

Key findings

  • Split HMC with a normal approximation reduced the number of leapfrog steps from 20 to 13 in the logistic regression example, cutting computational cost significantly.
  • The data splitting method reduced steps to just 2 for the same logistic regression problem, outperforming both standard HMC and the normal approximation method.
  • On the Chess endgame dataset, the data splitting method required only 2 leapfrog steps, compared to 20 in standard HMC, showing substantial efficiency gains.
  • For the Chess dataset, the normal approximation method outperformed data splitting in terms of $ \tau \times g $, $ \tau \times s $, and $ \tau_\beta \times s $, though data splitting was better for $ \tau_\beta \times g $.
  • The method’s performance depends on the quality of the MAP estimate and the representativeness of the subset used for $ U_0 $, but the overhead is typically negligible compared to sampling gains.
  • The authors suggest that Split HMC can be combined with other HMC improvements like RMHMC or automatic tuning, potentially leading to further efficiency gains.

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.