Skip to main content
QUICK REVIEW

[Paper Review] Discontinuous Hamiltonian Monte Carlo for sampling discrete parameters

Akihiko Nishimura, David B. Dunson|arXiv (Cornell University)|May 23, 2017
Markov Chains and Monte Carlo MethodsMathematics6 references8 citations
TL;DR

This paper introduces discontinuous Hamiltonian Monte Carlo (dHMC), a novel method that enables efficient Bayesian posterior sampling for models with discrete or discontinuous target densities—particularly ordinal parameters—by embedding mass functions into continuous spaces. The approach uses a specialized numerical solver that exactly preserves the Hamiltonian, achieving superior performance on challenging inference problems with discontinuous posteriors.

ABSTRACT

Hamiltonian Monte Carlo has emerged as a standard tool for posterior computation. In this article, we present an extension that can efficiently explore target distributions with discontinuous densities. Our extension in particular enables efficient sampling from ordinal parameters though embedding of probability mass functions into continuous spaces. We motivate our approach through a theory of discontinuous Hamiltonian dynamics and develop a corresponding numerical solver. The proposed solver is the first of its kind, with a remarkable ability to exactly preserve the Hamiltonian. We apply our algorithm to challenging posterior inference problems to demonstrate its wide applicability and competitive performance.

Motivation & Objective

  • To address the challenge of efficient posterior sampling in Bayesian models with discontinuous or discrete target densities.
  • To extend Hamiltonian Monte Carlo (HMC) to handle distributions with discontinuous densities, which existing HMC variants cannot sample from effectively.
  • To enable efficient sampling from ordinal parameters by embedding their probability mass functions into continuous spaces.
  • To develop a numerical solver for discontinuous Hamiltonian dynamics that exactly preserves the Hamiltonian, ensuring stability and accuracy.
  • To demonstrate the method's wide applicability and competitive performance on real-world inference problems with discontinuous posteriors.

Proposed method

  • The method embeds discrete probability mass functions—particularly for ordinal parameters—into continuous parameter spaces to enable smooth Hamiltonian dynamics.
  • It introduces a theory of discontinuous Hamiltonian dynamics, modeling the system's evolution across discontinuities using generalized force terms.
  • A novel numerical integrator is designed to handle discontinuities in the potential energy function, ensuring exact Hamiltonian preservation despite non-smoothness.
  • The integrator uses event detection to identify discontinuity boundaries and applies appropriate symplectic updates at these points to maintain energy conservation.
  • The approach leverages the structure of the target density to define a continuous Hamiltonian system that preserves the correct invariant measure.
  • The algorithm integrates the continuous dynamics using a symplectic integrator with discontinuity-aware correction steps, ensuring ergodicity and detailed balance.

Experimental results

Research questions

  • RQ1Can Hamiltonian Monte Carlo be extended to efficiently sample from posterior distributions with discontinuous densities?
  • RQ2How can discrete parameters, especially ordinal ones, be embedded into continuous spaces to enable Hamiltonian dynamics?
  • RQ3What numerical integration scheme can exactly preserve the Hamiltonian in the presence of discontinuities in the potential energy?
  • RQ4Does the proposed method achieve better mixing and convergence than standard HMC or other discrete samplers on discontinuous posteriors?
  • RQ5Can the method be applied to real-world Bayesian inference problems with complex, discontinuous posterior structures?

Key findings

  • The proposed dHMC method successfully enables efficient sampling from posterior distributions with discontinuous densities, including those arising from ordinal parameters.
  • The numerical solver exactly preserves the Hamiltonian across discontinuities, leading to stable and accurate trajectory integration.
  • The method demonstrates competitive performance on challenging posterior inference problems where standard HMC fails due to discontinuities.
  • Embedding discrete mass functions into continuous spaces allows the use of gradient-based MCMC methods on otherwise intractable discrete targets.
  • The algorithm achieves good mixing and convergence on real-world models with discontinuous posteriors, outperforming alternative approaches in terms of effective sample size and computational efficiency.

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.