Sampling the XY model with an attention-based neural network

Piotr Białas, Christian D. Morales, Tomasz Stebel, Dawid Zapolski
10/16/2026
cond-mat.dis-nncond-mat.stat-mechcs.LG

No confident code implementation found for this paper.

Abstract

We present a transformer-based variational autoregressive network for sampling lattice systems with continuous degrees of freedom and apply it to the two-dimensional XY model near the Berezinskii-Kosterlitz-Thouless transition. The architecture is combined with physics-informed ingredients: locality-informed attention and approximate probabilities.

Show full abstract

The resulting sampler significantly outperforms existing neural samplers. We train the model on lattices up to $96\times96$, verify with a mode-dropping estimator that no parts of the configuration space are missed, and reproduce the energy, magnetization and helicity modulus obtained with the traditional Markov Chain Monte Carlo algorithm.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{biaas2026sampling,
  title  = {Sampling the XY model with an attention-based neural network},
  author = {Piotr Białas and Christian D. Morales and Tomasz Stebel and Dawid Zapolski},
  year   = {2026},
  eprint = {2610.23783},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.23783v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.23783.svg)](https://codeofpaper.com/paper/2610.23783)

Discussion