Metropolis Adjusted Microcanonical Hamiltonian Monte Carlo

Jakob Robnik, Reuben Cohn-Gordon, U. Seljak
3/1/2025

No confident code implementation found for this paper.

Abstract

Sampling from high dimensional distributions is a computational bottleneck in many scientific applications. Hamiltonian Monte Carlo (HMC), and in particular the No-U-Turn Sampler (NUTS), are widely used, yet they struggle on problems with a very large number of parameters or a complicated geometry.

Show full abstract

Microcanonical Langevin Monte Carlo (MCLMC) has been recently proposed as an alternative which shows striking gains in efficiency over NUTS, especially for high-dimensional problems. However, it produces biased samples, with a bias that is hard to control in general. We introduce the Metropolis-Adjusted Microcanonical sampler (MAMS), which relies on the same dynamics as MCLMC, but introduces a Metropolis-Hastings step and thus produces asymptotically unbiased samples. We develop an automated tuning scheme for the hyperparameters of the algorithm, making it applicable out of the box. We demonstrate that MAMS outperforms NUTS across the board on benchmark problems of varying complexity and dimensionality, achieving up to a factor of seven speedup.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{robnik2025metropolis,
  title  = {Metropolis Adjusted Microcanonical Hamiltonian Monte Carlo},
  author = {Jakob Robnik and Reuben Cohn-Gordon and U. Seljak},
  year   = {2025},
  eprint = {2503.01707},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-0513},
  url    = {https://doi.org/10.52202/085713-0513},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.01707.svg)](https://codeofpaper.com/paper/2503.01707)

Discussion