A Categorical Account of the Metropolis-Hastings Algorithm
Rob Cornish, Andi Q. Wang
Abstract
Metropolis-Hastings (MH) is a foundational Markov chain Monte Carlo (MCMC) algorithm. In this paper, we ask whether it is possible to formulate and analyse MH in terms of categorical probability, using a recent involutive framework for MH-type procedures as a concrete case study. We show how basic MCMC concepts such as invariance and reversibility can be formulated in Markov categories, and how one part of the MH kernel can be analysed using standard CD categories. To go further, we then study enrichments of CD categories over commutative monoids. This gives an expressive setting for reasoning abstractly about a range of important probabilistic concepts, including substochastic kernels, finite and σ-finite measures, absolute continuity, singular measures, and Lebesgue decompositions. Using these tools, we give synthetic necessary and sufficient conditions for a general MH-type sampler to be reversible with respect to a given target distribution.
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.
Lineage
Builds on3
- Involutive MCMC: a Unifying FrameworkKirill Neklyudov, Max Welling, Evgenii Egorov, Dmitry P. VetrovICML 2020 · 40 citations
- Probabilistic Programming Interfaces for Random Graphs: Markov Categories, Graphons, and Nominal SetsNathanael L. Ackerman, Cameron E. Freer, Younesse Kaddar, Jacek Karwowski et al.POPL 2024 · 3 citations
- AutoStep: Locally adaptive involutive MCMCTiange Liu, Nikola Surjanovic, Miguel Biron-Lattes, Alexandre Bouchard-Côté et al.ICML 2025
Related papers
- Ai-sampler: Adversarial Learning of Markov kernels with involutive mapsEvgenii Egorov, Riccardo Valperga, Stratis GavvesICML 2024 · 2 citations
- Random Variables, Conditional Independence and Categories of Abstract Sample SpacesDario SteinLICS 2025 · 2 citations
- Probability monads with submonads of deterministic statesSean K. Moss, Paolo PerroneLICS 2022 · 4 citations
- Nonparametric Involutive Markov Chain Monte CarloCarol Mak, Fabian Zaiser, Luke OngICML 2022 · 2 citations
- Evidential Decision Theory via Partial Markov CategoriesElena Di Lavore, Mario RománLICS 2023 · 7 citations
