Exploring Non-Convex Discrete Energy Landscapes: A Langevin-Like Sampler with Replica Exchange

Haoyang Zheng, Ruqi Zhang, Guang Lin · Submission to ICLR 2025 · Withdrawn

TL;DR

Sampling from high-dimensional, multi-modal discrete distributions is notoriously hard because standard discrete Langevin samplers easily become trapped in local minima. This paper introduces DREXEL (Discrete Replica EXchangE Langevin) and its Metropolis-adjusted counterpart DREAM, which pair two parallel discrete Langevin chains at different temperatures and coordinate state swaps using a discrete-specific detailed balance mechanism. Across 2D synthetic landscapes, Ising models, RBMs, and deep energy-based models (EBMs), this approach dramatically accelerates mixing and escapes local traps.

What Problem Does This Paper Address?

In many domains—such as natural language processing, biological sequences, and discrete image representations—we need to sample from unnormalized discrete distributions defined by an energy function: $\pi(\theta) \propto \exp[U(\theta)/\tau]$.

Recent advances adapted continuous Langevin dynamics to discrete domains using Gradient-based Discrete Samplers (GDSs), updating all coordinates simultaneously using local gradient approximations. However, discrete energy landscapes are inherently non-convex, discontinuous, and riddled with narrow, deep energy wells. Because discrete Langevin updates rely on local gradients and small perturbations, they frequently become trapped in local modes. Meanwhile, continuous techniques like decaying step sizes fail in discrete spaces—smaller steps simply cause the sampler to repeatedly propose the same state rather than move smoothly.

Methods

The authors integrate Replica Exchange MCMC (reMCMC) into discrete Langevin sampling:

  1. Dual-Temperature Discrete Dynamics: Two discrete Langevin chains run simultaneously:
  2. A low-temperature chain ($\tau_1, \alpha_1$) designed for fine-grained local exploitation.
  3. A high-temperature chain ($\tau_2, \alpha_2$ with $\tau_2 > \tau_1, \alpha_2 > \alpha_1$) designed for broad exploration and barrier crossing.
  4. Tailored Discrete Swap Mechanism: In continuous sampling, standard swap rates only evaluate current sample energies. In discrete spaces without decaying step sizes, standard swap rules violate detailed balance. The authors introduce a swap function conditioned on both current and previous states: $$\tilde{S}(\theta^{(1)}_{i+1}, \theta^{(2)}_{i+1} \mid \theta^{(1)}_{i}, \theta^{(2)}_{i}) = \exp\left[\left(\frac{1}{\tau_2} - \frac{1}{\tau_1}\right) \Big(U(\theta^{(1)}_{i+1}) + U(\theta^{(1)}_{i}) - U(\theta^{(2)}_{i+1}) - U(\theta^{(2)}_{i})\Big)\right]$$ This design preserves reversibility and detailed balance between replicas.

  5. Two Algorithm Variants:

  6. DREXEL: Uses unadjusted discrete updates (fast, but relies on small step sizes to keep asymptotic bias low).
  7. DREAM: Adds a coordinate-level Metropolis-Hastings (MH) accept/reject step before proposal swapping, eliminating discretization bias.

Datasets

The authors evaluated the algorithms on multiple standard benchmarks:

  • 2D Synthetic Discrete Distributions: Seven synthetic multi-modal landscapes (Wave, 8-Gaussian, 16-Gaussian, Moon, 2-Moons, Twist, and Flower).
  • Physics Models: 2D Lattice Ising Models.
  • Restricted Boltzmann Machines (RBMs): Trained on binary image datasets including MNIST, EMNIST, KMNIST, Fashion-MNIST, Omniglot, and Caltech 101 Silhouettes.
  • Deep Energy-Based Models (EBMs): ResNet-64 architectures trained on Static MNIST, Dynamic MNIST, Omniglot, and Caltech Silhouettes.

Note: No new datasets were introduced.

Key Insights and Ideas

  • Decaying step sizes break in discrete spaces: While annealing continuous step sizes reduces discretization error, shrinking step sizes in discrete spaces prevents state flips entirely. Discrete samplers need fixed or larger step proposals coupled with explicit Metropolis-Hastings acceptance checks.
  • Previous states matter for discrete detailed balance: Directly applying continuous replica exchange formulas introduces transition imbalances in discrete jump processes. Factoring in both current and previous energy states restores exact reversibility on log-quadratic models.
  • Cooperative exploration-exploitation: While the high-temperature chain rejects more proposals due to landing in low-probability zones, it rapidly discovers distant energy wells and passes them to the low-temperature chain, effectively bypassing high energy barriers.

Key Results

  • 2D Multi-modal Landscapes: Standard DMALA missed up to 50% of modes on symmetric multi-modal targets (e.g., 8-Gaussian, 16-Gaussian, Flower). DREAM successfully visited and balanced all modes, achieving the lowest KL divergence (e.g., 0.519 vs. 1.337 on 8-Gaussian; 3.017 vs. 7.690 on 16-Gaussian).
  • Ising Models: DREAM achieved the lowest error in tracking target probabilities ($\log \text{RMSE} = -4.915 \pm 0.096$ vs. $-4.577 \pm 0.099$ for DMALA and $-3.824 \pm 0.075$ for cyclical-step mh-ACS).
  • RBMs: DREAM achieved superior MMD across all six image benchmarks against DMALA, Any-Scale Balanced (AB) samplers, and ACS (e.g., $\log \text{MMD} = -6.002$ vs. $-5.249$ on MNIST).
  • Deep EBMs (Test Log-Likelihood after 50k steps):
  • Dynamic MNIST: DREAM achieved -70.905 vs. -79.411 (DMALA) and -81.144 (DULA).
  • Omniglot: DREAM reached -89.643 vs. -109.095 (DMALA).
  • Caltech Silhouettes: DREAM reached -86.624 vs. -98.554 (DMALA).

Limitations and Future Work

  • Two-Replica Restriction: The current formulation focuses on only two chains (one high, one low temperature). Scaling to a multi-temperature ladder (standard in physical reMCMC) remains unexplored.
  • Lack of Quantitative Mixing Rate Bounds: While the authors theoretically prove asymptotic reversibility and convergence for log-quadratic energies, formal non-asymptotic bounds quantifying the exact spectral gap or swap acceleration factor are left for future theoretical work.

Summary updated

BibTeX
@inproceedings{zheng2026exploring,
  author = {Haoyang Zheng and Ruqi Zhang and Guang Lin},
  title = {{Exploring Non-Convex Discrete Energy Landscapes: A Langevin-Like Sampler with Replica Exchange}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i43.41003},
}
Figure