NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LEAPS: A discrete neural sampler via locally equivariant networks

Peter Holderrieth, Michael S. Albergo, Tommi Jaakkola

TL;DR

LEAPS (Locally Equivariant discrete Annealed Proactivate Sampler) is a novel algorithm for sampling from complex discrete distributions by learning the transition dynamics of a Continuous-Time Markov Chain (CTMC). By introducing a new architectural property called "local equivariance," the authors bypass traditional computational bottlenecks, achieving massive sample-efficiency speedups over standard annealed importance sampling and discrete MCMC methods.

What Problem Does This Paper Address?

Sampling from discrete probability distributions known only up to a normalization constant is a foundational task in fields like statistical physics (e.g., spin models), biology (protein design), and language modeling.

While continuous-space generative models—like normalizing flows and diffusion models—have revolutionized sampling for continuous data, discrete spaces have lagged behind. Traditional Markov Chain Monte Carlo (MCMC) methods often struggle with slow convergence times when dealing with multimodal distributions (distributions with multiple isolated peaks).

Recent attempts to port continuous transport methods over to discrete spaces using Continuous-Time Markov Chains (CTMCs) have faced a severe scalability bottleneck: computing the training objective typically requires evaluating a neural network for every single "neighboring" state of a given data point. In high-dimensional spaces, this becomes computationally intractable.

Methods

LEAPS overcomes this bottleneck by combining learned measure transport with a continuous-time formulation of Annealed Importance Sampling (AIS) and Sequential Monte Carlo (SMC).

  1. CTMC Transport: The algorithm models the sampling process as a continuous-time Markov chain that evolves a simple, easily sampleable base distribution ($\rho_0$, like a uniform distribution) into the target distribution ($\rho_1$) over a time interval $t \in [0, 1]$.
  2. Proactive Importance Sampling: The authors derive a novel Radon-Nikodym derivative for reverse-time CTMCs. This allows them to compute time-evolving importance weights that mathematically correct for any simulation errors during the transport process.
  3. PINN Objective: The system trains the rate matrix of the CTMC using a physics-informed neural network (PINN) loss function designed to minimize the variance of these importance weights.
  4. Locally Equivariant Networks: To make the PINN objective scalable, the authors introduce the concept of local equivariance. Enforced as an inductive bias directly within the network architecture, it dictates that the probability "flux" transitioning from state $x$ to neighbor $y$ must be the exact negative of the flux from $y$ to $x$.
Figure 2. Visualization of local equivariance. Two tokens T = {−1, +1} and d = 6. Local equivariance means that the “flux” to transition to a neighbor is the negative of the flux of transitioning from that neighbor back.

This mathematical constraint allows the network to compute the entire PINN objective in a single forward pass, rather than evaluating it independently for every neighbor. The authors design custom, locally equivariant versions of Multi-Layer Perceptrons (MLPs), Attention layers (LEA), and Convolutional networks (LEC).

Figure 3. Overview of locally equivariant convolutional neural network architecture.

Datasets

The authors benchmarked LEAPS on high-dimensional problems from statistical physics:

  • The Ising Model: Evaluated on a $15 \times 15$ lattice ($d = 225$ dimensions).
  • The Potts Model: A generalization of the Ising model, also evaluated on a $15 \times 15$ lattice.

To ensure a rigorous comparison against standard discrete samplers, they utilized the DISCS benchmark framework (Goshvadi et al., 2023), which includes algorithms like Gibbs sampling, Random Walk, and Zanella’s informed sampler (GWG).

Key Insights and Ideas

  • Bypassing the Neighbor Bottleneck: The core "aha moment" of the paper is realizing that you don't need to evaluate a neural network $|N(x)|$ times for every neighbor if you bake the conservation of probability flux (local equivariance) directly into the network's structure.
  • The Composition Challenge: Standard equivariant layers can be easily stacked because the composition of two equivariant functions is also equivariant. However, the composition of two locally equivariant functions is not naturally locally equivariant. The authors solved this for their convolutional network (LEC) by dynamically feeding the output of a previous layer into the weights (rather than the activations) of the next layer.
  • Generalizing Classical Methods: The framework proves to be a strict generalization of classical AIS and SMC. If you set the learned rate matrix to zero ($Q_\theta = 0$), LEAPS naturally reduces to a continuous formulation of traditional Annealed Importance Sampling.

Key Results

  • Ising Model at Critical Temperature: In the most challenging physics regime (the critical temperature where states are highly correlated), LEAPS achieved an Effective Sample Size (ESS) of ~68% using only 100 integration steps. Traditional AIS required $10^6$ steps to achieve a comparable ESS.
  • Potts Model: LEAPS achieved an ESS of ~20% in 100 steps, vastly outperforming AIS across all step counts.
  • DISCS Benchmark: When plotted as ESS per function call (accounting for the computational cost of neural network evaluations), LEAPS significantly outperformed all baseline MCMC samplers on both the Ising and Potts models.

Limitations and Future Work

While local equivariance eliminates the need for multiple neural network evaluations, computing the training objective still requires evaluating the target density ratio $\rho_t(y)/\rho_t(x)$ for all neighbors. For many physical models, this is a cheap discrete gradient, but for other applications, it could still scale poorly with dimension $d$.

For future work, the authors suggest:

  1. Developing more expressive and scalable locally equivariant architectures.
  2. Integrating LEAPS with guidance and reward fine-tuning techniques.
  3. Extending the sampler to handle a whole family of distributions simultaneously (conditional sampling) rather than training a model for a single specific target distribution.

Summary updated

BibTeX
@inproceedings{holderrieth2025leaps,
  author = {Peter Holderrieth and Michael S. Albergo and Tommi Jaakkola},
  title = {{LEAPS: A discrete neural sampler via locally equivariant networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Hq2RniQAET},
}
Figure