Introduction
Large Language Models (LLMs) are frequently evaluated on multiple-choice reasoning tasks in a zero-shot setting. However, these models often exhibit significant context-independent biases, preferring certain answers based on surface-level features like length, word frequency, or part-of-speech tags rather than logical relevance. This paper introduces Answer-Level Calibration (ALC), an unsupervised, model-agnostic method designed to mitigate these biases by subtracting the model's inherent preference for an answer from its conditional probability given a specific question.
Methodology
The core of ALC is to adjust the scoring of an answer choice by considering its probability in a "neutral" context. The proposed scoring function is:
$$Score = \log P(\text{Choice} | \text{Context}) - g \cdot \log P(\text{Choice} | \text{Neutral Context})$$
where the neutral context is a generic prompt such as "Answer:".
The innovation lies in the scaling factor $g$, which determines the degree of calibration. The authors explore three variants:
- Unscaled: $g = 1$, assuming bias is constant.
- ALC-TVD: Uses Total Variation Distance to measure the similarity between the first-token probability distributions of the context and the neutral prompt.
- ALC-BC: Uses the Bhattacharyya Coefficient for the same purpose.
When the model's internal state for the real context is similar to the neutral context, $g$ is high, indicating a higher likelihood of bias. Conversely, if the contexts are distinct, $g$ is lower, preserving the model's context-driven reasoning.
Experimental Setup
The method was evaluated across a massive battery of commonsense and reasoning benchmarks, including COPA, CommonsenseQA (CSQA), MCTACO, SocialIQA, PIQA, and WinoGrande. The primary models tested were GPT-2 (variants up to XL) and RoBERTa-large, demonstrating that the method works for both causal and masked language models.
Results and Discussion
ALC consistently improves zero-shot performance across most benchmarks. For instance, on CommonsenseQA, ALC-BC boosted GPT-2 XL accuracy from 37.18% (uncalibrated) to 49.71%.
As shown in the zero-shot results, ALC variants (TVD and BC) frequently outperform standard baselines like length normalization and token-level calibration. Notably, the authors found that length normalization often "overcompensates," severely penalizing short correct answers and leading to poor recall.
Furthermore, the benefits of ALC are not limited to a single model. The average gain in accuracy across multiple language models highlights the robustness and generalizability of the approach.
The researchers also observed that ALC remains effective in few-shot settings (1-shot and 4-shot), suggesting that the underlying bias persists even when examples are provided. However, on datasets like WinoGrande, which are specifically designed to be "bias-proof," all models still struggled to achieve high performance, suggesting that calibration cannot entirely substitute for underlying reasoning capability.
Conclusion
Answer-Level Calibration provides a computationally efficient and unsupervised way to improve the reliability of LLM evaluations. By "zeroing out" surface-level biases, ALC offers a clearer view of a model's true reasoning capabilities. Beyond performance enhancement, ALC serves as a diagnostic tool to identify "leaky" datasets where models can guess correctly without understanding the context. Future work may involve using ALC for dataset de-biasing and refining neutral prompt selection.
Summary updated