English

Phase Transitions in Large Language Models and the $O(N)$ Model

Machine Learning 2025-01-28 v1 Computation and Language High Energy Physics - Theory Data Analysis, Statistics and Probability

Abstract

Large language models (LLMs) exhibit unprecedentedly rich scaling behaviors. In physics, scaling behavior is closely related to phase transitions, critical phenomena, and field theory. To investigate the phase transition phenomena in LLMs, we reformulated the Transformer architecture as an O(N)O(N) model. Our study reveals two distinct phase transitions corresponding to the temperature used in text generation and the model's parameter size, respectively. The first phase transition enables us to estimate the internal dimension of the model, while the second phase transition is of \textit{higher-depth} and signals the emergence of new capabilities. As an application, the energy of the O(N)O(N) model can be used to evaluate whether an LLM's parameters are sufficient to learn the training data.

Keywords

Cite

@article{arxiv.2501.16241,
  title  = {Phase Transitions in Large Language Models and the $O(N)$ Model},
  author = {Youran Sun and Babak Haghighat},
  journal= {arXiv preprint arXiv:2501.16241},
  year   = {2025}
}
R2 v1 2026-06-28T21:20:06.667Z