Skip to main content
QUICK REVIEW

[Paper Review] Identifying the Optimal Integration Time in Hamiltonian Monte Carlo

Michael Betancourt|arXiv (Cornell University)|Jan 2, 2016
Markov Chains and Monte Carlo MethodsMathematics21 references30 citations
TL;DR

This paper identifies the optimal integration time in Hamiltonian Monte Carlo (HMC) by leveraging the geometry of the underlying Hamiltonian system, proposing Exhaustive Hamiltonian Monte Carlo (XHMC) that terminates when trajectories exhaust the energy level sets. XHMC achieves significantly higher effective sample sizes and computational efficiency than the No-U-Turn Sampler (NUTS), especially in highly correlated posteriors, due to better exploration without asymptotic waste.

ABSTRACT

By leveraging the natural geometry of a smooth probabilistic system, Hamiltonian Monte Carlo yields computationally efficient Markov Chain Monte Carlo estimation. At least provided that the algorithm is sufficiently well-tuned. In this paper I show how the geometric foundations of Hamiltonian Monte Carlo implicitly identify the optimal choice of these parameters, especially the integration time. I then consider the practical consequences of these principles in both existing algorithms and a new implementation called \emph{Exhaustive Hamiltonian Monte Carlo} before demonstrating the utility of these ideas in some illustrative examples.

Motivation & Objective

  • To address the critical challenge of tuning integration time in Hamiltonian Monte Carlo, which significantly affects sampling efficiency and mixing.
  • To develop a principled, geometrically motivated criterion for terminating HMC trajectories that avoids both premature termination and asymptotic waste.
  • To demonstrate that exhaustive termination—integrating until trajectories exhaust energy level sets—leads to more efficient and robust sampling than existing criteria like NUTS.
  • To provide a theoretical foundation for XHMC that supports rigorous analysis of ergodicity and step size optimality.

Proposed method

  • The paper derives the geometric foundations of HMC by lifting the target distribution to a Hamiltonian system on the cotangent bundle, where the canonical measure is preserved by the Hamiltonian flow.
  • It introduces the concept of microcanonical disintegration to define a natural measure on the cotangent fibers, ensuring the lifted distribution is proportional to the exponential of the negative Hamiltonian.
  • The key innovation is the exhaustive termination criterion: integrate the Hamiltonian flow until the trajectory has explored the entire energy level set, ensuring maximal geometric coverage.
  • The method uses the natural symplectic structure and volume form to define a flow that preserves the target measure, enabling efficient, low-correlation Markov transitions.
  • It formulates a practical implementation of XHMC that dynamically adjusts integration time based on energy level set exhaustion, avoiding fixed or heuristic thresholds.
  • The approach is contrasted with NUTS, which uses a doubling criterion based on U-turn detection, and shown to be more robust in high-correlation settings.

Experimental results

Research questions

  • RQ1What is the optimal integration time in Hamiltonian Monte Carlo, and how can it be determined geometrically rather than heuristically?
  • RQ2How does exhaustive termination—integrating until trajectories exhaust energy level sets—affect sampling efficiency and effective sample size?
  • RQ3Why does the No-U-Turn Sampler fail to identify optimal integration times in highly correlated posteriors, and how does XHMC overcome this?
  • RQ4Can a geometrically grounded termination criterion lead to stronger theoretical guarantees, such as improved ergodicity and variance reduction?

Key findings

  • XHMC achieves approximately 20x higher effective sample size than NUTS when tuned with δ=0.1 on a 1-PL item response model, indicating superior sampling efficiency.
  • With δ=0.01, XHMC's improvement becomes sublinear (≈60x), suggesting integration times are approaching the asymptotic regime where returns diminish.
  • The nominal XHMC tunes identify longer integration times than NUTS, and these times are not asymptotic, leading to superlinear exploration gains.
  • XHMC outperforms NUTS in both effective sample size and computational efficiency on the 1-PL model, particularly due to avoiding premature termination in nonlinearly correlated posteriors.
  • The exhaustive termination criterion is theoretically more robust than NUTS’s U-turn criterion, as it is grounded in Poincaré recurrence and microcanonical geometry.
  • The paper suggests that averaging over entire Hamiltonian trajectories (Rao-Blackwellization) could further reduce estimator variance with minimal computational cost.

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.