Lune

ICML2021Top-tier venue

Nonparametric Hamiltonian Monte Carlo

Carol Mak, Fabian Zaiser, Luke Ong

Abstract

Probabilistic programming uses programs to express generative models whose posterior probability is then computed by built-in inference engines. A challenging goal is to develop general purpose inference algorithms that work out-of-the-box for arbitrary programs in a universal probabilistic programming language (PPL). The densities defined by such programs, which may use stochastic branching and recursion, are (in general) nonparametric, in the sense that they correspond to models on an infinite-dimensional parameter space. However standard inference algorithms, such as the Hamiltonian Monte Carlo (HMC) algorithm, target distributions with a fixed number of parameters. This paper introduces the Nonparametric Hamiltonian Monte Carlo (NP-HMC) algorithm which generalises HMC to nonparametric models. Inputs to NP-HMC are a new class of measurable functions called "tree representable", which serve as a language-independent representation of the density functions of probabilistic programs in a universal PPL. We provide a correctness proof of NP-HMC, and empirically demonstrate significant performance improvements over existing approaches on several nonparametric examples.

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.

5 top-tier papers have 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

  • Rethinking Variational Inference for Probabilistic Programs with Stochastic Support cites Divide, Conquer, and Combine: a New Inference Strategy for Probabilistic Programs with Stochastic Support
  • Rethinking Variational Inference for Probabilistic Programs with Stochastic Support cites Guaranteed bounds for posterior inference in universal probabilistic programming
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Guaranteed bounds for posterior inference in universal probabilistic programmingRaven Beutner, C.-H. Luke Ong, Fabian ZaiserPLDI 2022 · 18 citations
  2. Hamiltonian Descent Algorithms for Optimization: Accelerated Rates via Randomized Integration TimeQiang Fu, Andre WibisonoNeurIPS 2025 · 6 citations
  3. Rethinking Variational Inference for Probabilistic Programs with Stochastic SupportTim Reichelt, Luke Ong, Thomas RainforthNeurIPS 2022 · 3 citations
  4. Bayesian Separation Logic: A Logical Foundation and Axiomatic Semantics for Probabilistic ProgrammingShing Hin Ho, Nicolas Wu, Azalea RaadPOPL 2026 · 2 citations
  5. Nonparametric Involutive Markov Chain Monte CarloCarol Mak, Fabian Zaiser, Luke OngICML 2022 · 2 citations

Builds on2

  1. Mixed Hamiltonian Monte Carlo for Mixed Discrete and Continuous VariablesGuangyao ZhouNeurIPS 2020 · 25 citations
  2. Divide, Conquer, and Combine: a New Inference Strategy for Probabilistic Programs with Stochastic SupportYuan Zhou, Hongseok Yang, Yee Whye Teh, Tom RainforthICML 2020 · 20 citations

Related papers

  1. Automatically marginalized MCMC in probabilistic programmingJinlin Lai, Javier Burroni, Hui Guan, Daniel SheldonICML 2023 · 4 citations
  2. Probabilistic Programming with Stochastic ProbabilitiesAlexander K. Lew, Matin Ghavamizadeh, Martin C. Rinard, Vikash K. MansinghkaPLDI 2023 · 9 citations
  3. Programmable MCMC with Soundly Composed Guide ProgramsLong Pham, Di Wang, Feras A. Saad, Jan HoffmannOOPSLA 2024 · 1 citation
  4. Incremental Computation for Efficient Programmable Inference in Probabilistic ProgramsFabian Zaiser, Jack Czenszak, Martin C. Rinard, Vikash K. Mansinghka et al.PLDI 2026
  5. Trace types and denotational semantics for sound programmable inference in probabilistic languagesAlexander K. Lew, Marco F. Cusumano-Towner, Benjamin Sherman, Michael Carbin et al.POPL 2020 · 30 citations
Dusk over the sea between two cliffs drawn in fine vertical lines