Skip to main content
QUICK REVIEW

[Paper Review] Microcanonical Hamiltonian Monte Carlo

Jakob Robnik, G. Bruno De Luca|arXiv (Cornell University)|Dec 16, 2022
Markov Chains and Monte Carlo MethodsMathematics12 citations
TL;DR

This paper introduces Microcanonical Hamiltonian Monte Carlo (MCHMC), a novel sampling method that evolves under fixed-energy Hamiltonian dynamics instead of the canonical ensemble used in standard HMC. By tuning the Hamiltonian so that the marginal over momenta yields the target distribution, MCHMC achieves superior scaling with dimensionality and condition number, and outperforms NUTS-HMC by orders of magnitude on benchmark problems using an efficient hyperparameter tuning scheme.

ABSTRACT

We develop Microcanonical Hamiltonian Monte Carlo (MCHMC), a class of models which follow a fixed energy Hamiltonian dynamics, in contrast to Hamiltonian Monte Carlo (HMC), which follows canonical distribution with different energy levels. MCHMC tunes the Hamiltonian function such that the marginal of the uniform distribution on the constant-energy-surface over the momentum variables gives the desired target distribution. We show that MCHMC requires occasional energy conserving billiard-like momentum bounces for ergodicity, analogous to momentum resampling in HMC. We generalize the concept of bounces to a continuous version with partial direction preserving bounces at every step, which gives an energy conserving underdamped Langevin-like dynamics with non-Gaussian noise (MCLMC). MCHMC and MCLMC exhibit favorable scalings with condition number and dimensionality. We develop an efficient hyperparameter tuning scheme that achieves high performance and consistently outperforms NUTS HMC on several standard benchmark problems, in some cases by more than an order of magnitude.

Motivation & Objective

  • To develop a new class of MCMC samplers based on fixed-energy (microcanonical) Hamiltonian dynamics, in contrast to the canonical ensemble used in standard HMC.
  • To address the limitations of canonical HMC in high-dimensional and ill-conditioned problems by enforcing energy conservation and improving mixing.
  • To generalize momentum resampling in HMC to energy-conserving momentum bounces, enabling ergodic sampling on constant-energy surfaces.
  • To introduce a continuous, underdamped Langevin-like variant (MCLMC) with non-Gaussian noise that preserves energy and improves sampling efficiency.
  • To demonstrate that MCHMC and MCLMC achieve favorable scaling with dimensionality and condition number, outperforming state-of-the-art methods like NUTS-HMC.

Proposed method

  • Proposes Microcanonical Hamiltonian Monte Carlo (MCHMC), where the target distribution is sampled from the uniform distribution on a fixed-energy hypersurface in phase space.
  • Tunes the Hamiltonian such that the marginal distribution over momenta reproduces the desired target distribution $ p(\mathbf{x}) $, using a constraint $ H(\mathbf{x}, \boldsymbol{\Pi}) = E $.
  • Introduces momentum bounces at every step as a continuous analog to momentum resampling in HMC, ensuring ergodicity on the energy surface.
  • Develops MCLMC as a non-Gaussian, energy-conserving, underdamped Langevin dynamics variant with partial direction-preserving bounces.
  • Derives a Riemannian geometric formulation of MCHMC, showing equivalence to geodesic flow on a conformally flat manifold with metric $ g_{ij} \propto (E - V(\mathbf{x}))^{2/q} \delta_{ij} $.
  • Introduces a hyperparameter tuning scheme that enables high performance and consistent outperformance over NUTS-HMC on standard benchmarks.

Experimental results

Research questions

  • RQ1Can fixed-energy Hamiltonian dynamics be used to construct efficient MCMC samplers that outperform canonical HMC in high-dimensional and ill-conditioned problems?
  • RQ2How can ergodicity be ensured in microcanonical sampling without momentum resampling, and what is the role of momentum bounces in this context?
  • RQ3What is the relationship between microcanonical sampling and geodesic flow on Riemannian manifolds, and how can this be leveraged to design new samplers?
  • RQ4How does the performance of MCHMC and its variant MCLMC scale with dimensionality and condition number compared to existing methods like NUTS-HMC?
  • RQ5Can a continuous, energy-conserving dynamics with non-Gaussian noise be constructed that maintains detailed balance and achieves high mixing efficiency?

Key findings

  • MCHMC achieves consistent performance gains over NUTS-HMC on standard benchmarks, with improvements by orders of magnitude in sampling efficiency.
  • The method exhibits favorable scaling with both dimensionality and condition number, outperforming canonical HMC in high-dimensional and ill-conditioned target distributions.
  • Energy-conserving momentum bounces are essential for ergodicity in MCHMC, analogous to momentum resampling in HMC but preserving energy exactly.
  • The continuous variant MCLMC provides underdamped, energy-conserving dynamics with non-Gaussian noise, improving mixing and sampling efficiency.
  • The Riemannian geometric formulation reveals that microcanonical sampling is equivalent to geodesic flow on a conformally flat manifold, with the metric determined by the target distribution and energy.
  • A novel hyperparameter tuning scheme enables high performance across diverse problems, making MCHMC a robust and scalable alternative to existing HMC-based samplers.

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.