Vocabulary embeddings organize linguistic structure early in language model training

Isabel Papadimitriou, Jacob S. PrinceSubmission to ICLR 2026 · Rejected

TL;DR

By applying Representational Similarity Analysis (RSA) across 339 checkpoints of Pythia-12B and OLMo-7B, the authors show that token embeddings organize semantic and syntactic properties within the first ~15% of training. Meanwhile, frequency dynamics unfold over the entirety of pretraining: high-frequency and function words shed their initialization biases and stabilize early, whereas low-frequency words retain artifacts from random initialization and spend later training drifting toward their morphological inflections.

What Problem Does This Paper Address?

While mechanistic interpretability often investigates hidden activations across intermediate and deep transformer layers, the foundational input and output embedding matrices remain less scrutinized across the training timeline. Token embeddings are the entry point for all model computation: every token's representation originates here, yet we know little about when lexical, syntactic, and semantic geometry actually forms.

This paper investigates how linguistic structure evolves within the vocabulary matrix during pretraining, how word frequency influences this trajectory, and what happens to embeddings after basic linguistic representations stabilize.

Methods

The authors adopt Representational Similarity Analysis (RSA), which correlates pairwise distance matrices (Representational Dissimilarity Matrices, or RDMs) across different representations:

  • Distance Metric: Pairwise distances between embeddings are calculated using Spearman rank distance (with Euclidean and cosine distances verifying the findings as sanity checks).
  • Hypothesis-Driven RSA: Evaluates whether model embeddings organize according to external linguistic properties by computing Kendall’s $\tau$ correlation between model RDMs and hypothesis RDMs (e.g., word-similarity judgments or shared syntactic labels).
  • Convergence RSA: Tracks how a subset of vocabulary converges over training by correlating a checkpoint’s RDM against the fully trained model’s final RDM.
  • Scope: Analyses encompass 153 checkpoints of Pythia-12B and 186 checkpoints of OLMo-7B (339 models total), evaluating both input embeddings and output unembeddings (which are untied in both models) on ~28,000 full-word tokens.

Datasets

  • Semantic Datasets: SimLex-999, WordSim-353 (including its Similarity and Relatedness subsets), and pre-computed GloVe vectors for baseline comparison.
  • Syntactic Annotations: EWT Universal Dependencies treebank parses (for part-of-speech), Wiktionary grammatical/register tags, VerbNet verb classes, and a joint POS + Wiktionary matrix. A random clustering baseline served as a control.
  • Corpus Frequency: Word frequencies were extracted from the C4 corpus using a custom regex designed to handle contractions, numbers, and hyphenated terms.

Key Insights and Ideas

  • Linguistic Structure Emerges in the First 15%: Correlation with human similarity ratings (SimLex) and syntactic categories (POS, VerbNet) peaks within the first ~10,000–20,000 training steps (around 15% of total training) and plateaus (or slightly declines) thereafter.
  • Similarity Trumps Relatedness: Unlike static embeddings such as GloVe, transformer embeddings learn to sharply separate true semantic similarity (car vs. truck) from topical relatedness (car vs. road).
  • The Dual Effect of Word Frequency:
  • In absolute steps, high-frequency and function words converge to their final geometric configuration much earlier than low-frequency words.
  • When rescaled by exposures, high-frequency words change very little per gradient update, whereas rare words shift substantially per occurrence.
  • Initialization Bias Persists in Rare Words: The top 100 most frequent tokens completely break away from their random initialization ($0$ correlation). In contrast, less frequent lexical words preserve a non-zero correlation ($>0.1$) with their initial random vectors throughout all of pretraining.
  • Frequency Rank Is Encoded Continuously: Models progressively organize embeddings according to their relative frequency rank across the full duration of training, whereas raw occurrence counts fail to yield monotonic organization.

Key Results

  • Semantic Distinctions: At the final checkpoint, Pythia embeddings correlate strongly with WordSim-Similarity ($\tau = 0.56$) but poorly with WordSim-Relatedness ($\tau = 0.21$), whereas GloVe shows minimal distinction ($0.59$ vs. $0.50$).
  • Input–Output Alignment: Input and output embeddings show low overall correlation, but their mutual representational similarity peaks at ~15% of training, matching the peak of syntactic feature acquisition.
  • Late-Stage Morphological Refinement: In the final 85% of training, the largest pairwise distance decreases (up to $0.476$ change in Spearman distance) occur almost exclusively between rare, technical nouns and their plural/inflectional counterparts (e.g., redshift–redshifts, neutrinos–neutrino, qubit–qubits). The largest distance increases (up to $0.176$) involve common function words separating from corrupted subword fragments.

Limitations and Future Work

  • Confounding Frequency and Function: Grammatical function words are inherently among the highest-frequency tokens in natural language, making it difficult to completely disentangle functional syntactic convergence from raw frequency effects.
  • Subword Tokens Excluded: The study focuses solely on full-word tokens (~28,000 items), leaving the geometry and training dynamics of subword continuation fragments unexplored.
  • Untied Embeddings Only: Because contemporary open-weight LLMs with public pretraining checkpoints do not tie weights, the dynamics of weight-tied vocabularies remain unexamined.

Summary updated

Abstract

Large language models (LLMs) work by manipulating the geometry of input embedding vectors over multiple layers. Here, we ask: how are the input vocabulary representations of language models structured, and how and when does this structure evolve over training? To answer this question, we use representational similarity analysis, running a suite of experiments that correlate the geometric structure of the input embeddings and output embeddings of two open-source models (Pythia 12B and OLMo 7B) with semantic, syntactic, and frequency-based metrics over the course of training. Our key findings are as follows: 1) During training, the vocabulary embedding geometry quickly converges to high correlations with a suite of semantic and syntactic features; 2) Embeddings of high-frequency and function words (e.g., “the,” “of”) converge to their final vectors faster than lexical and low-frequency words, which retain some alignment with the bias in their random initializations. These findings help map the dynamic trajectory by which input embeddings organize around linguistic structure, revealing distinct roles for word frequency and function. Our findings motivate a deeper study of how the evolution of vocabulary geometry may facilitate specific capability gains during model training.
BibTeX
@inproceedings{papadimitriou2026vocabulary,
  author = {Isabel Papadimitriou and Jacob S. Prince},
  title = {{Vocabulary embeddings organize linguistic structure early in language model training}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=wcHY1ggWZI},
}
Figure