Skip to main content
QUICK REVIEW

[Paper Review] Automating Involutive MCMC using Probabilistic and Differentiable Programming

Marco Cusumano-Towner, Alexander K. Lew|arXiv (Cornell University)|Jul 20, 2020
Bayesian Methods and Mixture ModelsComputer Science32 references5 citations
TL;DR

This paper presents a method to automatically implement involutive MCMC kernels using probabilistic and differentiable programming, enabling correct and efficient sampling on complex state spaces. By specifying the target and auxiliary distributions as probabilistic programs and the transformation as a differentiable program, the framework automatically computes acceptance probabilities, detects errors, and exploits sparsity for performance gains.

ABSTRACT

Involutive MCMC is a unifying mathematical construction for MCMC kernels that generalizes many classic and state-of-the-art MCMC algorithms, from reversible jump MCMC to kernels based on deep neural networks. But as with MCMC samplers more generally, implementing involutive MCMC kernels is often tedious and error-prone, especially when sampling on complex state spaces. This paper describes a technique for automating the implementation of involutive MCMC kernels given (i) a pair of probabilistic programs defining the target distribution and an auxiliary distribution respectively and (ii) a differentiable program that transforms the execution traces of these probabilistic programs. The technique, which is implemented as part of the Gen probabilistic programming system, also automatically detects user errors in the specification of involutive MCMC kernels and exploits sparsity in the kernels for improved efficiency. The paper shows example Gen code for a split-merge reversible jump move in an infinite Gaussian mixture model and a state-dependent mixture of proposals on a combinatorial space of covariance functions for a Gaussian process.

Motivation & Objective

  • To simplify the implementation of involutive MCMC kernels, which are mathematically powerful but tedious and error-prone to implement manually.
  • To enable automatic computation of acceptance probabilities in MCMC using automatic differentiation on probabilistic program traces.
  • To detect mathematical inconsistencies in involutive MCMC specifications to improve reliability.
  • To optimize performance by exploiting sparsity in the involution transformation.
  • To generalize the approach to complex, structured state spaces common in Bayesian inference, such as combinatorial model spaces.

Proposed method

  • The method defines the target and auxiliary distributions as probabilistic programs executed on a trace-based state space, formalizing execution traces as key-value stores.
  • The involution is encoded as a differentiable program that transforms traces of the probabilistic programs, ensuring bijectivity and differentiability.
  • Automatic differentiation is used to compute the Jacobian determinant required for the Metropolis-Hastings acceptance ratio.
  • The framework detects specification errors by validating that the involution is its own inverse and that the transformation preserves measure-theoretic consistency.
  • Sparsity in the involution is exploited by analyzing which trace elements are modified, reducing computational complexity from O(N³) to O(1) in favorable cases.
  • The approach is implemented in the Gen probabilistic programming system and demonstrated on infinite Gaussian mixture models and Gaussian process covariance structures.

Experimental results

Research questions

  • RQ1Can involutive MCMC kernels be automatically implemented from declarative specifications of target and auxiliary distributions and a differentiable transformation?
  • RQ2How can automatic differentiation be used to correctly compute acceptance probabilities in MCMC with complex, structured state spaces?
  • RQ3What mechanisms can detect mathematical errors in the specification of involutive MCMC kernels, such as incorrect involutions or mismatched densities?
  • RQ4In what cases can sparsity in the involution transformation lead to significant performance improvements in MCMC sampling?
  • RQ5Can this framework generalize to advanced MCMC techniques like state-dependent mixtures and neural proposal networks?

Key findings

  • The framework automatically computes the correct acceptance probability for involutive MCMC by differentiating the trace transformation, eliminating manual Jacobian derivation.
  • The system detects specification errors in involutive MCMC kernels by verifying that the transformation is an involution and that the densities are consistent across traces.
  • By exploiting sparsity in the involution, the method reduces the computational cost of applying the kernel from O(N³) to O(1) in some cases, significantly improving efficiency.
  • The approach successfully implements complex moves such as split-merge reversible jump MCMC in an infinite Gaussian mixture model, with correct acceptance probabilities handled automatically.
  • The method enables efficient state-dependent mixtures of proposals on combinatorial spaces, such as parse trees of covariance functions in Gaussian processes, with automatic probability ratio computation.
  • The implementation in Gen has already been used in real-world applications in computational biology and AI, demonstrating practical utility and extensibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.