Resonances in reflective Hamiltonian Monte Carlo

Namu Kroupa, Gábor Cśanyi, Will Handley

TL;DR

This paper investigates why a popular sampling algorithm, Reflective Hamiltonian Monte Carlo (RHMC), struggles in high dimensions. The authors discover that RHMC can exhibit "resonances" where particles spontaneously unmix, leading to slow mixing. They propose using the Sinkhorn divergence to diagnose these issues and suggest that current tuning methods for RHMC are insufficient for high-dimensional problems.

What Problem Does This Paper Address?

Sampling from probability distributions is a fundamental task in many scientific fields, particularly in Bayesian inference and computational physics. Markov Chain Monte Carlo (MCMC) methods are widely used for this purpose. Reflective Hamiltonian Monte Carlo (RHMC) is a specific MCMC algorithm that's been employed in techniques like nested sampling for calculating normalization constants. However, RHMC has been observed to perform poorly in high-dimensional spaces (above ~10 dimensions), leading to systematic errors. This paper aims to understand the root cause of this poor performance, specifically the "slow mixing" observed in high dimensions, and to elucidate the mechanisms behind it.

Methods

The authors employ a combination of theoretical analysis and computational experiments.

  • Galilean Monte Carlo (GMC): They focus on a specific variant of RHMC called Galilean Monte Carlo (GMC), which is widely used in practice. GMC involves particles moving deterministically for a short time, reflecting off boundaries, and sometimes having their momentum randomized.
  • Sinkhorn Divergence (SD): To quantify how well the particle ensemble samples the target uniform distribution, they use the Sinkhorn divergence. This metric measures the "non-uniformity" of the particle distribution over time. A decreasing SD indicates good mixing, while an increasing SD suggests particles are unmixing or "bunching."
  • Dimensionality Analysis: They analyze the behavior of GMC in high-dimensional spheres and cubes, which are chosen for their symmetry and tractability.
  • Low-Dimensional Models: To gain intuition, they construct simplified low-dimensional models that capture the essential dynamics of the high-dimensional problem.
  • Frequency Spectrum Analysis: They analyze the power spectral density of the Sinkhorn divergence to identify characteristic frequencies associated with the observed resonances.

Datasets

Not discussed in the paper. The authors use simulated ensembles of particles within geometric shapes (spheres and cubes) to study the algorithm's behavior.

Key Insights and Ideas

  • "Resonances" as the Culprit: The core insight is that RHMC's mixing problems in high dimensions are caused by "resonances" – phenomena where particles spontaneously unmix and bunch together, disrupting the smooth exploration of the state space.
  • Fluid-like vs. Discretization-Dominated Regimes: The particle dynamics transition between a "fluid-like" behavior (smooth spreading) and a "discretization-dominated" behavior (particles getting stuck or moving in discrete patterns) as the step size (momentum standard deviation) changes. This transition point scales as a power law with dimension.
  • Spontaneous Unmixing: Even when particles are initially well-mixed, they can spontaneously unmix due to the inexact reflections and the nature of the GMC dynamics, especially in high dimensions.
  • Inadequacy of Current Tuning: Existing methods for tuning RHMC parameters, like the trajectory-wise acceptance rate, are shown to be uninformative about the algorithm's mixing behavior in high dimensions.
  • Sphere vs. Cube Dynamics: While both spheres and cubes exhibit resonances, the dynamics differ. In spheres, radial mixing is slower than angular mixing, leading to a bias towards boundaries. In cubes, particles can get trapped in one-dimensional subspaces due to reflections.

Key Results

  • The Sinkhorn divergence clearly shows oscillations (resonances) in the particle density for both spheres and cubes in high dimensions, indicating periods of unmixing.
  • The critical step size that governs the transition between fluid-like and discretization-dominated behavior scales as a power law with dimension.
  • In spheres, the mixing in the radial coordinate is significantly slower than in the angular coordinates, which is attributed to the geometry of high-dimensional spheres.
  • In cubes, for larger step sizes, particles tend to get trapped in one-dimensional paths, leading to a discrete frequency spectrum in the SD.
  • The analysis of the frequency spectrum of the SD reveals characteristic frequencies related to particle motion and reflections, which are influenced by the step size and dimensionality.

Limitations and Future Work

  • Tuning Metrics: The paper highlights that current tuning metrics for RHMC are insufficient for high-dimensional problems. Future work could focus on developing new, informative tuning metrics.
  • General Boundaries: While the study focuses on spheres and cubes, future work could explore the dynamics on more general, non-spherical boundaries, which are more common in real-world applications.
  • Preconditioning: The authors suggest that local preconditioning (coordinate transformations that adapt to the particle's position) might be necessary to improve mixing.
  • Nested Sampling Implications: The findings have direct implications for nested sampling, suggesting that increasing the number of "live points" (parallel chains) might help suppress resonances.
  • Piecewise-Deterministic Algorithms: The work provides a foundation for developing new algorithms that are better suited for high-dimensional sampling.
BibTeX
@misc{kroupa2025resonances,
  author = {Namu Kroupa and Gábor Cśanyi and Will Handley},
  title = {{Resonances in reflective Hamiltonian Monte Carlo}},
  year = {2025},
  eprint = {2504.12374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.12374},
}