Universal sampling of spin systems across quenched disorder
The project
Showcase
Jing Liu, Yeyuan Wu, Ying Tang and Pan Zhang
arXiv, 2026Condensed matter: Statistical mechanics
- revtex4-2
- natbib
- bm
Compare with TeX's PDFOriginalSource
CC BY 4.0, published at arxiv.org. “Universal sampling of spin systems across quenched disorder” by Jing Liu, Yeyuan Wu, Ying Tang, Pan Zhang, arXiv:2609.11336v1. Licensed under CC BY 4.0. Typeset here by reflowtex from the authors' source.
Universal sampling of spin systems across quenched disorder
Jing Liu,1,2,∗ Yeyuan Wu,3,2,† Ying Tang,4,5,6,‡ and Pan Zhang2,3,7,§
1School of Physical Science and Technology, Beijing University of Posts and Telecommunications, Beijing 100876, China
2Institute of Theoretical Physics, Chinese Academy of Sciences, Beijing 100190, China
3School of Fundamental Physics and Mathematical Sciences, Hangzhou Institute for Advanced Study, UCAS, Hangzhou 310024, China
4Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China, Chengdu 611731, China
5School of Physics, University of Electronic Science and Technology of China, Chengdu 611731, China
6Non-classical Information Science Basic Discipline Research Center of Sichuan Province, University of Electronic Science and Technology of China, Chengdu 611731, China
7School of Physical Sciences, University of Chinese Academy of Sciences, Beijing 100049, China
Statistical physics extracts macroscopic laws by averaging over the many microscopic degrees of freedom of a system. Disordered systems demand a second and far harder average, one over the quenched randomness itself. The classic analytical routes, the replica and cavity methods, become uncontrolled outside mean-field or tree-like limits, and conventional numerical algorithms like parallel tempering require expensive, independent equilibration for every disorder realization. In this work, we introduce a universal neural variational framework that amortizes inference across the disorder ensemble, eliminating both the need for per-instance Markov chain equilibration and the cost of retraining instance-specific variational ansatzes. Built on an encoder-decoder Transformer architecture, after training once, it produces an explicit approximation to the Boltzmann distribution given previously unseen disorder realizations without further optimization. We validate this framework on 2D Edwards-Anderson models, and apply it to the random-bond Ising model, successfully capturing the Binder cumulant crossings near the Nishimori multicritical point. These results shift the object of variational inference from the single instance to the disorder ensemble, opening a route to frustrated many-body systems where instance-by-instance computation is prohibitive.
Introduction— Evaluating quenched thermodynamic observables in disordered spin systems necessitates extensive averaging over numerous disorder realizations, posing a persistent computational challenge [1, 2]. Parallel tempering Monte Carlo [3] remains the benchmark for sampling the rugged free-energy landscapes of spin glasses. Although replica-exchange algorithms mitigate the critical slowing down of local updates, equilibration becomes prohibitively expensive deep within the low-temperature phase. To circumvent these barriers, variational autoregressive networks (VANs) [4] have been proposed for direct sampling, generating global proposals for Markov chains [5–9]. However, standard VANs exhibit a fundamental limitation when applied to quenched ensembles: training the neural network ansatz from scratch for each specific Hamiltonian negates their computational efficiency, rendering large-scale ensemble studies intractable [5, 9–14].
Generalizing inference across varying Hamiltonians requires universal meta-algorithms. While analytic frameworks like mean-field theory [15], Thouless-Anderson-Palmer equations [16], and belief propagation [17, 18] yield instance-agnostic rules within strict validity domains, constructing deep generative models for zero-shot inference on arbitrary, highly frustrated discrete topologies remains inherently difficult. Machine learning addresses analogous bottlenecks via amortized inference [19, 20], a paradigm that replaces iterative, instance-specific optimization with a direct functional mapping from system parameters to ensemble-optimized variational states. This approach has shown early promise in adjacent domains: foundational neural-network quantum states (FNQS) generalize across Hamiltonians [21, 22], and transferable normalizing flows sample continuous molecular conformations [23, 24]. For classical spin systems, VANs generalize across continuous temperatures to evaluate differentiable thermal observables [25]. However, extending this amortized framework across distinct disorder realizations remains unsolved. Unlike global temperature shifts, varying local disorder fundamentally restructures the discrete energy landscape, precluding zero-shot inference with standard generative models.
FIG. 1: Conceptual overview of the disorder-conditioned neural Boltzmann sampling framework. Left: The encoder maps the coupling matrix {J} to per-site embeddings {hi} through N axial transformer blocks, executing once per disorder realization. Right: The autoregressive decoder generates spin configurations patch by patch. Each patch token concatenates the spin embedding and local coupling features, then is updated via causal masked self-attention and cross-attention with {hi} to parameterize the conditional distribution qθ(s|J).
In this Letter, we generalize the VAN framework from an instance-specific ansatz to a realization-independent meta-algorithm, avoiding per-instance retraining. By processing Hamiltonian couplings to parameterize conditional spin distributions, our encoder-decoder architecture effectively models the equilibrium statistics of the full disorder ensemble. Trained on dynamically generated instances, the model directly maps unseen disorder realizations to their Boltzmann distributions without retraining. We test this zero-shot framework on 2D Edwards-Anderson models [1], yielding accurate finite-temperature equilibrium sampling and ground-state energies under both bimodal and Gaussian disorder. We further apply this method to the random-bond Ising model [26] to compute the quenched disorder-averaged Binder cumulant near the Nishimori multicritical point.
Variational quenched-averaged free energy— In standard applications of VANs to disordered spin glass systems [5, 9–13], equilibrium properties for a quenched disorder realization J are obtained by introducing a parameterized approximation to the exact Boltzmann distribution PJ(s) = e−βEJ(s)/ZJ. Here, EJ(s) = − ⟨i,j⟩ Jijsisj is the system Hamiltonian at inverse temperature β = 1/T, and ZJ = s e−βEJ(s) denotes the associated partition function. By employing an autoregressive neural network [27–30] qθ(s) = i qθ(si|s<i) as the variational ansatz, one constructs an exactly normalized distribution over spin configurations s, where s<i = (s1, . . . , si−1) denotes the causal history under a specified ordering. This factorization permits direct ancestral sampling [31], circumventing the autocorrelation times inherent to Markov chain Monte Carlo methods [32]. The optimal parameters θ∗ are obtained by minimizing the variational free energy, which strictly upper-bounds the exact free energy:
θ∗ = arg min θ Es∼qθ EJ(s) + 1 β ln qθ(s) .(1)
Because qθ(s) takes only s as input, the disorder couplings bypass the forward pass and are instead implicitly encoded into the network parameters during optimization. Consequently, this instance-specific paradigm requires independent, computationally intensive training for each distinct disorder realization [12].
To circumvent this bottleneck, we introduce an amortized inference scheme: a single conditional model qθ(s|J) maps an arbitrary realization J ∼ P(J) directly to its approximate Boltzmann distribution. To train this mapping to generalize across different Hamiltonians, we optimize its parameters θ over the entire disorder ensemble P(J). This naturally transforms the training objective into minimizing the variational quenched-averaged free energy:
F(θ) = EJ∼P(J)Es∼qθ(·|J) EJ(s) + 1 β ln qθ(s|J) .(2)
This bound rigorously satisfies F(θ) ≥ EJ∼P(J)[Ftrue(J)], where Ftrue(J) = −(1/β) ln ZJ is the exact free energy of a specific instance J. Consequently, minimizing F(θ) tightens the variational free-energy estimate on average across the disorder ensemble. Once trained, the conditional ansatz evaluates variational free energies and generates independent samples for unseen realizations without retraining, effectively reducing computational costs.
FIG. 2: Performance on the 2D Edwards-Anderson model with open boundary conditions (L = 12). (a) Training dynamics. The normalized effective sample size (ESS) is evaluated on a fixed validation set (20 realizations) during training for bimodal couplings. (b) Thermal generalization. By conditioning the encoder on Kij = βJij, a model trained on discrete β values seamlessly interpolates and extrapolates to unseen continuous thermal regimes for Gaussian couplings without retraining. (c) Extrapolation over system size. The model is trained on L = 12 and evaluated on L = {12, 14, 16, 18, 20} (gray shading marks the extrapolation regime L > 12), compared with naive mean-field (NMF) and a randomly initialized model.
Disorder-conditioned neural ansatz— While early VANs enforced the autoregressive property via masked dense or convolutional networks (e.g., NADE [27], MADE [28], PixelCNN [29]), recent implementations predominantly utilize Transformers [12–14]. The Transformer architecture offers distinct computational advantages, including highly parallelizable training and superior scalability, while its attention mechanism naturally provides a global receptive field without imposing strict geometric priors [13, 14]. However, conventional Transformer VANs rely on a decoder-only architecture to parameterize qθ(s) = i qθ(si|s<i), restricting the input space exclusively to physical spins. To explicitly condition generation on quenched disorder, we introduce an encoder-decoder architecture [30, 33], see Fig. 1. The encoder processes the coupling matrix J via axial attention layers [34], which exploit the regular lattice geometry to efficiently establish a global receptive field. This yields continuous per-site embeddings {hi}Ni=1 that aggregate both local coupling topologies and global structural features of the disorder. Because the encoder output is strictly J-dependent, the forward pass executes exactly once per disorder realization.
Because the Ising Hamiltonian exhibits local Z2 gauge invariance (si → ϵisi, Jij → ϵiϵjJij with ϵi ∈ {−1, 1}) [35], a single physical energy landscape corresponds to 2N−1 formally distinct coupling matrices. To facilitate efficient representation learning, deterministic gauge-fixing is applied to collapse this redundancy into a canonical coupling matrix J [36].
Autoregressive sampling then proceeds via a causal Transformer decoder. To efficiently capture local correlations and reduce the effective sequence length, we coarse-grain spins into patches (typically 2 × 2) [37]. For the t-th patch, the decoder state gt ∈ Rdemb, where demb represents the embedding dimension, is initialized by concatenating the spin token embedding e(t)s and a local coupling feature embedding e(t)J: gt = Concat(e(t)s, e(t)J). This concatenation is also employed in FNQS [21, 22], and our ablations confirm that this explicit concatenation systematically outperforms standard token embedding alone. The decoder updates its hidden state gt via masked self-attention over the causal history and cross-attention with the disorder embeddings {hi}. Formally, these attention mechanisms compute the weight for each position pair as
αtj = exp(qt · kj/√dk) i exp(qt · ki/√dk),(3)
yielding Attn(qt, K, V) = j αtjvj, with projection dimension dk. For masked self-attention, queries, keys, and values are linearly projected from the decoder states (qt = WQgt, kj = WKgj, vj = WVgj). Strict causality is enforced by restricting the softmax sum to positions ≤ t and setting αtj = 0 for j > t. The positional information is incorporated through rotary position embedding (RoPE) [38] directly in the attention calculation. In cross-attention, queries are derived from the decoder (qt = WQcgt), whereas keys and values are projected from the encoder outputs (kj = WKchj, vj = WVchj), with the softmax normalization taken over all N positions. This cross-attention mechanism explicitly couples the learned disorder environment to the autoregressive generation process.
The encoder and decoder are jointly optimized to minimize F(θ) using the REINFORCE gradient estimator [39]. To ensure robust generalization across the disorder ensemble P(J), new realizations are independently sampled at each training iteration. Gauge-fixing details, architectural specifications, and surrogate loss derivations are provided in the Supplemental Material [40].
Zero-shot inference on the Edwards-Anderson model— We first demonstrate our realization-independent framework on the 2D EA model, governed by the Hamiltonian EJ(s) = − ⟨i,j⟩ Jijsisj, where nearest-neighbor couplings Jij are independently drawn from bimodal (P(Jij) = 12[δ(Jij − 1) + δ(Jij + 1)]) or Gaussian (P(Jij) = 1 √2π exp(−J2ij/2)) distributions. We employ open boundary conditions (OBC), permitting exact calculation of the instance-specific free energy [41]. Additionally, sampling efficiency can be measured via the normalized effective sample size (ESS) [42] ESS = ⟨wi⟩2/⟨w2i⟩, where wi = exp(−βEJ(si))/qθ(si|J) denotes the importance weight of configuration si. By definition, 0 < ESS ≤ 1, and ESS = 1 if qθ(s|J) exactly recovers the true Boltzmann distribution PJ(s). To precisely monitor the training dynamics, we periodically evaluate the model on a fixed validation set. As training progresses, a systematic increase in the ESS is observed [Fig. 2(a)]. The training dynamics also exhibit a clear temperature dependence: convergence becomes noticeably slower and the asymptotic ESS becomes lower as the temperature decreases. This behavior reflects the increasingly rugged free-energy landscape that systematically impedes optimization.
We then investigate how well the model generalizes across different temperatures. This is done by conditioning the encoder on the dimensionless local coupling Kij = βJij. Figure 2(b) demonstrates that a model trained exclusively on a sparse, discrete set of β values can interpolate and extrapolate to unseen continuous thermal regimes for Gaussian couplings. The model maintains high sampling efficiency across the temperature range, successfully capturing the relevant statistical properties without requiring separate, temperature-specific models. This thermal generalization extends beyond the variational temperature-differentiable (VaTD) framework in Ref. [25], which conditions a generative model on the global scalar β for a fixed Hamiltonian. Our encoder-decoder architecture reduces to the VaTD setting when the disorder distribution collapses to a uniform coupling, making the latter the disorder-free special case of our framework.
We next examine the framework’s capability to extrapolate to larger system sizes. Because the network’s internal operations, including the encoder’s feature extraction and the decoder’s autoregressive generation, are independent of the global lattice dimension, our architecture is inherently size-agnostic. Figure 2(c) illustrates this extrapolation over lattice size at β = 1.0 for Gaussian disorder. A model trained on L = 12 is directly evaluated on unseen larger lattices. We observe that the relative error remains lower than that of the naive mean-field (NMF) approximation. The ability to outperform the NMF baseline indicates that the network successfully extracts and transfers non-local spin correlations across different length scales.
FIG. 3: Results obtained via curriculum training, where the model is trained sequentially on system sizes L ∈ {8, 12, 16, 24, 32, 40, 48}, each stage warm-started from the converged weights of the previous size. (a) Variational free energies benchmarked against exact Kac-Ward solutions across an independent test set (200 realizations) for Gaussian disorder at L = 48, β = 1.0. (b) Ground-state search for bimodal couplings at L = 32 via variational annealing from the curriculum-trained model, showing the minimum energy found versus the exact ground-state energy obtained by [43].
FIG. 4: Quenched-averaged Binder cumulant U = [⟨m4⟩]/[⟨m2⟩]2 in the 2D random-bond Ising model as a function of the antiferromagnetic bond probability p for various system sizes L. Periodic boundary conditions are adopted to suppress finite-size effects. The curves cross near the expected multicritical Nishimori point p ≈ 0.1092. For each point, observables are computed via importance sampling across 106 distinct disorder realizations using our amortized model.
Curriculum training and ground-state search— Although the direct zero-shot transfer degrades at larger L, the fact that a model trained on a smaller lattice still outperforms the NMF baseline on larger ones indicates that the learned representations capture non-local correlations transferable across length scales. This suggests that a model pre-trained at a smaller size provides a markedly better initialization than random weights for larger systems [Fig. 2(c)]. Exploiting this, we adopt a curriculum learning strategy [44]: starting from a converged model at a small lattice size, we retrain at progressively larger L, each time warm-starting from the model obtained at the previous size, a strategy also employed in related fields [45–47]. As shown in Fig. 3(a), this approach achieves highly accurate free-energy estimations on systems up to L = 48 at β = 1.0. This represents a substantial scale, especially considering that conventional VANs restricted to single-instance optimization have recently reached L = 64 [13, 14]. We further extend this framework to search for ground states by introducing an annealing schedule [9, 14, 48] that forces the network, during training, to concentrate its probability mass on the lowest-energy configurations. As shown in Fig. 3(b), this annealed network rapidly generates high-quality ground-state candidates for novel instances, offering a highly efficient approach to low-energy sampling in rugged landscapes.
Multicritical Nishimori point in the random-bond Ising model— Finally, we demonstrate the utility of our method by investigating the critical behavior of the 2D random-bond Ising model [26]. The system is characterized by the disorder distribution P(Jij) = (1 − p)δ(Jij − 1) + pδ(Jij + 1), where p represents the probability of antiferromagnetic bonds. Simulations are performed on the Nishimori line [26], where the inverse temperature β is fixed by p via e−2β = p/(1 − p). This model features a multicritical Nishimori point (MNP) at p ≈ 0.1092 [49–51], where dimensionless scaling quantities, such as the Binder cumulant, become scale-invariant and curves for different system sizes intersect at a common value. Reliable quenched averages of the Binder cumulant demand ∼ 106 disorder realizations per parameter point. Parallel tempering requires independent equilibration for each realization, making an ensemble study of this scale expensive. Standard VANs inherit the same bottleneck because the model must be retrained independently for each realization [14]. Our amortized model, by contrast, is trained once per p and then generates i.i.d. samples across an extensive ensemble of distinct instances, eliminating both the equilibration overhead of MCMC and the retraining cost of instance-specific VANs. The quenched-averaged observables [⟨m2⟩]2 and [⟨m4⟩] are then computed via importance sampling [6]. The resulting Binder cumulant U = [⟨m4⟩]/[⟨m2⟩]2 (Fig. 4) exhibits a clear crossing consistent with the known MNP. This result not only successfully captures a highly non-trivial critical phenomenon but also underscores the broader potential to solve challenging problems in complex disordered systems. For details of the training and more extended numerical results, see Supplemental Material [40].
Discussion and Conclusion— In summary, we have introduced an amortized variational framework that generalizes neural Boltzmann sampling across quenched disorder realizations. The encoder-decoder architecture learns a direct mapping from Hamiltonian couplings to equilibrium statistics, enabling zero-shot inference on unseen disorder instances without retraining. We validated this approach on the 2D EA model, achieving accurate free energies up to L = 48 and ground-state energies up to L = 32 via curriculum training. We further demonstrated its utility by computing the quenched-averaged Binder cumulant in the random-bond Ising model, successfully resolving the multicritical Nishimori point from 106 disorder realizations.
Looking forward, this amortized framework can be extended in several directions. On the model side, the sampling cost can be further reduced by replacing the vanilla attention mechanism with linear-complexity alternatives [52, 53] or complementing hierarchical sampling schemes [54–58] to enable access to substantially larger systems. On the application side, vanilla VANs have been used to model the stochastic dynamics [59–64], and conditioning such models on time-dependent or model-dependent evolution operators would enable zero-shot prediction of time-evolved classical distributions. A similar operator-learning approach has recently been demonstrated for driven quantum dynamics [65]. For neural-network quantum states, while the current state-of-the-art is based on vision transformers [21, 22], our autoregressive approach offers the distinct advantage of exactly normalized wave-function amplitudes, making the extension of this amortized framework to quantum spin glasses a natural next step.
Acknowledgments— This work is supported by the National Natural Science Foundation of China [Grant No.: 12405047, 12325501, 12322501, 12575035], the Strategic Priority Research Program of Chinese Academy of Sciences [Grant No.XDB1680000], and the Fundamental Research Funds for the Central Universities.
Data availability— The source code will be openly available upon acceptance.
[1] S F Edwards and P W Anderson, Theory of spin glasses, Journal of Physics F: Metal Physics 5, 965 (1975).
[2] K. Binder and A. P. Young, Spin glasses: Experimental facts, theoretical concepts, and open questions, Reviews of Modern Physics 58, 801 (1986).
[3] K. Hukushima and K. Nemoto, Exchange Monte Carlo Method and Application to Spin Glass Simulations, Journal of the Physical Society of Japan 65, 1604 (1996).
[4] D. Wu, L. Wang, and P. Zhang, Solving Statistical Mechanics Using Variational Autoregressive Networks, Physical Review Letters 122, 080602 (2019).
[5] B. McNaughton, M. V. Milošević, A. Perali, and S. Pilati, Boosting Monte Carlo simulations of spin glasses using autoregressive neural networks, Physical Review E 101, 053312 (2020).
[6] K. A. Nicoli, S. Nakajima, N. Strodthoff, W. Samek, K.-R. Müller, and P. Kessel, Asymptotically unbiased estimation of physical observables with neural samplers, Physical Review E 101, 023304 (2020).
[7] D. Wu, R. Rossi, and G. Carleo, Unbiased Monte Carlo cluster updates with autoregressive neural networks, Physical Review Research 3, L042024 (2021).
[8] S. Ciarella, J. Trinquier, M. Weigt, and F. Zamponi, Machine-learning-assisted Monte Carlo fails at sampling computationally hard problems, Machine Learning: Science and Technology 4, 010501 (2023).
[9] L. M. Del Bono, F. Ricci-Tersenghi, and F. Zamponi, Demonstrating real advantage of machine learning–enhanced Monte Carlo for combinatorial optimization, Proceedings of the National Academy of Sciences 123, e2534768123 (2026).
[10] I. Biazzo, D. Wu, and G. Carleo, Sparse autoregressive neural networks for classical spin systems, Machine Learning: Science and Technology 5, 025074 (2024).
[11] L. M. Del Bono, F. Ricci-Tersenghi, and F. Zamponi, Nearest-neighbors neural network architecture for efficient sampling of statistical physics models, Machine Learning: Science and Technology 6, 025029 (2025).
[12] J. Liu, Y. Tang, and P. Zhang, Efficient optimization of variational autoregressive networks with natural gradient, Physical Review E 111, 025304 (2025).
[13] P. Białas, P. Korcyl, T. Stebel, A. Stefański, and D. Zapolski, Sampling two-dimensional spin systems with transformers (2026), arXiv:2604.27738 [cond-mat.dis-nn].
[14] L. Zhong, W. Duan, J. Liu, P. Zhang, and Y. Tang, Scalable Physics-Inspired Transformers for Spin Glasses (2026), arXiv:2606.22984 [cond-mat.dis-nn].
[15] M. Kardar, Statistical physics of fields (Cambridge University Press, 2007).
[16] D. J. Thouless, P. W. Anderson, and R. G. Palmer, Solution of ’Solvable model of a spin glass’, The Philosophical Magazine: A Journal of Theoretical Experimental and Applied Physics 35, 593 (1977).
[17] H. A. Bethe, Statistical theory of superlattices, Proceedings of the Royal Society of London. Series A-Mathematical and Physical Sciences 150, 552 (1935).
[18] J. S. Yedidia, W. T. Freeman, and Y. Weiss, Understanding Belief Propagation and Its Generalizations, in Exploring Artificial Intelligence in the New Millennium (Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 2003) pp. 239–269.
[19] D. P. Kingma and M. Welling, Auto-Encoding Variational Bayes, in 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, edited by Y. Bengio and Y. LeCun (2014).
[20] S. Gershman and N. Goodman, Amortized inference in probabilistic reasoning, in Proceedings of the annual meeting of the cognitive science society, Vol. 36 (2014).
[21] R. Rende, L. L. Viteritti, F. Becca, A. Scardicchio, A. Laio, and G. Carleo, Foundation neural-networks quantum states as a unified Ansatz for multiple hamiltonians, Nature Communications 16, 7213 (2025).
[22] L. L. Viteritti, R. Rende, G. Bracci-Testasecca, J. Niedda, R. Moessner, G. Carleo, and A. Scardicchio, Quantum Spin Glass in the Two-Dimensional Disordered Heisenberg Model via Foundation Neural-Network Quantum States (2026), arXiv:2507.05073 [cond-mat.dis-nn].
[23] C. B. Tan, M. Hassan, L. Klein, S. Syed, D. Beaini, M. M. Bronstein, A. Tong, and K. Neklyudov, Amortized Sampling with Transferable Normalizing Flows, in Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, edited by D. Belgrave, C. Zhang, L. N. Montoya, H.-T. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, N. Chen, I. V. M. Ruíz, and A. Loaiza-Bonilla (2025).
[24] W. Chen, B. Zhao, J. Eckwert, and J. Zavadlav, Coarse-Grained Boltzmann Generators (2026), arXiv:2602.10637 [cs.LG].
[25] S.-H. Li, Y.-W. Zhang, and D. Pan, Deep Generative Modeling of the Canonical Ensemble with Differentiable Thermal Properties, Physical Review Letters 135, 027301 (2025).
[26] H. Nishimori, Internal Energy, Specific Heat and Correlation Function of the Bond-Random Ising Model, Progress of Theoretical Physics 66, 1169 (1981).
[27] H. Larochelle and I. Murray, The Neural Autoregressive Distribution Estimator, in Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, Proceedings of Machine Learning Research, Vol. 15, edited by G. Gordon, D. Dunson, and M. Dudík (PMLR, Fort Lauderdale, FL, USA, 2011) pp. 29–37.
[28] M. Germain, K. Gregor, I. Murray, and H. Larochelle, MADE: Masked Autoencoder for Distribution Estimation, in Proceedings of the 32nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 37, edited by F. Bach and D. Blei (PMLR, Lille, France, 2015) pp. 881–889.
[29] A. van den Oord, N. Kalchbrenner, and K. Kavukcuoglu, Pixel Recurrent Neural Networks, in Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, JMLR Workshop and Conference Proceedings, Vol. 48, edited by M.-F. Balcan and K. Q. Weinberger (JMLR.org, 2016) pp. 1747–1756.
[30] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, Attention is All you Need, in Advances in Neural Information Processing Systems, Vol. 30, edited by I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Curran Associates, Inc., 2017).
[31] C. M. Bishop, Pattern Recognition and Machine Learning (Springer New York, NY, 2006).
[32] M. Newman and G. Barkema, Monte Carlo Methods in Statistical Physics (Clarendon Press, 1999).
[33] D. Fitzek, Y. Hong Teoh, H. P. Cyrus Fung, G. A. Dagnew, E. Merali, M. Schuyler Moss, B. MacLellan, and R. G. Melko, RydbergGPT, Machine Learning: Science and Technology 6, 045057 (2025).
[34] J. Ho, N. Kalchbrenner, D. Weissenborn, and T. Salimans, Axial Attention in Multidimensional Transformers (2019), arXiv:1912.12180 [cs.CV].
[35] F. J. Wegner, Duality in Generalized Ising Models and Phase Transitions without Local Order Parameters, Journal of Mathematical Physics 12, 2259 (1971).
[36] C. Fan, M. Shen, Z. Nussinov, Z. Liu, Y. Sun, and Y.-Y. Liu, Searching for spin glass ground states through deep reinforcement learning, Nature Communications 14, 725 (2023).
[37] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby, An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale, in 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021 (OpenReview.net, 2021).
[38] J. Su, M. Ahmed, Y. Lu, S. Pan, W. Bo, and Y. Liu, RoFormer: Enhanced Transformer with Rotary Position Embedding, Neurocomputing 568, 127063 (2024).
[39] R. J. Williams, Simple statistical gradient-following algorithms for connectionist reinforcement learning, Machine Learning 8, 229 (1992).
[40] See Supplemental Material for the derivation of the variational free-energy bound and REINFORCE gradient estimator, details of the encoder-decoder architecture with gauge-fixing and curriculum learning strategy, and extended numerical results for the 2D Edwards-Anderson and random-bond Ising models.
[41] M. Kac and J. C. Ward, A Combinatorial Solution of the Two-Dimensional Ising Model, Physical Review 88, 1332 (1952).
[42] V. Elvira, L. Martino, and C. P. Robert, Rethinking the Effective Sample Size, International Statistical Review 90, 525 (2022).
[43] G. Pardella and F. Liers, Exact Ground States of Large Two-Dimensional Planar Ising Spin Glasses, Physical Review E 78, 056705 (2008).
[44] Y. Bengio, J. Louradour, R. Collobert, and J. Weston, Curriculum learning, in Proceedings of the 26th Annual International Conference on Machine Learning, ICML 2009, Montreal, Quebec, Canada, June 14-18, 2009, ACM International Conference Proceeding Series, Vol. 382, edited by A. P. Danyluk, L. Bottou, and M. L. Littman (ACM, 2009) pp. 41–48.
[45] C. Roth, Iterative Retraining of Quantum Spin Models Using Recurrent Neural Networks (2020), arXiv:2003.06228 [physics.comp-ph].
[46] C. Casert, T. Vieijra, S. Whitelam, and I. Tamblyn, Dynamical Large Deviations of Two-Dimensional Kinetically Constrained Models Using a Neural-Network State Ansatz, Physical Review Letters 127, 120602 (2021).
[47] E. Merali, M. Hibat-Allah, M. Kohandel, R. T. Scalettar, and E. Khatami, Parallel Scan Recurrent Neural Quantum States for Scalable Variational Monte Carlo (2026), arXiv:2605.13807 [cond-mat.str-el].
[48] M. Hibat-Allah, E. M. Inack, R. Wiersema, R. G. Melko, and J. Carrasquilla, Variational neural annealing, Nature Machine Intelligence 3, 952 (2021).
[49] M. Hasenbusch, F. P. Toldin, A. Pelissetto, and E. Vicari, Multicritical Nishimori point in the phase diagram of the ±J Ising model on a square lattice, Physical Review E 77, 051115 (2008).
[50] F. Parisen Toldin, A. Pelissetto, and E. Vicari, Strong-Disorder Paramagnetic-Ferromagnetic Fixed Point in the Square-Lattice ±J Ising Model, Journal of Statistical Physics 135, 1039 (2009).
[51] T. Chen, E. Guo, W. Zhang, P. Zhang, and Y. Deng, Tensor network Monte Carlo simulations for the two-dimensional random-bond Ising model, Physical Review B 111, 094201 (2025).
[52] B. Peng, E. Alcaide, Q. Anthony, A. Albalak, S. Arcadinho, S. Biderman, H. Cao, X. Cheng, M. Chung, L. Derczynski, X. Du, M. Grella, K. Gv, X. He, H. Hou, P. Kazienko, J. Kocon, J. Kong, B. Koptyra, H. Lau, J. Lin, K. S. I. Mantri, F. Mom, A. Saito, G. Song, X. Tang, J. Wind, S. Woźniak, Z. Zhang, Q. Zhou, J. Zhu, and R.-J. Zhu, RWKV: Reinventing RNNs for the Transformer Era, in Findings of the Association for Computational Linguistics: EMNLP 2023, edited by H. Bouamor, J. Pino, and K. Bali (Association for Computational Linguistics, Singapore, 2023) pp. 14048–14077.
[53] A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret, Transformers Are RNNs: Fast Autoregressive Transformers with Linear Attention, in Proceedings of the 37th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 119, edited by H. D. III and A. Singh (PMLR, 2020) pp. 5156–5165.
[54] P. Białas, P. Korcyl, and T. Stebel, Hierarchical Autoregressive Neural Networks for Statistical Systems, Computer Physics Communications 281, 108502 (2022).
[55] A. Singha, E. Cellini, K. A. Nicoli, K. Jansen, S. Kühn, and S. Nakajima, Multilevel Generative Samplers for Investigating Critical Phenomena, in The Thirteenth International Conference on Learning Representations (2025).
[56] A. Singha, J. Kauffmann, E. Cellini, K. Jansen, and S. Nakajima, Scalable Generative Sampling and Multilevel Estimation for Lattice Field Theories Near Criticality (2026), arXiv:2604.10209 [hep-lat].
[57] P. Białas, V. Chahar, P. Korcyl, T. Stebel, M. Winiarski, and D. Zapolski, Hierarchical Autoregressive Neural Networks in Three-Dimensional Statistical System, Computer Physics Communications 318, 109892 (2026).
[58] X. Du, J. Nam, S. Liu, and R. Gómez-Bombarelli, Scaling Autoregressive Models for Lattice Thermodynamics (2026), arXiv:2603.14695 [cond-mat.stat-mech].
[59] Y. Tang, J. Weng, and P. Zhang, Neural-Network Solutions to Stochastic Reaction Networks, Nature Machine Intelligence 5, 376 (2023).
[60] H. Gao, S. Kaltenbach, and P. Koumoutsakos, Generative Learning for Forecasting the Dynamics of High-Dimensional Complex Systems, Nature Communications 15, 8904 (2024).
[61] Y. Tang, J. Liu, J. Zhang, and P. Zhang, Learning Nonequilibrium Statistical Mechanics and Dynamical Phase Transitions, Nature Communications 15, 1117 (2024).
[62] Y. Zhao, Y. Tang, and P. Zhang, Nonequilibrium Statistical Mechanics Revealed by Doob $h$ Transform and Variational Autoregressive Networks, Physical Review E 111, 034120 (2025).
[63] J. Weng, X. Zhu, J. Liu, L. Lü, P. Zhang, and Y. Tang, Tracking Large Chemical Reaction Networks and Rare Events by Neural Networks (2025), arXiv:2512.10309 [q-bio].
[64] Z. Liu, J. Liu, P. Zhang, and Y. Tang, Characterizing Full Nonequilibrium Dynamics of Simple Exclusion Processes (2026), arXiv:2608.25606 [cond-mat.stat-mech].
[65] Z. Qi, C. Earls, and Y. Peng, Neural Operator Quantum State: A Foundation Model for Quantum Dynamics (2026), arXiv:2603.25066 [quant-ph].