The Coupled Rejection Sampler

Adrien Corenflos, Simo SärkkäarXiv 2022 · DOI

Abstract

We propose a coupled rejection-sampling method for sampling from couplings of arbitrary distributions. The method relies on accepting or rejecting coupled samples coming from dominating marginals. Contrary to existing acceptance-rejection coupling methods, the variance of the execution time of the proposed method is limited and stays finite as the two target marginals approach each other in the sense of the total variation norm. In the important special case of coupling multivariate Gaussians, we derive positive lower bounds for the resulting coupling probability and show how the method can be optimized in closed form. Finally, we demonstrate how an ensemble of proposals can asymptotically recover a maximal coupling, with applications to rare event sampling, particle filtering, and unbiased MCMC.

Introduction

In computational statistics and machine learning, coupling is a fundamental technique used to construct two random variables, $X$ and $Y$, on a shared probability space such that $X \sim p$ and $Y \sim q$. The primary objective is often to achieve a "maximal coupling," where the probability $P(X = Y)$ is maximized. This is particularly critical for "unbiased Markov Chain Monte Carlo (MCMC)," a framework that allows for exact estimation by running two chains until they meet.

However, traditional coupling algorithms, such as Thorisson’s algorithm, face a significant computational hurdle. As the target distributions $p$ and $q$ become increasingly similar, the variance of the time required to generate a sample can explode to infinity. In the era of parallel computing and GPUs, this lack of predictability is a major bottleneck; a single "rogue" sample taking orders of magnitude longer than others can stall an entire parallel process. This paper introduces the Coupled Rejection Sampler, designed to provide stable, finite-variance execution times suitable for modern hardware.

Methodology

1. The Coupled Rejection Sampler (Algorithm 1)

The core innovation is a rejection sampling framework that utilizes a "dominating" proposal distribution—one that covers the support of both $p$ and $q$. By employing a shared random seed and specific acceptance/rejection logic, the algorithm ensures that if the proposal samples are identical, the accepted samples $X$ and $Y$ have a high probability of remaining equal.

Unlike previous methods, the expected number of iterations is bounded by the maximum of the two marginal rejection samplers. This prevents the infinite variance issue seen in Thorisson-style algorithms, trading absolute maximality for computational stability.

2. The Ensemble Coupled Rejection Sampler (Algorithm 2)

To bridge the gap between the stable sub-maximal coupling and the theoretical limit of maximal coupling, the authors introduce an ensemble approach. By using $N$ proposals simultaneously, the method asymptotically recovers the maximal coupling as $N \to \infty$. This is particularly effective on GPUs, where the marginal cost of processing multiple proposals (e.g., $N=64$) is often negligible compared to a single proposal.

3. Optimization for Multivariate Gaussians

The paper provides a rigorous treatment of multivariate Gaussians with differing means and covariances. The authors derive a closed-form solution to determine the optimal proposal covariance matrix using convex optimization. This ensures the highest possible coupling probability for a fixed computational budget and provides new upper bounds for the Total Variation (TV) distance between Gaussians in high dimensions.

Experimental Evaluation

The proposed methods were evaluated across several challenging benchmarks:

  • Gaussian Tails: In experiments sampling from the extreme tails of normal distributions, the Coupled Rejection Sampler maintained flat, limited run times even as the distributions approached one another. In contrast, traditional methods exhibited a sharp spike in execution variance.
  • Unbiased MCMC (Heart Disease Dataset): Using a real-world binary regression dataset, the algorithm was integrated into a Manifold Metropolis-Adjusted Langevin Algorithm (mMALA). The ensemble version ($N=64$) achieved a mean meeting time of 5.8 steps, significantly outperforming the previous state-of-the-art "full-kernel coupling," which required 7.5 steps.
  • Hardware Efficiency: On GPU architectures, the ensemble method demonstrated superior wall-clock performance. In 10-dimensional tests, the ability to process ensembles in parallel allowed the sampler to reach high coupling probabilities much faster than sequential alternatives.

Key Insights and Conclusion

The Coupled Rejection Sampler represents a paradigm shift from seeking "perfect" coupling at any cost to seeking "stable" coupling for practical utility. By accepting a sub-maximal coupling in exchange for finite variance, the method becomes highly robust for parallelized MCMC and particle filtering.

While the current optimization logic is most mature for Gaussian distributions, the underlying framework is general. Future work may extend these optimized dominating proposals to heavy-tailed distributions and explore the integration of Optimal Transport theory to further refine how indices are coupled within the ensemble. Ultimately, this work provides a vital tool for making unbiased MCMC methods scalable and reliable on modern high-performance computing hardware.

Summary updated

BibTeX
@misc{corenflos2022coupled,
  author = {Adrien Corenflos and Simo Särkkä},
  title = {{The Coupled Rejection Sampler}},
  year = {2022},
  eprint = {2201.09585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.09585},
}
Figure