NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structure Before Collapse: Transient Semantic Geometry in Next-Token Prediction

Yize Zhao, Isabel Papadimitriou, Christos Thrampoulidis

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:

  1. Sem-RSM: A matrix representing the latent semantic structure (e.g., how many attributes two inputs share).
  2. 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.
The vocabulary and structure of the Zipfian linear grammar used in Experiment 2.

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.

Figure 1: Transient semantic geometry emerges before collapse (Experiment 1). Sample- level n × n RSMs over the full training set, ordered by output label (n = 800, K = 8). Left column: hypothesis RSMs. Sem-RSM encodes latent semantic overlap between class pairs, with values 2, 1, and 0 equal to the number of shared attributes. ETF-RSM encodes the label- driven collapsed geometry predicted by Neural Collapse. Middle column: empirical RSMs (Emp-RSM) from the largest model (8 layers, d = 64) at epochs 30 and 10k. Early in training, the empirical geometry reflects the semantic hierarchy in Sem-RSM; by the end of training, this graded structure weakens and Emp-RSM moves toward the binary same-label versus different-label pattern of ETF-RSM. Right column: Pearson correlation between Emp-RSM and each hypothesis RSM over training, across model depths and widths. Correlation with Sem-RSM rises early and then declines, while correlation with ETF-RSM increases later, especially for larger models, indicating a transition from an early semantic regime to a late collapse regime.

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.

Figure 3: Transient semantic geometry in the linear template Zipfian language (Exper- iment 2). Sample-level n × n RSMs over the full training set, ordered by semantic and output label (n = 10k, K = 100). Left: Sem-RSM, where similarity is determined by the number of shared latent categories. Because the label distribution is imbalanced, block sizes are unequal (see inset). Middle: empirical RSMs (Emp-RSM) at epochs 30 and 10k. Early in training, Emp-RSM reflects the off-diagonal semantic structure of Sem-RSM; later, it weakens. Right: Pearson correlation between Emp-RSM and Sem-RSM over training, across model depths and widths. As in Experiment 1, larger models peak higher and earlier.

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

BibTeX
@inproceedings{zhao2026structure,
  author = {Yize Zhao and Isabel Papadimitriou and Christos Thrampoulidis},
  title = {{Structure Before Collapse: Transient Semantic Geometry in Next-Token Prediction}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=f4hQAdBDV6},
}
Figure