Lune

NeurIPS2020Top-tier venue

Hamiltonian Monte Carlo using an adjoint-differentiated Laplace approximation: Bayesian inference for latent Gaussian models and beyond

Charles C. Margossian, Aki Vehtari, Daniel Simpson, Raj Agrawal

Abstract

Gaussian latent variable models are a key class of Bayesian hierarchical models with applications in many fields. Performing Bayesian inference on such models can be challenging as Markov chain Monte Carlo algorithms struggle with the geometry of the resulting posterior distribution and can be prohibitively slow. An alternative is to use a Laplace approximation to marginalize out the latent Gaussian variables and then integrate out the remaining hyperparameters using dynamic Hamiltonian Monte Carlo, a gradient-based Markov chain Monte Carlo sampler. To implement this scheme efficiently, we derive a novel adjoint method that propagates the minimal information needed to construct the gradient of the approximate marginal likelihood. This strategy yields a scalable differentiation method that is orders of magnitude faster than state of the art differentiation techniques when the hyperparameters are high dimensional. We prototype the method in the probabilistic programming framework Stan and test the utility of the embedded Laplace approximation on several models, including one where the dimension of the hyperparameter is ∼\sim6,000. Depending on the cases, the benefits can include an alleviation of the geometric pathologies that frustrate Hamiltonian Monte Carlo and a dramatic speed-up.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Hamiltonian Monte Carlo Inference of Marginalized Linear Mixed-Effects ModelsJinlin Lai, Justin Domke, Daniel R. SheldonNeurIPS 2024 · 2 citations

Builds on1

  1. Robust, Accurate Stochastic Optimization for Variational InferenceAkash Kumar Dhaka, Alejandro Catalina, Michael Riis Andersen, Måns Magnusson et al.NeurIPS 2020 · 39 citations

Related papers

  1. Automatically marginalized MCMC in probabilistic programmingJinlin Lai, Javier Burroni, Hui Guan, Daniel SheldonICML 2023 · 4 citations
  2. Practical and Scalable Hamiltonian Monte Carlo Without the Metropolis TestJakob Robnik, Reuben Cohn-Gordon, Uros SeljakICML 2026 · 5 citations
  3. Structured Stochastic Gradient MCMCAntonios Alexos, Alex J. Boyd, Stephan MandtICML 2022 · 14 citations
  4. Deterministic Langevin Monte Carlo with Normalizing Flows for Bayesian InferenceRichard D. P. Grumitt, Biwei Dai, Uros SeljakNeurIPS 2022 · 15 citations
  5. Surrogate Likelihoods for Variational Annealed Importance SamplingMartin Jankowiak, Du PhanICML 2022 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines