Dynamical Mean-Field Theory of Self-Attention Neural Networks
Not on the map. Why?
Abstract (arXiv)
Transformer-based models have demonstrated exceptional performance across diverse domains, becoming the state-of-the-art solution for addressing sequential machine learning problems. Even though we have a general understanding of the fundamental components in the transformer architecture, little is known about how they operate or what are their expected dynamics. Recently, there has been an increasing interest in exploring the relationship between attention mechanisms and Hopfield networks, promising to shed light on the statistical physics of transformer networks. However, to date, the dynamical regimes of transformer-like models have not been studied in depth. In this paper, we address this gap by using methods for the study of asymmetric Hopfield networks in nonequilibrium regimes --namely path integral methods over generating functionals, yielding dynamics governed by concurrent mean-field variables. Assuming 1-bit tokens and weights, we derive analytical approximations for the behavior of large self-attention neural networks coupled to a softmax output, which become exact in the large limit size. Our findings reveal nontrivial dynamical phenomena, including nonequilibrium phase transitions associated with chaotic bifurcations, even for very simple configurations with a few encoded features and a very short context window. Finally, we discuss the potential of our analytic approach to improve our understanding of the inner workings of transformer models, potentially reducing computational training costs and enhancing model interpretability.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 16 of its 33 references that are in the map. First posted on arXiv 11 Jun 2024.
Builds on
16 of 33 references.
References · 16
- 2017Attention Is All You Needcited by 59,932
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2021Transformers in Vision: A Surveycited by 1,009
- 2020Hopfield Networks is All You Needcited by 461
- 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 289
- 2023BitNet: Scaling 1-bit Transformers for Large Language Modelscited by 175
- 2021CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIPcited by 88
- 2024No "Zero-Shot" Without Exponential Data: Pretraining Concept Frequency Determines Multimodal Model Performancecited by 75
- 2022BiBERT: Accurate Fully Binarized BERTcited by 70
- 2022BiT: Robustly Binarized Multi-distilled Transformercited by 51
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
- 2023Mapping of attention mechanisms to a generalized Potts modelcited by 19
4 more
- 2023Binarized Neural Machine Translationcited by 12
- 2014Robust exponential memory in Hopfield networkscited by 4
- 2020A unifying framework for mean-field theories of asymmetric kinetic Ising systemscited by 4
- 2021Inference in neural networks using conditional mean-field methodscited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Pre-registered tests of solid-state-physics-inspired LLM compression: a cluster-level negative result at small-language-model scale28 Sep 2026
- 2026Relative Generalization Invariance of LLM Pretraining26 Sep 2026
- 2026Boltzmann Attention: Learnable Ising Couplings for Cooperative Attention10 Jun 2026