TL;DR
Language models learn rich semantic structures despite being trained on unique, "one-hot" labels—a phenomenon that contradicts standard Neural Collapse theory. This paper reveals that semantic geometry is actually a transient phase that emerges early in training before eventually giving way to a symmetric, featureless state where all representations are equally separated.
What Problem Does This Paper Address?
In deep learning theory, Neural Collapse (NC) describes a phenomenon where, at the end of training for classification tasks, the model's internal representations of different classes become as far apart as possible, forming a perfectly symmetric shape called a Simplex Equiangular Tight Frame (ETF). In this state, the model "forgets" any semantic similarity between inputs; a "truck" is just as far from a "car" as it is from a "dog."
This presents a puzzle for Large Language Models (LLMs). LLMs are trained on next-token prediction, which is effectively a massive classification task. Because training contexts are often unique, the supervision is strictly "one-hot." According to NC theory, LLMs should collapse into a featureless ETF. Yet, we know LLMs learn deep latent structures (e.g., knowing that "Mary broke the ___" should be followed by something rigid and inanimate). The authors ask: How does gradient descent find semantic structure when the theory predicts it should be erased?
Methods
The authors investigate this tension by training Transformer decoders on three controlled synthetic languages where they could precisely define the "ground truth" semantic relationships.
To track what the models were learning, they used Representational Similarity Analysis (RSA). They compared the model's internal similarity matrix (the Emp-RSM, or Gram matrix of embeddings) against two hypotheses:
- Sem-RSM: A matrix representing the latent semantic structure (e.g., how many attributes two inputs share).
- ETF-RSM: A matrix representing the featureless, collapsed state predicted by NC theory.
Beyond empirical experiments, they developed a Spherical Bag-of-Words (BoW) model. This simplified mathematical proxy allowed them to prove that the initial steps of gradient descent are biased toward learning input semantics, even if the final global minimum is a collapsed ETF.
Datasets
The researchers introduced three synthetic "toy" languages to isolate specific linguistic properties:
- Color-Shape Language: A minimal setup where inputs are defined by two factors (e.g., "Red Square"). The model must predict a one-hot label that reflects the intersection of these factors.
- Zipfian Linear Grammar: A more realistic template-based grammar (Determiner, Adjective, Subject, Verb, Object) where labels follow a Zipfian (power-law) distribution, mimicking natural language frequency.
- Hierarchical Grammar: A complex setup where the correct prediction depends on the tree structure of the sentence (specifically, the "c-command" relation), requiring the model to induce syntax to find the semantic category.
Key Insights and Ideas
- Semantics as a Pit Stop: The most striking finding is that semantic geometry is transient. Models don't start with collapse; they first organize representations by latent semantic factors before slowly "forgetting" them as they approach the terminal phase of training.
- The Role of Capacity: Larger, wider models are actually better at finding this early semantic structure. This suggests that learning semantics isn't just a result of a "bottleneck" (limited memory), but a fundamental feature of the optimization trajectory.
- The "Aha" Moment in Optimization: The authors prove that the first step of gradient descent is mathematically biased toward the semantic structure of the input data. The "collapse" only happens later as the model pushes the training loss toward zero.
- Normalization is Key: In their theoretical model, they found that spherical normalization (mapping embeddings to a unit sphere) is the crucial ingredient that forces the eventual transition from a semantic regime to a collapsed regime.
Key Results
In all three experiments, the RSA correlation with the semantic hypothesis (Sem-RSM) rose sharply early in training and then declined. Conversely, the correlation with the collapse hypothesis (ETF-RSM) increased steadily throughout training.
In Experiment 2 (Zipfian grammar), they observed that while models moved away from the semantic structure, they didn't always reach a perfect ETF, likely due to the unstable dynamics of learning highly imbalanced data.
Limitations and Future Work
- The Fresh-Data Regime: Most LLMs are trained for only one or two epochs on massive datasets. The authors acknowledge that their study uses multiple epochs to reach collapse. It remains to be seen if the "transient" semantic phase is what we are actually seeing in modern, undertrained LLMs.
- Mixed Context Lengths: Real language training involves both short, repeating contexts (which provide "soft" labels) and long, unique contexts. The interaction between these two regimes is a promising area for future study.
- Generalization: While the paper focuses on the geometry of representations, it doesn't explicitly link the transient semantic phase to the model's ability to generalize to new data. The authors suggest this as a critical next step.
Summary updated