[Paper Review] Auxiliary-variable Exact Hamiltonian Monte Carlo Samplers for Binary Distributions
This paper introduces exact Hamiltonian Monte Carlo (HMC) samplers for binary distributions by augmenting discrete variables with continuous auxiliary variables, enabling exact integration of Hamiltonian dynamics without step-size tuning. The method achieves superior mixing and efficiency over Metropolis and Gibbs samplers, particularly in spike-and-slab linear and probit regression with truncated parameters.
We present a new approach to sample from generic binary distributions, based on an exact Hamiltonian Monte Carlo algorithm applied to a piecewise continuous augmentation of the binary distribution of interest. An extension of this idea to distributions over mixtures of binary and possibly-truncated Gaussian or exponential variables allows us to sample from posteriors of linear and probit regression models with spike-and-slab priors and truncated parameters. We illustrate the advantages of these algorithms in several examples in which they outperform the Metropolis or Gibbs samplers.
Motivation & Objective
- To develop efficient MCMC sampling for generic binary distributions, which are challenging due to discrete state spaces and poor mixing in standard MCMC methods.
- To extend exact HMC to mixed binary-continuous models, particularly for Bayesian linear and probit regression with spike-and-slab priors.
- To enable sampling from posteriors with parameter truncations (e.g., positivity constraints) while maintaining exact Hamiltonian dynamics.
- To eliminate the need for step-size tuning in HMC by ensuring exact integration of equations of motion through piecewise quadratic potentials.
- To demonstrate improved sampling efficiency and convergence over existing methods like Metropolis and Gibbs samplers in high-dimensional binary and mixed models.
Proposed method
- Augment the binary distribution $ p({\bf s}) $ with continuous variables $ {\bf y} \in \mathbb{R}^d $, where $ s_i = \text{sign}(y_i) $, transforming the discrete problem into a continuous one.
- Define a joint distribution $ p({\bf y}) $ that is piecewise Gaussian, with log-density quadratic in $ {\bf y} $ within each orthant defined by the signs of $ {\bf y} $.
- Construct a Hamiltonian $ H({\bf y}, {\bf q}) = U({\bf y}) + \frac{1}{2} {\bf q} \cdot {\bf q} $, where $ U({\bf y}) $ is the negative log-joint density, enabling exact solution of the equations of motion.
- Integrate the Hamiltonian dynamics exactly using trigonometric solutions: $ y_i(t) = y_i(0)\cos(t) + q_i(0)\sin(t) $, valid within each orthant.
- Handle discontinuities at $ y_i = 0 $ via momentum jumps enforced by energy conservation, with $ q_i^2(t_j^+) = \Delta_j + q_i^2(t_j^-) $, where $ \Delta_j $ accounts for potential energy jumps across sign changes.
- Extend the method to mixed binary-Gaussian models by introducing auxiliary variables for both binary and continuous parameters, with separate Hamiltonians for each component and mass matrices adapted to orthants.
Experimental results
Research questions
- RQ1Can exact HMC be applied to binary distributions by constructing an auxiliary continuous augmentation with piecewise quadratic log-likelihood?
- RQ2Does the absence of step-size tuning in the proposed HMC method lead to improved mixing and convergence in binary sampling problems?
- RQ3Can the exact HMC framework be extended to mixed binary-continuous models, such as spike-and-slab regression with truncated parameters?
- RQ4How does the performance of the proposed sampler compare to Metropolis and Gibbs samplers in terms of effective sample size and convergence speed?
- RQ5What is the impact of parameter truncations (e.g., positivity constraints) on the dynamics and efficiency of the sampling algorithm?
Key findings
- The proposed method achieves exact Hamiltonian dynamics with no step-size tuning, resulting in 100% acceptance rate for all proposed moves due to energy conservation.
- In binary distributions, the sampler outperforms Metropolis and Gibbs samplers in terms of effective sample size and convergence speed, particularly in high-dimensional settings.
- For spike-and-slab linear regression with truncated parameters, the method enables efficient posterior sampling by transforming the mixed discrete-continuous problem into a continuous one with piecewise quadratic potentials.
- The algorithm successfully handles parameter truncations by reflecting velocities elastically at boundaries, similar to truncated Gaussian sampling techniques.
- The use of auxiliary variables $ {\bf y} $ to represent binary variables via sign constraints allows the application of exact HMC to models where standard HMC is inapplicable due to non-smooth targets.
- Empirical results show consistent improvements in sampling efficiency, with faster mixing and lower autocorrelation compared to baseline MCMC methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.