Sampling two-dimensional spin systems with transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2022Generative Adversarial Networkscited by 5,603
- 2015MADE: Masked Autoencoder for Distribution Estimationcited by 306
- 2019Flow-based generative models for Markov chain Monte Carlo in lattice field theorycited by 147
- 2018Solving Statistical Mechanics Using Variational Autoregressive Networkscited by 99
- 2023Normalizing flows for lattice gauge theory in arbitrary space-time dimensioncited by 23
- 2022Hierarchical autoregressive neural networks for statistical systemscited by 12
- 2023The autoregressive neural network architecture of the Boltzmann distribution of pairwise interacting spins systemscited by 8
- 2022Simulating first-order phase transition with hierarchical autoregressive networkscited by 5
- 2025Multilevel Generative Samplers for Investigating Critical Phenomenacited by 5
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Variational Autoregressive Networks with probability priorscited by 0
- 2026Fixed-point neural samplers on discrete spacescited by 0
- 2026Fixed-point neural samplers on discrete spaces1 Oct 2026
- 2026Variational Autoregressive Networks with probability priors15 May 2026