Word Frequency as a Confounding Variable in Language Models

This direction is split into other directions: bias metric sensitivity. Its last version stays readable and citable here.

Version 1 of 131 papers54 conceptsfrozen 2026-10-04

When we measure what a language model "knows"—whether it is a social stereotype, a mathematical fact, or a shift in the meaning of a word—we often assume we are measuring semantic associations. However, a growing body of research suggests that our metrics are frequently "polluted" by a much simpler signal: how often a word appears in the training data.

Word frequency acts as a powerful confounding variable. It distorts the geometry of vector spaces, creates illusions of reasoning, and causes bias metrics to report prejudice where there may only be statistical noise.

The Geometry of Popularity

In word embedding models like Word2Vec or GloVe, the position of a word in vector space is determined by its context. Intuitively, we expect words with similar meanings to cluster together. However, Francisco Valentini and Edgar Altszyler have demonstrated a "frequency bug": high-frequency words naturally cluster together regardless of their actual meaning.

This mathematical artifact is so potent that it can produce "spurious" results. In Investigating the Frequency Distortion of Word Embeddings and Its Impact on Bias Metrics, the authors showed that common bias metrics report significant gender or ethnic stereotypes even when the models are trained on completely shuffled, meaningless text. Because the metrics are sensitive to word counts rather than just semantic usage, they mistake the statistical distribution of words for cultural prejudice.

The Bias Mirage in Masked Models

The problem extends beyond static embeddings to modern Masked Language Models (MLMs) like BERT. Standard methods for measuring social bias often involve "masking" a token (e.g., "[MASK] is a doctor") and seeing if the model prefers "He" or "She."

Masahiro Kaneko and Danushka Bollegala argue in Unmasking the Mask that these "thermometers" for bias are broken. MLMs naturally assign higher probabilities to high-frequency terms. If a model prefers a dominant social group's name, it might simply be because that name appeared more often in the training corpus, not because the model has learned a specific stereotypical association. To solve this, they proposed metrics like All Unmasked Likelihood (AUL), which evaluate the entire sentence without masking to reduce frequency-based noise.

Similarly, Zara Siddique and colleagues found that using raw model perplexity to measure bias is unreliable. In Who is better at math, Jenny or Jingzhen?, they highlight that a model might assign a high probability to a sentence simply because a name is common, confounding genuine stereotypical associations with simple linguistic familiarity.

Reasoning or Just Recall

The influence of frequency isn't limited to social associations; it also affects how models appear to "reason." Large Language Models (LLMs) often seem capable of numerical logic, but Yasaman Razeghi and Sameer Singh revealed a startling dependency in Impact of Pretraining Term Frequencies on Few-Shot Numerical Reasoning.

A model's accuracy on a math problem is tightly coupled with how frequently the specific numbers in that problem appeared in its pretraining data. What looks like mathematical logic is often just the model's ability to recall patterns associated with common terms. By using frequency-stratified evaluation, researchers can see that performance often drops significantly when models encounter rare numbers, suggesting they rely on memorization rather than generalizable rules.

The Instability of the Rare

While high frequency creates clusters of "popularity," low frequency creates "instability." For a model to learn a stable representation of a word, it needs to see that word in many diverse contexts.

Haim Dubossarsky and colleagues have shown that this instability makes it difficult to track how language changes over time. In Time-Out: Temporal Referencing for Robust Modeling of Lexical Semantic Change, they note that the "noise" in low-frequency word vectors can be easily misinterpreted as a meaningful shift in a word's definition.

This is particularly dangerous in specialized fields. Aixin Sun and Grace E. Lee found that medical concept embeddings are often unstable because they exist in the "long tail" of word distributions. If you train the same model twice on the same data, the nearest neighbors for a rare medical term might change entirely, making the model a liability for clinical use.

Building Robust Metrics

To move past these frequency artifacts, researchers are developing more "context-aware" statistical measures:

  • C-value: Introduced by Katerina T. Frantzi and Sophia Ananiadou, this measure identifies meaningful sub-phrases by looking at how often they appear across different longer contexts, rather than just their raw frequency.
  • Sensitivity Scores: In medical AI, Grace Yang and colleagues use sensitivity metrics to ensure models aren't relying on "spurious" high-frequency features that don't align with clinical reality.
  • Artificial Populations: Jesse Roberts and Douglas H. Fisher use Monte Carlo dropout to create "artificial populations" of models, allowing them to isolate genuine semantic behaviors from simple exposure bias.

By accounting for the "background noise" of word frequency, the field is moving toward a more precise understanding of what language models are actually learning—and what they are merely repeating.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_word_frequency_as_a_confounding_variable_e19cfb0e,
  title = {Word Frequency as a Confounding Variable in Language Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/word-frequency-as-a-confounding-variable-in-language-models/rdr_e19cfb0eaca2478e9733e2c3e0b580ca},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_word_frequency_as_a_confounding_variable_e19cfb0e_v1,
  title = {Word Frequency as a Confounding Variable in Language Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/word-frequency-as-a-confounding-variable-in-language-models/rdr_e19cfb0eaca2478e9733e2c3e0b580ca/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}