Hoffman 2022 - MEADS - Overview

Summary

Hoffman & Sountsov (2022), Tuning-Free Generalized Hamiltonian Monte Carlo (AISTATS, PMLR 151), propose MEADS (Maximum-Eigenvalue Adaptation of Damping and Step-size): an ensemble-chain adaptation (ECA) scheme that sets every tunable parameter of generalised HMC (step size, damping, slice drift, diagonal preconditioner) each iteration from cross-chain statistics, without perturbing the stationary distribution and therefore without any “freeze after warmup”. On eight Inference Gym targets it is competitive with NUTS and ChEES-HMC in gradients-to-low-bias, and designed to run 100+ chains on an accelerator.

Overview

Research question. Generalised HMC (GHMC; Horowitz 1991) partially refreshes momentum every iteration, takes as little as one leapfrog step per iteration and relates to underdamped Langevin dynamics, but nobody knew how to tune it automatically: acceptance-rate and squared-jumped-distance heuristics do not transfer because progress is spread over many iterations.

Contributions.

  1. A recipe for parallelisable ensemble-chain adaptation: update many chains at once, each using parameters computed from other chains, while preserving the correct stationary distribution (Hoffman 2022 - Ensemble-Chain Adaptation and Parallelism).
  2. Heuristics for step size, damping and slice drift for GHMC with Neal’s (2020) persistent slice scheme, plus ECA preconditioning (Hoffman 2022 - MEADS Heuristics - Step Size, Damping, Drift and Eigenvalue Estimation).
  3. A largest-eigenvalue estimator from noisy low-rank estimates: .
  4. Empirical comparison with ChEES-HMC and NUTS (Hoffman 2022 - MEADS - Experiments and Ablations).

Key results. MEADS needs fewer gradients than NUTS to reach low bias on most targets (for example sparse logistic regression: 510 vs 2616 gradients to squared bias ), is comparable with ChEES-HMC, and its performance is insensitive to its three user-facing constants.

Source Map

Paper sectionContentNote
Abstract, 1 IntroductionGHMC motivation, contributionsthis note, Hoffman 2022 - GHMC and Neal Persistent Slice Sampling
2.1 Hamiltonian Monte Carloleapfrog, per-dimension step sizeHoffman 2022 - GHMC and Neal Persistent Slice Sampling
2.2 Generalized HMC (eqs 1-2, Algorithm 1)partial momentum refresh, Langevin limit, rejection cost, persistent-MH slice schemeHoffman 2022 - GHMC and Neal Persistent Slice Sampling
2.3 Ensemble-chain adaptation (eq 3, Fig. 1)invariance of product distributionHoffman 2022 - Ensemble-Chain Adaptation and Parallelism
3 Parallelizable ECA (Figs 1-2)K-fold schemeHoffman 2022 - Ensemble-Chain Adaptation and Parallelism
4.1 Diagonal preconditioning, 4.2 Step size (eq 4)scaling, , gradient outer productHoffman 2022 - MEADS Heuristics - Step Size, Damping, Drift and Eigenvalue Estimation
4.3 Damping factor and slice drift (eqs 5-6), , same
4.4 Estimating largest eigenvalues (eq 7, Algorithm 2)ratio estimatorsame
Algorithm 3MEADSsame
5 Efficiency experiments (Tables 1-2, Fig. 3, eq 8)targets, bias, grads/ESSHoffman 2022 - MEADS - Experiments and Ablations
6 DiscussionextensionsHoffman 2022 - MEADS - Experiments and Ablations
Appendix A Ablationsmultiplier, slowdown, foldsHoffman 2022 - MEADS - Experiments and Ablations
Appendix B Bias plotstransient biasHoffman 2022 - MEADS - Experiments and Ablations
Appendix C Eigenvalue estimatorfour spectra, asymptoteHoffman 2022 - MEADS Heuristics - Step Size, Damping, Drift and Eigenvalue Estimation
Appendix D Hogwild dangersXOR exampleHoffman 2022 - Appendix - Hogwild Counterexample and Hessian Identity Proof
Appendix E Proof of eq 4Hessian = outer product of gradientsHoffman 2022 - Appendix - Hogwild Counterexample and Hessian Identity Proof

Motivating PyMC examples

From the PyMC challenges examples page: E86 “GPU ensembles: ChEES-HMC and MEADS on a forest of 20,000 cells” (log-Gaussian Cox process, blackjax ChEES and MEADS, GPU vs CPU timing by chains, size and precision, float32 checks). E12 “The inference frontier” uses the same family of hard high-dimensional targets, including stochastic volatility.

Connections

Relevance to marketing measurement

MEADS-style ensemble samplers matter when a model has to be refit repeatedly on accelerators (e.g. nightly Bayesian MMM refreshes, or many geo-level models fitted in parallel): the algorithm needs no warmup-freeze logic and no hand-tuned trajectory length. The limit the paper itself acknowledges: it assumes many chains are cheap to run, and its guarantees are about stationarity, not about hard funnel geometry.

See Also

Hoffman 2021 - ChEES-HMC - Overview, Betancourt 2015 - HMC for Hierarchical Models - Overview, Efficient MCMC