Accelerating Constrained Sampling: A Large Deviations Approach

Yingli Wang, Changwei Tu, Xiaoyu Wang, Lingjiong ZhuarXiv 2025 · DOI

Introduction

Sampling from complex probability distributions is a fundamental task in Bayesian inference and machine learning. However, many practical applications require sampling from variables restricted to specific regions, known as constrained domains—such as the unit ball, a simplex, or a bounded hypercube. While standard tools like Projected Langevin Monte Carlo (PLMC) provide a baseline for these tasks, they are often limited by their reversible nature, which can lead to slow exploration of the state space.

This paper introduces a theoretical and practical framework for accelerating sampling on constrained domains using non-reversible dynamics. By leveraging Large Deviations Theory (LDP), the authors demonstrate that carefully designed "skew-symmetric" drifts can significantly improve convergence rates and reduce estimator variance compared to traditional reversible methods.

The Problem: The Reversibility Bottleneck

In the context of Markov Chain Monte Carlo (MCMC), reversibility is often a mathematical convenience that ensures a sampler converges to the correct target distribution. However, in physics and stochastic analysis, it is well-understood that non-reversible processes—those incorporating a deterministic "swirl" or skew—can explore a space much faster than their reversible counterparts.

Applying these non-reversible dynamics to constrained domains is historically difficult. The primary challenge lies in the interaction between the non-reversible drift and the boundary of the constraint set. If the "swirl" conflicts with the boundary reflections, the mathematical analysis becomes intractable, and the resulting sampler may become unstable or fail to converge to the desired distribution.

Methodology: Skew-Reflected Non-reversible Langevin Dynamics (SRNLD)

The authors propose Skew-Reflected Non-reversible Langevin Dynamics (SRNLD). This approach modifies the standard Langevin drift by adding a skew-symmetric matrix $J(x)$. The critical innovation of this work is a specific design constraint:

$$J(x)n(x) = 0 \text{ on the boundary } \partial D$$

where $n(x)$ represents the unit vector pointing into the domain. This condition ensures that the non-reversible component of the movement does not push the particle into or away from the boundary. By harmonizing the drift with the boundary normal, the authors simplify complex "oblique" boundary conditions into standard Neumann conditions, making the process mathematically manageable.

Theoretical Framework

To analyze the performance of SRNLD, the authors employ the Large Deviations Principle (LDP). They study the "rate function" of the empirical measure, which quantifies how quickly the probability of the sampler producing an incorrect estimate (one far from the target distribution) decays over time.

Furthermore, the paper utilizes operator theory and the Green-Kubo formula to provide a rigorous proof of variance reduction. They establish that this non-reversible approach reduces the asymptotic variance of time-average estimators, provided the observable being measured is not entirely "blind" to the added skew.

Key Insights

  • Theoretical Speedup: The authors prove that the rate function of the non-reversible sampler can be decomposed into the original reversible rate plus a non-negative "skew" term. This guarantees that the non-reversible version is theoretically at least as fast as, and typically faster than, the reversible baseline.
  • Curvature and Certainty: Theorem 3 in the paper establishes a link between the curvature (sharpness) of the LDP rate function and the actual variance of the sampler. A higher curvature indicates that the sampler concentrates its probability mass faster, leading to more reliable and stable estimates.
  • State-Dependent Dynamics: Experiments suggest that a state-dependent matrix $J(x)$—one that adapts based on the particle's current position—outperforms a constant matrix. This allows the sampler to handle extreme points near the boundary more gracefully.

Experimental Results

The authors validated the SRNLD framework across several benchmarks, ranging from synthetic tests to real-world datasets:

  1. Truncated Multivariate Normal: In sampling from a 3D Gaussian restricted to a unit ball, the proposed method reached the target distribution in significantly fewer iterations than standard PLMC, as measured by the 1-Wasserstein ($W_1$) distance.
  2. Constrained Bayesian Linear Regression: Using synthetic data under disk constraints, the non-reversible sampler achieved a substantially lower Mean Squared Error (MSE) than the reversible baseline for the same computational budget.
  3. Real-World Classification: The method was tested on the MAGIC Gamma Telescope and Titanic datasets for constrained Bayesian logistic regression. In both cases, the non-reversible sampler achieved higher classification accuracy faster and exhibited more stable sampling behavior than traditional methods.

Limitations and Future Work

While the paper provides a robust foundation for non-reversible constrained sampling, several avenues for future research remain. Most experiments focused on relatively simple geometries like spheres or disks; designing optimal skew-symmetric matrices for highly irregular or non-convex constraints is an ongoing challenge. Additionally, while a block-diagonal construction was proposed for higher dimensions, the computational overhead of calculating these matrices in extremely high-dimensional spaces (such as neural network weight spaces) requires further exploration. Finally, while the paper defines the criteria for a valid $J(x)$, a universal rule for selecting the optimal $J(x)$ to maximize acceleration for any given potential function remains to be discovered.

Summary updated

BibTeX
@misc{wang2025accelerating,
  author = {Yingli Wang and Changwei Tu and Xiaoyu Wang and Lingjiong Zhu},
  title = {{Accelerating Constrained Sampling: A Large Deviations Approach}},
  year = {2025},
  eprint = {2506.07816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07816},
}
Figure