mlsanityData to 7 Oct 2026

Sampling two-dimensional spin systems with transformers

arXiv 2604.27738 ↗First posted 30 Apr 2026cond-mat.dis-nn cond-mat.stat-mech cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Autoregressive Neural Networks based on dense or convolutional layers have recently been shown to be a viable strategy for generating classical spin systems. Unlike these methods, sampling with transformers is commonly considered to be computationally inefficient. In this work, we propose a novel approach to transformer-based neural samplers in which we generate not a single spin per step but groups of spins. As an additional improvement, we construct a model of approximated probabilities, further improving the efficiency of the algorithm. Despite our approach being computationally heavier than dense networks or CNN-based approaches, we were able to sample larger systems of up to 180 × 180 spins in case of the Ising model. The Effective Sample Size of our sampler is ~ 20 times larger than that of the previous state-of-the-art neural sampler when trained for the 128 × 128 Ising model at critical temperature. Finally, we also test our algorithm on the 2D Edwards-Anderson model, where we train 64× 64 spin systems.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 15 of its 28 references that are in the map. First posted on arXiv 30 Apr 2026.

Builds on

15 of 28 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2022Generative Adversarial Networkscited by 5,603
  5. 2015MADE: Masked Autoencoder for Distribution Estimationcited by 306
  6. 2019Flow-based generative models for Markov chain Monte Carlo in lattice field theorycited by 147
  7. 2018Solving Statistical Mechanics Using Variational Autoregressive Networkscited by 99
  8. 2023Normalizing flows for lattice gauge theory in arbitrary space-time dimensioncited by 23
  9. 2022Hierarchical autoregressive neural networks for statistical systemscited by 12
  10. 2023The autoregressive neural network architecture of the Boltzmann distribution of pairwise interacting spins systemscited by 8
  11. 2022Simulating first-order phase transition with hierarchical autoregressive networkscited by 5
  12. 2025Multilevel Generative Samplers for Investigating Critical Phenomenacited by 5
3 more
  1. 2023Mutual information of spin systems from autoregressive neural networkscited by 4
  2. 2025Hierarchical autoregressive neural networks in three-dimensional statistical systemcited by 3
  3. 2025Estimation of the reduced density matrix and entanglement entropies using autoregressive networkscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.