Lune

NeurIPS2024Top-tier venue

Linguistic Collapse: Neural Collapse in (Large) Language Models

Robert Wu, Vardan Papyan

2024Year
45Citations
16Top-tier citations

Abstract

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

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 1b8b3fea-c76a-4e86-8a4d-600f90cfac30

Cited by top-tier papers16

Ask how each one uses it

Builds on38

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines