Linguistic Collapse: Neural Collapse in (Large) Language Models

Robert Wu, Vardan Papyan
2/3/2026

No official code found. Best implementation: rhubarbwu/linguistic-collapse (18 stars, last commit 2025-04-14). 1 more below.

Abstract

Neural collapse ($\mathcal{NC}$) is a phenomenon observed in classification tasks where top-layer representations collapse into their class means, which become equinorm, equiangular and aligned with the classifiers. These behaviours -- associated with generalization and robustness -- would manifest under specific conditions: models are trained towards zero loss, with noise-free labels belonging to balanced classes, which do not outnumber the model's hidden dimension. Recent studies have explored $\mathcal{NC}$ in the absence of one or more of these conditions to extend and capitalize on the associated benefits of ideal geometries. Language modelling presents a curious frontier, as \textit{training by token prediction} constitutes a classification task where none of the conditions exist: the vocabulary is imbalanced and exceeds the embedding dimension; different tokens might correspond to similar contextual embeddings; and large language models (LLMs) in particular are typically only trained for a few epochs. This paper empirically investigates the impact of scaling the architectures and training of causal language models (CLMs) on their progression towards $\mathcal{NC}$. We find that $\mathcal{NC}$ properties that develop with scale (and regularization) are linked to generalization. Moreover, there is evidence of some relationship between $\mathcal{NC}$ and generalization independent of scale. Our work thereby underscores the generality of $\mathcal{NC}$ as it extends to the novel and more challenging setting of language modelling. Downstream, we seek to inspire further research on the phenomenon to deepen our understanding of LLMs -- and neural networks at large -- and improve existing architectures based on $\mathcal{NC}$-related properties. Our code is hosted on GitHub at https://github.com/rhubarbwu/linguistic-collapse .

View on arXivView PDF

Code Implementations(2)

Codebase for Linguistic Collapse: Neural Collapse in (Large) Language Models [NeurIPS 2024] [arXiv:2405.17767]

184Shell, PythonSep 28, 20231 years ago
causal-language-modelinggpt-neolanguage-modellarge-language-modellarge-language-models+2 more
MIT

Generic library for neural collapse and several derivative works on the phenomenon.

172PythonSep 19, 20241 years agoMIT
neural-collapse

Similar Papers

Cite this paper

@article{wu2026linguistic,
  title  = {Linguistic Collapse: Neural Collapse in (Large) Language Models},
  author = {Robert Wu and Vardan Papyan},
  year   = {2026},
  eprint = {2405.17767},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.17767},
  url    = {https://arxiv.org/abs/2405.17767},
  journal = {NEURIPS 2024 2024}
}

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/2405.17767.svg)](https://codeofpaper.com/paper/2405.17767)

Discussion