Skip to main content
QUICK REVIEW

[Paper Review] Towards Unifying Hamiltonian Monte Carlo and Slice Sampling

Yizhe Zhang, Xiangyu Wang|arXiv (Cornell University)|Feb 25, 2016
Markov Chains and Monte Carlo MethodsMathematics10 citations
TL;DR

This paper unifies Hamiltonian Monte Carlo (HMC) and slice sampling through the Hamilton-Jacobi equation, introducing Monomial Gamma Samplers (MGS) as a generalized family of auxiliary-variable samplers. It proves that as the monomial parameter $a$ increases, one-step sample autocorrelation converges to zero, enabling decorrelated sampling—though with rising numerical complexity.

ABSTRACT

We unify slice sampling and Hamiltonian Monte Carlo (HMC) sampling, demonstrating their connection via the Hamiltonian-Jacobi equation from Hamiltonian mechanics. This insight enables extension of HMC and slice sampling to a broader family of samplers, called Monomial Gamma Samplers (MGS). We provide a theoretical analysis of the mixing performance of such samplers, proving that in the limit of a single parameter, the MGS draws decorrelated samples from the desired target distribution. We further show that as this parameter tends toward this limit, performance gains are achieved at a cost of increasing numerical difficulty and some practical convergence issues. Our theoretical results are validated with synthetic data and real-world applications.

Motivation & Objective

  • To establish a theoretical connection between Hamiltonian Monte Carlo (HMC) and slice sampling using Hamiltonian mechanics.
  • To develop a unified family of samplers, Monomial Gamma Samplers (MGS), by generalizing the kinetic function in HMC.
  • To analyze the theoretical mixing performance of MGS, particularly the asymptotic decorrelation of samples as the monomial parameter $a$ increases.
  • To evaluate the trade-off between improved theoretical sampling efficiency and increased numerical challenges in practice.
  • To validate the proposed method on synthetic and real-world datasets, including Bayesian Logistic Regression and Independent Component Analysis.

Proposed method

  • Formalize the connection between HMC and slice sampling using the Hamilton-Jacobi equation from classical mechanics.
  • Generalize the HMC kinetic function to a monomial form $K(p) \propto |p|^a$, creating a new family of samplers called Monomial Gamma Samplers (MGS).
  • Show that different values of $a$ correspond to generalized slice sampling with non-uniform slicing distributions.
  • Prove that as $a \to \infty$, the one-step autocorrelation of samples from the target distribution converges to zero, implying asymptotically uncorrelated draws.
  • Implement MG-HMC using numerical integration with leap-frog steps, adapting standard HMC with a generalized momentum distribution.
  • Apply adaptive step-size and mass matrix tuning to improve numerical stability in high-dimensional settings.

Experimental results

Research questions

  • RQ1How are Hamiltonian Monte Carlo and slice sampling related through the framework of Hamiltonian mechanics?
  • RQ2Can the kinetic function in HMC be generalized to unify HMC and slice sampling under a single theoretical framework?
  • RQ3What is the theoretical impact of increasing the monomial parameter $a$ in the generalized kinetic function on sample decorrelation?
  • RQ4What is the practical trade-off between improved mixing performance and increased numerical complexity in MG-HMC?
  • RQ5How does MG-HMC compare to standard HMC and slice sampling in terms of effective sample size (ESS) on real-world and synthetic data?

Key findings

  • Theoretical analysis shows that as the monomial parameter $a$ increases, the one-step autocorrelation of samples from the target distribution converges asymptotically to zero, indicating improved mixing and decorrelation.
  • In 1D bimodal distributions, MG-HMC with $a=2$ achieves an effective sample size (ESS) of 24,298, significantly outperforming $a=0.5$ (5,175) and $a=1$ (10,157).
  • In 2D bimodal distributions, MG-HMC with $a=2$ achieves an ESS of 18,007, compared to 4,691 for $a=0.5$ and 16,349 for $a=1$, demonstrating improved mixing.
  • On real-world Bayesian Logistic Regression datasets, MG-HMC with $a=1$ achieves the highest minimum ESS (4,531 median), outperforming $a=0.5$ and $a=2$, which suffer from reduced acceptance rates and numerical instability.
  • For the high-dimensional Caravan dataset (87 dimensions), MG-HMC with $a=1$ still outperforms $a=0.5$ and $a=2$, though the improvement is less pronounced, indicating dimensionality-dependent performance trade-offs.
  • In Independent Component Analysis on the MEG dataset, MG-HMC with $a=1$ achieves the best ESS (2,677), with acceptance rate of 0.97, while $a=2$ drops to 0.77 acceptance rate and lower ESS, confirming the numerical cost of higher $a$.

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.