Answer-level Calibration for Free-form Multiple Choice Question Answering

Sawan KumarACL 2022

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:

  1. Unscaled: $g = 1$, assuming bias is constant.
  2. ALC-TVD: Uses Total Variation Distance to measure the similarity between the first-token probability distributions of the context and the neutral prompt.
  3. 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%.

Zero-shot accuracy comparison for GPT-2 XL across various benchmarks.

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.

Average accuracy gains across different language models using ALC.

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

BibTeX
@inproceedings{kumar2022answer,
  author = {Sawan Kumar},
  title = {{Answer-level Calibration for Free-form Multiple Choice Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.49},
}
Figure