View a PDF of the paper titled Scalable Physics-Inspired Transformers for Spin Glasses, by Lu Zhong and 4 other authors
Abstract:Efficient sampling of the Boltzmann distribution in frustrated spin glasses is central to statistical mechanics and combinatorial optimization. Despite advances in machine-learning-based approaches, two issues persist: limited gains from increased model scale; and high computational cost on large systems that limits practical efficiency. Here, we develop a physics-inspired transformer with interaction-aware attention and concatenated positional embeddings, coupled to population-assisted training to address these challenges. By further leveraging FlashAttention and key-value caching for efficient autoregressive sampling, it achieves up to $36.4\times$ speedup over vanilla variational autoregressive networks, enabling neural-network simulations of spin-glass systems with up to $4096$ spins on a single GPU. Across the Sherrington-Kirkpatrick and two- and three-dimensional Edwards-Anderson models, FlashVAN can resolve full probability distributions and free energies, and generate nontrivial finite-temperature overlap statistics in agreement with independent numerical benchmarks. For ground-state searches, FlashVAN also exhibits instance-dependent advantages complementary to those of Global Annealing (GA), a state-of-the-art machine-learning-assisted optimization approach, while our training strategy can achieve a $3\times$ speedup over GA on a particularly challenging 3D instance. This framework thus establishes a scalable paradigm for frustrated spin-glass systems.
Submission history
From: Ying Tang [view email]
[v1]
Mon, 22 Jun 2026 08:04:53 UTC (1,821 KB)
[v2]
Tue, 23 Jun 2026 03:17:22 UTC (1,809 KB)
[v3]
Sat, 28 Nov 2026 13:46:44 UTC (1,702 KB)
![[2606.22984] Scalable Physics-Inspired Transformers for Spin Glasses [2606.22984] Scalable Physics-Inspired Transformers for Spin Glasses](https://techwavedispatch.com/wp-content/uploads/2026/12/260622984-Scalable-Physics-Inspired-Transformers-for-Spin-Glasses-1024x597.png)