Contour Monte Carlo: Sampling via Energy Level Sets
Varun Jain ⋅ Hong Ge
Abstract
Efficient sampling from complex probability distributions is a fundamental task in statistics and machine learning. Markov chain Monte Carlo (MCMC) remains one of the most widely used tools for this. However, even state-of-the-art samplers, such as the NUTS implementations in Stan and Turing.jl, can converge slowly on ill-conditioned, heavy-tailed, or near-degenerate targets. We identify that sampling error can be decomposed into two terms: mismatch in the potential energy (PE) marginal, and average conditional mismatch across PE level sets. We propose *Contour Monte Carlo (CMC)*, which corrects each of these in turn: first by drawing energies $u_i$ from the PE marginal, and then by sampling states on the corresponding level sets. For a broad family of radial targets, including the Gaussian and Student's $t$ distributions, both stages admit closed-form draws, so CMC is exact and requires no Markov chain. Beyond this, for general targets, we estimate the PE marginal using umbrella sampling with MBAR, then run constrained MCMC on the sampled level sets, initialised from energy-matched umbrella samples (which tend to lie in regions of high conditional mass). These level-set chains are embarrassingly parallel, and therefore well-suited to modern accelerator hardware. Across a broad suite of benchmarks spanning synthetic targets and real-world inference problems (several of which are drawn from `posteriordb`), we demonstrate that CMC achieves substantially faster convergence than HMC and NUTS baselines on geometrically challenging targets.
Successful Page Load