Skip to content
DraconiticResearch
Search Sources API
203,234 studies31 sourcesUpdated 47 min ago
PreprintCC BY-NC-SA 4.0arXiv

On the Statistical Mechanics of Attention

Abstract

We revisit the statistical mechanics of Transformer attention via modern Hopfield models. We present a free-energy formalism to characterize parameter regimes and critical thresholds for robust attention inference. The resulting free-energy landscape incorporates randomness in query states and attention weights. Attention then emerges as the equation of motion of the corresponding statistical-mechanical system (i.e., modern Hopfield model) through the standard free-energy minimization principle. This allows us to identify first-order phase transitions in attention between glassy and robust-inference phases. We further extend to attentions with stochastic queries and keys. Together, our results provide a rigorous statistical-mechanics framework for characterizing phase structure and inference reliability across a family of Transformer attention mechanisms.

Related

  1. A liquid vapor phase transition in quantum statistical mechanics
    Francesco Baffioni, Tobias Kuna, Immacolata Merola +1
    arXivPreprintCC BY-NC-SA 4.0Full textMathematical physicsProbabilityarXiv
  2. On the relaxation problem in statistical mechanics
    Giuseppe Del Vecchio Del Vecchio
    arXivPreprintCC BY 4.0Full textMathematical physicsQuantum physics & quantum informationarXiv
  3. Statistical Mechanics of Spike Trains: Self-Consistent Activity Ensembles and Phase Transitions
    Jan Pyrzowski, Laura Messio, Guillaume Marrelec +1
    arXivPreprintCC BY 4.0Full textNeuroscienceMathematical physicsarXiv
  4. Entropic Fluctuations in Quantum Statistical Mechanics: A Review
    Tristan Benoist, Laurent Bruneau, Vojkan Jakšić +2
    HALPreprintarXiv licenceFull textMathematical physicsQuantum physics & quantum informationHALarXiv
  5. Dynamical Groups and Spherical Potentials in Classical Mechanics
    Jean-Marie Souriau, Henri Bacry, Henri Ruegg
    Communications in Mathematical PhysicsPeer-reviewedLicence Ouverte 2.0Full textMathematical physicsHAL
BibTeX
@misc{hu2026statistical,
  title = {{On the Statistical Mechanics of Attention}},
  author = {Jerry Yao-Chieh Hu and Yu-An Chen and Maojiang Su and Han Liu},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.17347},
  eprint = {2610.17347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.17347},
  note = {CC BY-NC-SA 4.0},
}
RIS
TY  - UNPB
TI  - On the Statistical Mechanics of Attention
AU  - Jerry Yao-Chieh Hu
AU  - Yu-An Chen
AU  - Maojiang Su
AU  - Han Liu
PY  - 2026
DA  - 2026/10/12
PB  - arXiv
DO  - 10.48550/arxiv.2610.17347
UR  - https://arxiv.org/abs/2610.17347
AB  - We revisit the statistical mechanics of Transformer attention via modern Hopfield models. We present a free-energy formalism to characterize parameter regimes and critical thresholds for robust attention inference. The resulting free-energy landscape incorporates randomness in query states and attention weights. Attention then emerges as the equation of motion of the corresponding statistical-mechanical system (i.e., modern Hopfield model) through the standard free-energy minimization principle. This allows us to identify first-order phase transitions in attention between glassy and robust-inference phases. We further extend to attentions with stochastic queries and keys. Together, our results provide a rigorous statistical-mechanics framework for characterizing phase structure and inference reliability across a family of Transformer attention mechanisms.
ER  -