Binary Bouncy Particle Sampler

Ari PakmanarXiv 2017 · DOI

Abstract

The Bouncy Particle Sampler is a novel rejection-free non-reversible sampler for differentiable probability distributions over continuous variables. We generalize the algorithm to piecewise differentiable distributions and apply it to generic binary distributions using a piecewise differentiable augmentation. We illustrate the new algorithm in a binary Markov Random Field example, and compare it to binary Hamiltonian Monte Carlo. Our results suggest that binary BPS samplers are better for easy to mix distributions.

Introduction

Sampling from complex probability distributions is a fundamental task in statistics and machine learning, essential for applications ranging from physics simulations to neural network training. However, discrete binary distributions—where variables take values such as -1 or 1—present unique challenges. Traditional methods like Gibbs sampling often suffer from "random walk" behavior, leading to inefficient exploration of the state space. While Hamiltonian Monte Carlo (HMC) leverages momentum to improve exploration, it was originally designed for smooth, continuous landscapes.

The Bouncy Particle Sampler (BPS) offers a "non-reversible" alternative that maintains a consistent direction of movement. This paper extends BPS to discrete binary spaces by mapping them into a piecewise continuous space, allowing the efficiency of BPS to be applied to binary problems.

Methods

The transition from discrete to continuous is achieved through three key steps:

  1. Core BPS Logic: A particle moves at a constant velocity through a potential energy landscape. It reflects its velocity ("bounces") based on the landscape's gradient.
  2. Piecewise Differentiability: To handle the abrupt jumps in binary distributions, BPS is extended to handle piecewise differentiable landscapes. At boundaries, a Metropolis-style check determines whether the particle crosses or reflects.
  3. Augmentation: Binary variables $s_i$ are associated with continuous variables $y_i$, where $s_i = \text{sign}(y_i)$. Two augmentation potentials are explored:
  4. Gaussian Augmentation: A parabolic potential ($\propto y^2$).
  5. Exponential Augmentation: A V-shaped potential ($\propto |y|$).

Experimental Setup

The algorithm was evaluated using synthetic Binary Markov Random Fields (MRF) across different dimensions ($d=10$ and $d=100$). The "mixing difficulty" was controlled by the standard deviation of interaction coefficients ($\sigma_M$). Higher $\sigma_M$ values create more rugged landscapes, making it harder for samplers to move between modes.

Key Results

The Binary BPS demonstrates significant advantages in "easy-to-mix" scenarios. In low-dimensional settings ($d=10$), the choice of augmentation is critical. As shown in the comparison below, BPS with exponential augmentation excels when the distribution is easy to mix ($\sigma_M = 0.2$). However, as the landscape becomes more rugged ($\sigma_M = 2$), Binary HMC tends to regain its advantage.

Comparison of MSE for $d=10$ in easy-to-mix ($\sigma_M=0.2$) and hard-to-mix ($\sigma_M=2$) regimes.

In higher dimensions ($d=100$), the BPS with Gaussian augmentation shows strong scalability. In low-difficulty regimes, it achieves lower Mean Squared Error (MSE) than Binary HMC for the same computational budget, suggesting that BPS scales well to higher dimensions if the distribution is not too rugged.

MSE comparison for $d=100$ across different interaction strengths ($\sigma_M$).

Conclusion

The primary strength of the Binary BPS lies in its non-reversibility, which allows for more purposeful traversal of the state space compared to random-walk-based methods. While it excels in easy-to-mix regimes and scales well to higher dimensions with appropriate augmentation, it currently struggles with highly rugged distributions. Future work may focus on improving BPS's ability to navigate high-energy barriers and applying this method to other hybrid models, such as "spike-and-slab" regression.

Summary updated

BibTeX
@misc{pakman2017binary,
  author = {Ari Pakman},
  title = {{Binary Bouncy Particle Sampler}},
  year = {2017},
  eprint = {1711.00922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.00922},
}
Figure