Non-Reversible Langevin Algorithms for Constrained Sampling

Hengrong Du, Qi Feng, Changwei Tu, Xiaoyu Wang, Lingjiong ZhuarXiv 2025 · DOI

Abstract

Sampling from probability distributions restricted to constrained domains is a fundamental challenge in Bayesian statistics and machine learning. Traditional methods, such as Projected Langevin Monte Carlo (PLMC), rely on reversible dynamics that often exhibit slow convergence due to their random-walk nature. This paper introduces Skew-Reflected Non-Reversible Langevin Dynamics (SRNLD), a novel framework that accelerates convergence by breaking reversibility. By incorporating a non-reversible drift and a specialized "skew-reflection" at the boundary, the authors prove that their algorithm maintains the correct stationary distribution while exploring the space more efficiently. Experimental results on synthetic and real-world datasets demonstrate that SRNLD significantly outperforms standard reversible samplers.

Introduction

Sampling from a target distribution $\pi(x) \propto \exp(-f(x))$ is essential for many applications, yet real-world parameters are often subject to constraints—such as positivity requirements for weights or boundary limits for physical parameters. Standard tools like Projected Langevin Monte Carlo (PLMC) handle these constraints by "bouncing" the sampler back into the valid region via normal projections. However, PLMC is based on reversible dynamics, which can be slow to mix.

In unconstrained settings, researchers have long utilized non-reversible components—deterministic drifts or "swirls"—to speed up convergence. The primary challenge in constrained settings is ensuring that these non-reversible boosts do not bias the sampler. This paper addresses how to integrate non-reversible dynamics with boundary constraints without compromising the mathematical guarantee that the system will converge to the intended distribution.

Methodology

The authors propose a new continuous-time stochastic differential equation (SDE) termed SRNLD and its discrete-time implementation, SRNLMC.

1. Non-Reversibility via the $J$ Matrix

The standard Langevin drift is modified by adding an anti-symmetric matrix $J$. This addition introduces a rotational force to the particle's trajectory, helping the sampler navigate the domain more effectively than a purely gradient-based approach.

2. The Skew-Reflection

The core innovation of this work is the skew-reflection vector $\nu^J$. In standard constrained sampling, a particle hitting a boundary is reflected normally (at a 90-degree angle). In SRNLD, the reflection angle is specifically tuned to the $J$ matrix. This "skewed" reflection is mathematically derived to ensure that the target Gibbs distribution remains the unique stationary distribution of the system, compensating for the non-reversible drift.

3. Skew-Projection Algorithm

To translate this into a practical algorithm, the authors developed a skew-projection operator. When a discrete step in the SRNLMC algorithm lands outside the constraint set, the algorithm projects the point back into the feasible region along a path parallel to the skew-reflection vector, rather than simply finding the closest point.

Theoretical Insights

The paper provides several key theoretical contributions:

  • Spectral Gap Enhancement: The authors prove that the spectral gap (a measure of convergence speed) of the non-reversible process is always at least as large as that of the reversible version. In practice, this gap is often significantly larger, leading to faster mixing.
  • Non-Asymptotic Guarantees: The work provides explicit, non-asymptotic bounds for both Total Variation (TV) and 1-Wasserstein distances. They derive an iteration complexity of $\tilde{\mathcal{O}}(\frac{d^{10}}{\epsilon^8})$. While the dimension dependency is high, the improved spectral gap $\rho_J$ ensures superior wall-clock performance compared to state-of-the-art reversible samplers.

Experimental Results

The authors evaluated SRNLMC and its stochastic variant, SRNSGLD, against traditional methods across several benchmarks:

  • Synthetic Tests: In experiments involving 3D truncated multivariate normal distributions and constrained Bayesian linear regression on a 2D unit disk, SRNLMC achieved lower 1-Wasserstein distances to the target distribution in significantly fewer iterations than PLMC.
  • Real-World Applications: The algorithm was tested on the MAGIC Gamma Telescope dataset ($d=10$) and the Titanic dataset ($d=8$). In both cases, the stochastic version (SRNSGLD) reached peak classification accuracy much faster than the standard Projected Stochastic Gradient Langevin Dynamics (PSGLD).

Conclusion and Limitations

SRNLD represents a significant step forward in constrained sampling, demonstrating that non-reversibility can be effectively harnessed even in the presence of boundaries. However, some limitations remain:

  • Convexity: The current theoretical framework requires the constraint set to be convex.
  • Parameter Selection: While any anti-symmetric matrix $J$ provides a benefit, a general recipe for choosing the optimal $J$ for a specific target function $f(x)$ is still an open question.
  • High-Dimensional Scaling: Future work is needed to refine the $d^{10}$ complexity bound for extremely high-dimensional problems.

Summary updated

BibTeX
@misc{du2025non,
  author = {Hengrong Du and Qi Feng and Changwei Tu and Xiaoyu Wang and Lingjiong Zhu},
  title = {{Non-Reversible Langevin Algorithms for Constrained Sampling}},
  year = {2025},
  eprint = {2501.11743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.11743},
}
Figure