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:
- Few-Shot and In-Context Learning: In low-resource or few-shot settings, models often exhibit extreme prediction bias. Chen et al. found in Pathologies of Pre-trained Language Models in Few-shot Fine-tuning that pre-trained models frequently favor a single majority label for most inputs regardless of the actual content. Furthermore, Fei et al. identified "domain-label bias" in Mitigating Label Biases for In-context Learning, where the specific vocabulary of a task triggers a strong internal association that distorts classification accuracy.
- Generative Tasks and Entity Retrieval: When models are used to generate specific entities, the bias toward high-frequency vocabulary becomes a major bottleneck. For example, Zhang et al. note in From Discrimination to Generation: Knowledge Graph Completion with Generative Transformer that models struggle to generate rare or long-tail entity names because they do not align with high-frequency linguistic patterns. In open-ended visual question answering, Fu et al. show in Generate then Select: Open-ended Visual Question Answering Guided by World Knowledge that token bias leads models to favor common linguistic patterns over contextually accurate but less frequent terms.
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.