ATLAS: Adapting Trajectory Lengths and Step-Size for Hamiltonian Monte Carlo

Chirag Modi
10/28/2024
stat.COcs.LGstat.ML

No official code found. Best implementation: modichirag/AtlasSampler (0 stars, MIT, last commit 2025-07-30).

Abstract

Hamiltonian Monte-Carlo (HMC) and its auto-tuned variant, the No U-Turn Sampler (NUTS) can struggle to accurately sample distributions with complex geometries, e.g., varying curvature, due to their constant step size for leapfrog integration and fixed mass matrix. In this work, we develop a strategy to locally adapt the step size parameter of HMC at every iteration by evaluating a low-rank approximation of the local Hessian and estimating its largest eigenvalue. We combine it with a strategy to similarly adapt the trajectory length by monitoring the no U-turn condition, resulting in an adaptive sampler, ATLAS: adapting trajectory length and step-size. We further use a delayed rejection framework for making multiple proposals that improves the computational efficiency of ATLAS, and develop an approach for automatically tuning its hyperparameters during warmup. We compare ATLAS with state-of-the-art samplers like NUTS on a suite of synthetic and real world examples, and show that i) unlike NUTS, ATLAS is able to accurately sample difficult distributions with complex geometries, ii) it is computationally competitive to NUTS for simpler distributions, and iii) it is more robust to the tuning of hyperparamters.

View on arXivView PDF

Code Implementations(1)

MIT

Adapt and delay sampler for robust HMC sampling

00Stan, ShellApr 30, 20241 years agoMIT

Similar Papers

Cite this paper

@article{modi2024atlas,
  title  = {ATLAS: Adapting Trajectory Lengths and Step-Size for Hamiltonian Monte Carlo},
  author = {Chirag Modi},
  year   = {2024},
  eprint = {2410.21587},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.21587v1}
}

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/2410.21587.svg)](https://codeofpaper.com/paper/2410.21587)

Discussion