Skip to main content
QUICK REVIEW

[Paper Review] Hamiltonian Monte Carlo Without Detailed Balance

Jascha Sohl‐Dickstein, Mayur Mudigonda|arXiv (Cornell University)|Sep 18, 2014
Markov Chains and Monte Carlo MethodsMathematics28 references37 citations
TL;DR

This paper proposes Ladder Hamiltonian Monte Carlo (LAHMC), a novel MCMC method that eliminates sample rejection in Hamiltonian Monte Carlo by using a discrete, ladder-like state space representation and Markov transitions that satisfy the fixed point equation without detailed balance. By avoiding momentum reversal and enabling longer, non-reversible trajectories, LAHMC reduces random walk behavior and improves mixing time by over a factor of two on test problems.

ABSTRACT

We present a method for performing Hamiltonian Monte Carlo that largely eliminates sample rejection for typical hyperparameters. In situations that would normally lead to rejection, instead a longer trajectory is computed until a new state is reached that can be accepted. This is achieved using Markov chain transitions that satisfy the fixed point equation, but do not satisfy detailed balance. The resulting algorithm significantly suppresses the random walk behavior and wasted function evaluations that are typically the consequence of update rejection. We demonstrate a greater than factor of two improvement in mixing time on three test problems. We release the source code as Python and MATLAB packages.

Motivation & Objective

  • Address the inefficiency of standard Hamiltonian Monte Carlo (HMC) due to sample rejection and resulting random walk behavior.
  • Overcome the fundamental limitation of detailed balance, which forces forward and reverse transitions to occur with equal probability, leading to suboptimal exploration.
  • Develop a sampling method that maintains correctness (fixed point distribution) while enabling faster mixing through non-reversible, non-rejection-based transitions.
  • Demonstrate that eliminating detailed balance in HMC can lead to significant improvements in mixing time and efficiency on high-dimensional and ill-conditioned distributions.

Proposed method

  • Represent the continuous HMC state space as a discrete, ladder-like structure where each rung corresponds to a state with a specific momentum direction.
  • Define Markov transition rules between ladder states that satisfy the fixed point equation but do not satisfy detailed balance, ensuring convergence to the target distribution.
  • Use Hamiltonian dynamics to generate long, energy-conserving trajectories through the state space, avoiding rejection by instead extending trajectories until a valid, non-rejected state is reached.
  • Introduce an auxiliary direction variable (e.g., d ∈ {−1, 1}) to track the traversal direction along the ladder, enabling non-reversible transitions.
  • Replace momentum reversal on rejection with continuation of the trajectory in the same direction, thus eliminating the need for rejection and reducing random walk behavior.
  • Ensure the transition matrix is constructed such that the target distribution remains a fixed point, preserving correctness without relying on detailed balance.

Experimental results

Research questions

  • RQ1Can Hamiltonian Monte Carlo be made rejection-free while still converging to the correct target distribution?
  • RQ2Does eliminating detailed balance in HMC lead to faster mixing and reduced random walk behavior in practice?
  • RQ3Can a discrete, ladder-based representation of the HMC state space support efficient, non-reversible transitions that improve sampling efficiency?
  • RQ4How does the performance of the proposed method compare to standard HMC and NUTS across different target distributions, including ill-conditioned and rough ones?
  • RQ5Can the method be generalized to other HMC variants that rely on detailed balance, such as Riemann manifold HMC or windowed acceptance methods?

Key findings

  • LAHMC achieves a greater than two-fold improvement in mixing time on three benchmark test problems, including a well-conditioned but rough energy landscape with sinusoidal perturbations.
  • The method suppresses random walk behavior by eliminating momentum reversal on rejection, instead continuing the trajectory in the same direction, which reduces the effective step size reduction seen in standard HMC.
  • On a two-dimensional ill-conditioned Gaussian with eigenvalues 1 and 10⁵, LAHMC outperforms standard HMC across all tested hyperparameter settings in grid searches.
  • The fraction of momentum flips in standard HMC is largely eliminated in LAHMC, indicating a shift from reversible to non-reversible dynamics.
  • The method is robust to hyperparameter choices and maintains high efficiency even in the presence of complex, non-quadratic energy landscapes.
  • The source code for LAHMC is released in both Python and MATLAB, enabling reproducibility and extension to other HMC variants.

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.