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

LEAPS: A discrete neural sampler via locally equivariant networks

Peter Holderrieth, Michael Samuel Albergo, Tommi Jaakkola

Introduction

Sampling from high-dimensional discrete probability distributions is a foundational challenge in statistical physics, chemistry, and machine learning. Whether modeling spin systems, protein folding, or complex language structures, researchers often encounter distributions where the "potential" (energy) is known, but the normalization constant (partition function) is computationally intractable.

Standard approaches like Markov Chain Monte Carlo (MCMC) frequently struggle with slow convergence, particularly in distributions characterized by multiple isolated modes. While Annealed Importance Sampling (AIS) offers a path forward by gradually transforming a simple distribution into the target, it typically requires an immense number of steps to maintain manageable variance in importance weights. LEAPS (Locally Equivariant discrete Annealed Proactive Sampler) addresses these bottlenecks by framing sampling as a transport problem governed by a learned Continuous-Time Markov Chain (CTMC).

The LEAPS Framework

LEAPS treats the sampling process as a dynamic evolution. Instead of relying on a fixed, hand-crafted sampling rule, the algorithm learns a time-dependent "rate matrix" that dictates how samples jump through the discrete state space to reach the target distribution. This approach is built on four primary pillars:

1. Proactive Importance Sampling

LEAPS introduces a novel importance sampling scheme based on Radon-Nikodym derivatives. This "proactive" method anticipates the chain's jumps, allowing for the calculation of weights that correct for errors in the neural network's learned dynamics. A key theoretical advantage is that if the network perfectly learns the transport, the variance of these weights collapses to zero.

2. The PINN Objective

The model is trained using a Physics-Informed Neural Network (PINN) loss. This objective encourages the learned rates to satisfy the Kolmogorov Forward Equation, the fundamental mathematical description of how probability mass flows over time. This "off-policy" training allows the model to learn from samples generated by any reference distribution, rather than being restricted to its own current trajectories.

3. Locally Equivariant Architectures

The most significant technical hurdle in discrete neural sampling is the $O(d)$ cost of evaluating every neighbor of a state to calculate the "flux" (the rate of jumping). In high dimensions, this becomes a computational nightmare. LEAPS overcomes this by introducing Locally Equivariant architectures, specifically:

  • LEC (Locally Equivariant Convolutional) networks.
  • LEA (Locally Equivariant Attention) layers.

These architectures constrain the flux from state $x$ to $y$ to be the negative of the flux from $y$ to $x$. This symmetry allows the training objective to be computed in a single forward pass, ensuring the algorithm scales efficiently to high-dimensional data without sacrificing the network's expressive power.

Experimental Results

The authors evaluated LEAPS against classic challenges in statistical physics, including the Ising model (a 225-dimensional lattice) and the Potts model, as well as the standardized DISCS benchmark suite.

Efficiency and Speed

On the Ising model, LEAPS demonstrated a massive efficiency boost. It achieved an Effective Sample Size (ESS) of approximately 68% in just 100 integration steps. To reach a comparable level of performance, traditional AIS required 1,000,000 steps. Even when accounting for the computational overhead of neural network evaluations (NFEs), LEAPS significantly outperformed standard MCMC methods like Gibbs sampling and Random Walk.

Physical Fidelity

Beyond raw speed, LEAPS accurately captured complex physical observables. Qualitative analysis showed that the sampler could recover the 2-point correlation function and magnetization histograms even at "critical" temperatures—the points where physical systems undergo phase transitions and sampling is notoriously difficult due to long-range correlations.

Discussion and Future Work

LEAPS represents a "strict generalization" of AIS; if the neural network fails to learn, the algorithm defaults to a continuous-time version of AIS. Any learning progress directly translates into increased sampling efficiency.

However, some limitations remain. The current implementation relies on an iterative Euler scheme for simulation, which may require more sophisticated integration techniques for extremely complex distributions. Additionally, while LEC and LEA layers are effective, composing them into deeper hierarchical structures is non-trivial, as the locally equivariant property is not automatically preserved through standard composition.

Future research directions include the development of "foundation samplers"—models trained to generalize across a family of distributions (such as varying temperatures) without requiring retraining for every specific target. By combining the structural constraints of local equivariance with the flexibility of neural transport, LEAPS sets a new benchmark for efficient discrete sampling.

Summary updated

BibTeX
@inproceedings{holderrieth2025leaps,
  author = {Peter Holderrieth and Michael Samuel 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