A categorical account of the Metropolis-Hastings algorithm
Rob Cornish, Andi Q. Wang
TL;DR
The paper develops a categorical framework for Metropolis-Hastings by embedding MH into Markov and copy-discard categories and then enriching CD categories over commutative monoids to handle the full MH kernel. It provides a synthetic account of invariance, reversibility, and skew-reversibility, including a purely algebraic derivation of the MH balancing condition and a converse, plus an extension to augmented-state and skew-reversible variants. It also establishes an abstract Lebesgue-decomposition toolkit in this setting and shows how it recovers the classical ML/measure-theoretic results for MH-type algorithms. Overall, the work demonstrates that categorical probability can illuminate and generalize core MCMC analyses, with potential applications to a broader class of MH-type samplers and statistical methods.
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.
