Mitigating Common Token Bias in Language Models

37 concepts31 papers1 proposal

Imagine asking a language model to classify a highly specialized medical text. Even if the prompt explicitly provides examples of rare diseases, the model might stubbornly output a common diagnosis like "flu."

This failure stems from a fundamental property of how language models are trained. During pre-training, models are optimized to predict the next token across massive web corpora. Naturally, common words, generic terms, and frequent labels appear orders of magnitude more often than rare ones. This creates a powerful prior probability distribution inside the model. When the model encounters uncertainty or subtle distinctions in zero-shot or few-shot prompts, it defaults to this prior, overriding the context provided in the prompt. This phenomenon is known as common token bias or label bias.

The Roots of Frequency Bias

Where does this statistical inertia come from? It is directly inherited from the non-uniform distribution of the pre-training data.

For instance, Shao et al. demonstrate this in the numerical domain with Benford’s Curse: Tracing Digit Bias to Numerical Hallucination in LLMs, showing that language models systematically over-generate smaller digits (like 1 and 2) because they internalize the skewed distributions of numbers in their training data. Similarly, Huang et al. point out in Can Language Models Be Specific? How? that pre-training datasets contain a much higher frequency of generic hypernyms (e.g., "animal") than specific hyponyms (e.g., "ocelot"). This frequency imbalance biases models toward safe, coarse-grained terms even when they possess the internal knowledge to provide precise details.

As Feng et al. observe in Calibrate Before Use: Improving Few-shot Performance of Language Models, this preference for common strings over task-relevant labels creates a systematic shift in the output distribution, causing the model to default to highly prevalent tokens from its original pre-training corpora.

How Bias Disrupts Downstream Tasks

This statistical inertia causes significant failures across various applications:

Shifting the Boundary: Calibration Techniques

To fix this without the prohibitive cost of full retraining, researchers have developed probability calibration techniques. The core intuition is simple: if we can measure the model's inherent bias toward certain tokens when given a "neutral" or "content-free" input, we can subtract or counteract that bias during real inference.

Content-Free and Domain Calibration

Feng et al. pioneered this by feeding content-free inputs like "N/A" into the prompt to estimate the model's raw token prior, then adjusting the output probabilities accordingly. To capture domain-specific quirks, Fei et al. introduced Domain-context Calibration (DC), which uses random words from the task's own dataset to neutralize vocabulary-induced biases.

In-Context and Prototypical Adjustments

Instead of relying on external data, Schwartz et al. proposed Leave-One-Out Calibration (LOOC) in Beyond Performance: Quantifying and Mitigating Label Bias in LLMs, which efficiently mitigates bias using only the examples already present in a few-shot prompt. Taking a geometric approach, Han et al. developed Prototypical Calibration (PROCA) in Prototypical Calibration for Few-shot Learning of Language Models, which learns a robust decision boundary by clustering model outputs using a Gaussian Mixture Model on unlabeled data.

Vector and Parameter-Efficient Calibration

Other approaches target the model's internal representations directly. Xu et al. show in Take Care of Your Prompt Bias! Investigating and Mitigating Prompt Bias in Factual Knowledge Extraction that prompt bias can be stripped away by subtracting the internal vector representation of a "blank" prompt from a real query. Meanwhile, He et al. introduce IntrCal in Prompt-Based Bias Calibration for Better Zero/Few-Shot Learning of Language Models, a parameter-efficient method that probes biases using meaningless prompts and calibrates the model by updating only its internal bias parameters (~0.1% of the total weights).

By explicitly modeling and subtracting these pre-training priors, calibration techniques allow the model's context-specific reasoning to shine through, ensuring that rare but correct answers are no longer drowned out by the sheer volume of common words.

Key Foundational Work

Calibrate Before Use: Improving Few-shot Performance of Language Models (2021) — contributed 2 concept elements to this direction.
Pathologies of Pre-trained Language Models in Few-shot Fine-tuning (2022) — contributed 2 concept elements to this direction.
From Discrimination to Generation: Knowledge Graph Completion with Generative Transformer (2022) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_common_token_bias_6a5bbd18,
  title = {common token bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/common-token-bias/rdr_6a5bbd18d37c43d7bbb3b39981b7fd86},
  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_common_token_bias_6a5bbd18_v1,
  title = {common token bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/common-token-bias/rdr_6a5bbd18d37c43d7bbb3b39981b7fd86/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake