Papers › Linguistic Collapse: Neural Collapse in (Large) Language Models

Linguistic Collapse: Neural Collapse in (Large) Language Models

28 May 2024arXiv:2405.17767archive 2025-07-28

Robert Wu, Vardan Papyan

Neural collapse (𝒩𝒞) 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 𝒩𝒞 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 𝒩𝒞. We find that 𝒩𝒞 properties that develop with scale (and regularization) are linked to generalization. Moreover, there is evidence of some relationship between 𝒩𝒞 and generalization independent of scale. Our work thereby underscores the generality of 𝒩𝒞 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 𝒩𝒞-related properties. Our code is hosted on GitHub at https://github.com/rhubarbwu/linguistic-collapse .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.17767")

Code

Syntology Ran 12 of 14 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 2 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 14 samples from 2 repositories, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rhubarbwu/linguistic-collapse officialmentioned in papermentioned on GitHubpytorch report
rhubarbwu/neural-collapse officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 12 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
2ran · fixture could not drive it
9ran
2unverified

Licence: 11 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

covariance_ratio rhubarbwu/neural-collapse/neural_collapse/measure.py official repository ran · fixture could not drive it MIT (permissive) · 23ee2dc74782210f · report
create_df rhubarbwu/linguistic-collapse/lib/statistics.py official repository ran fingerprinted no licence file found · pointer only · 2630c6d4643a1419 · report
get_config rhubarbwu/linguistic-collapse/lib/model.py official repository ran no licence file found · pointer only · ef684a857d2c2e99 · report
is_float rhubarbwu/linguistic-collapse/lib/utils.py official repository ran no licence file found · pointer only · cc0336c0a472132a · report
mean_norms rhubarbwu/neural-collapse/neural_collapse/measure.py official repository ran · our draft was wrong MIT (permissive) · 7bfc97afc567d6e7 · report
numerate rhubarbwu/linguistic-collapse/lib/utils.py official repository ran no licence file found · pointer only · 95008376dc4e1a67 · report
process_batch rhubarbwu/linguistic-collapse/lib/collection.py official repository ran no licence file found · pointer only · 8ef531ec328be202 · report
select_ckpt rhubarbwu/linguistic-collapse/lib/model.py official repository ran fingerprinted no licence file found · pointer only · e24bcfffa5b6a278 · report
select_int_type rhubarbwu/linguistic-collapse/lib/utils.py official repository ran no licence file found · pointer only · 509e214fe73e4295 · report
shuffle rhubarbwu/linguistic-collapse/count.py official repository ran no licence file found · pointer only · 07dd1a4ae14651c9 · report
truncate_and_pad rhubarbwu/linguistic-collapse/lib/collection.py official repository ran no licence file found · pointer only · cc361c2f7b68b11d · report
variability_cdnv rhubarbwu/neural-collapse/neural_collapse/measure.py official repository ran · fixture could not drive it MIT (permissive) · 238be78502fd3fae · report
get_data_as_chunks rhubarbwu/linguistic-collapse/lib/data.py official repository unverified no licence file found · pointer only · db4e45385bfd12df · report
get_tokenizer rhubarbwu/linguistic-collapse/lib/model.py official repository unverified no licence file found · pointer only · 46a83c0ef5d4338f · report

Tasks

Language Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections