Accelerating Discrete Langevin Samplers via Continuous Intermediates

Guangyu Li, Ruqi ZhangProbML Workshop Track 2026

TL;DR

This paper introduces a novel hybrid sampling method, Discrete Langevin Samplers via Continuous Intermediates (cDLS), that accelerates the process of sampling from discrete probability distributions. By temporarily bridging discrete and continuous spaces, cDLS allows for more informed proposals and significantly faster convergence, outperforming existing methods on various challenging benchmarks.

What Problem Does This Paper Address?

Sampling from discrete probability distributions is a fundamental yet challenging task in machine learning. Traditional methods like Gibbs sampling often struggle with efficiency, especially in high-dimensional settings, due to their reliance on single-coordinate updates. While recent gradient-based discrete samplers have shown promise, they remain constrained by the discrete nature of the problem, limiting their ability to fully leverage the underlying smooth geometry of the energy function. This can lead to slow exploration and hinder convergence. The authors aim to bridge this gap by developing a method that can exploit continuous geometric insights while still producing exact discrete samples.

Methods

The core innovation of this paper is the Discrete Langevin Samplers via Continuous Intermediates (cDLS) framework. The key idea is to introduce a continuous exploratory intermediate before each discrete update. Here's how it works:

  1. Continuous Intermediate: Starting from a discrete state $\theta \in \Theta$, the sampler takes a step in continuous space ($\mathbb{R}^d$) guided by the gradient of the energy function. This is achieved by performing a gradient ascent step and then projecting the result onto a convex set $K$ that contains the discrete domain. This step allows the sampler to explore directions that might not be directly accessible in the discrete space.
  2. Discrete Proposal: Using this continuous intermediate $\theta^c$, a discrete proposal $\theta'$ is then constructed. This proposal is centered around $\theta^c$ and incorporates gradient information evaluated at $\theta^c$. The authors propose a specific form for this proposal, which is a discrete Langevin-like distribution.
  3. Discrete Update: The sampler transitions to the new discrete state $\theta'$. The framework includes both an unadjusted version (cDULA) and a Metropolis-Hastings adjusted version (cDMALA) for theoretical guarantees.

This hybrid approach allows the sampler to benefit from the smooth geometry of the continuous space while ensuring that the final samples are from the desired discrete distribution. The method is general and can be integrated with other gradient-based discrete samplers.

Datasets

The authors evaluate their methods on a variety of standard and synthetic datasets, including:

  • Ising Models: Used for both sampling and learning.
  • Restricted Boltzmann Machines (RBMs): Used for sampling and learning, with experiments on MNIST, eMNIST, kMNIST, Fashion, Caltech, and Omniglot datasets.
  • Deep Energy-Based Models (EBMs): Evaluated on various image datasets.
  • Binary Bayesian Neural Networks: Tested on UCI datasets like COMPAS, News, Adult, and Blog.
  • Synthetic Distributions: A custom two-dimensional multimodal distribution was constructed to specifically test exploration capabilities.

Key Insights and Ideas

  • Bridging Discrete and Continuous: The most significant insight is that by temporarily moving into continuous space, discrete samplers can gain a more informed "view" of the energy landscape, leading to better proposals.
  • Geometry-Aware Exploration: The continuous intermediate allows the sampler to follow gradient-aligned directions more effectively, even if these directions don't align with discrete coordinate axes. This is crucial for complex, non-quadratic energy landscapes.
  • Faster Convergence without Sacrificing Accuracy: The method achieves faster convergence and improved effective sample sizes, often outperforming existing methods even without Metropolis-Hastings correction.
  • Stability Improvement: cDLS variants (like cDULA) demonstrate improved stability compared to their purely discrete counterparts (like DULA) when using larger step sizes, preventing divergence.
  • General Applicability: The framework is designed to be general and can accelerate other gradient-based discrete samplers, not just discrete Langevin methods.

Key Results

  • Accelerated Sampling: cDLS methods (cDULA and cDMALA) consistently outperform baseline samplers in terms of effective sample size (ESS) per second and convergence speed (measured by MMD or RMSE). For example, in Ising model sampling, cDULA achieved the largest ESS per second.
  • Improved Accuracy: cDULA achieved competitive or lower RMSE compared to other methods on Ising models.
  • Robustness: The method shows robustness across various datasets and model complexities, including Ising models, RBMs, and Bayesian neural networks.
  • Stability: cDULA demonstrated significantly better stability than DULA when using larger step sizes, as shown in Figure 6.
  • Learning Performance: In learning tasks (RBMs, EBMs, Bayesian NNs), cDLS variants achieved better log-likelihood scores and RMSE, indicating more effective model training. For instance, in RBM learning, cDULA achieved better results than baselines across most datasets.

Limitations and Future Work

  • Fixed Parameter $\alpha_0$: The current implementation uses a fixed parameter $\alpha_0$ for the continuous exploration step across all datasets. The authors suggest that an adaptive strategy for tuning $\alpha_0$ could better balance exploration and stability across different energy landscapes.
  • Informed Proposal Mechanisms: While cDLS improves proposal quality, designing more informed proposal mechanisms tailored to specific discrete domains, potentially leveraging structural priors, remains a valuable future direction.
  • Hyperparameter Tuning: While the method generally performs well, fine-tuning hyperparameters like $\alpha$ and $\alpha_0$ can still be important for optimal performance, especially in challenging scenarios. The authors note that while MH correction can provide theoretical guarantees, it can sometimes lead to more conservative updates.

Summary updated

BibTeX
@inproceedings{li2026accelerating,
  author = {Guangyu Li and Ruqi Zhang},
  title = {{Accelerating Discrete Langevin Samplers via Continuous Intermediates}},
  booktitle = {ProbML Workshop Track},
  year = {2026},
  url = {https://openreview.net/forum?id=Rgs15piXcl},
}
Figure