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

Youran Sun, Babak Haghighat
1/27/2025
cs.LGcs.CLhep-th

No confident code implementation found for this paper. 3 possible matches can be shown below.

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)$ 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)$ model can be used to evaluate whether an LLM's parameters are sufficient to learn the training data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2025phase,
  title  = {Phase Transitions in Large Language Models and the $O(N)$ Model},
  author = {Youran Sun and Babak Haghighat},
  year   = {2025},
  eprint = {2501.16241},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.16241v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.16241.svg)](https://codeofpaper.com/paper/2501.16241)

Discussion