NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anchored Answers: Unravelling Positional Bias in GPT-2's Multiple-Choice Questions

Ruizhe Li, Yanjun Gao · OpenReview

Abstract

Large Language Models (LLMs), such as the GPT-4 and LLaMA families, have demonstrated considerable success across diverse tasks, including multiple-choice questions (MCQs). However, these models exhibit a positional bias, particularly an even worse anchored bias in the GPT-2 family, where they consistently favour the first choice 'A' in MCQs during inference. This anchored bias challenges the integrity of GPT-2's decision-making process, as it skews performance based on the position rather than the content of the choices in MCQs. In this study, we utilise the mechanistic interpretability approach to identify the internal modules within GPT-2 models responsible for this bias. We focus on the Multi-Layer Perceptron (MLP) layers and attention heads, using the "logit lens" method to trace and modify the specific value vectors that contribute to the bias. By updating these vectors within MLP and recalibrating attention patterns to neutralise the preference for the first choice 'A', we effectively mitigate the anchored bias. Our interventions not only mitigate the bias but also improve the overall MCQ prediction accuracy for the GPT-2 family across various datasets. This work represents the first comprehensive mechanistic analysis of anchored bias from the failing cases in MCQs within the GPT-2 models, introducing targeted, minimal-intervention strategies that significantly enhance GPT2 model robustness and accuracy in MCQs.

Introduction: The Anchored Bias Problem

While Large Language Models (LLMs) are increasingly used for complex reasoning, they harbor a frustrating flaw: positional bias. In multiple-choice questions (MCQs), a model's performance often depends more on where the correct answer is placed than on the answer's actual content.

The authors identify a particularly extreme version of this in the GPT-2 family, termed "anchored bias." Unlike newer models that might show subtle preferences, GPT-2 models are "anchored" to the first option, 'A', frequently choosing it even when it is demonstrably incorrect.

Figure 2: Examples of anchored bias in GPT-2, where the model consistently predicts 'A' as the top token regardless of the correct answer's position.

Previous attempts to fix this usually relied on superficial "prompt engineering" (like shuffling choices). This research seeks to understand the internal machinery—the specific layers and neurons—that causes this hard-coded preference.

Methodology: Mechanistic Interpretability

The study employs mechanistic interpretability, treating neural networks like complex circuits to be reverse-engineered. The approach involves:

  1. Logit Lens: A technique used to "peek" into the model's internal state at every layer to observe how the final prediction (the logit) is formed.
  2. MLP Value Vector Analysis: The authors treat the Multi-Layer Perceptron (MLP) layers as key-value memories. They identified specific "value vectors" in the late-middle layers (e.g., Layer 9 in GPT-2 Small, Layer 20 in Medium) that disproportionately contribute to the 'A' prediction.
Figure 5: Internal structure of an MLP layer, showing the key-value memory mechanism targeted for intervention.
  1. Surgical Intervention: Instead of full retraining, a "minimal-intervention" strategy was used. The identified value vectors were updated by mathematically subtracting the 'A' bias and adding weight toward other possible choices ('B', 'C', etc.).
  2. Attention Recalibration: The researchers also experimented with swapping attention weights, forcing the model to pay more attention to the actual content of the correct answer choice rather than the "A" token position.

Experimental Setup

The GPT-2 family (Small, Medium, Large, and XL) was evaluated across five diverse datasets:

  • Indirect Object Identification (IOI): Linguistic name tracking.
  • Greater-than Task: Numerical logic (e.g., "The war lasted from 1732 to 17...").
  • Logical Deduction (LD): Three-object logic puzzles from Big-Bench.
  • ARC-Challenge: Grade-school science questions.
  • CommonsenseQA (CSQA): General knowledge and reasoning.

Key Insights and Results

  • Bias is Localized: Anchored bias is concentrated in specific MLP layers and attention heads, typically located near the end of the model but not in the final layers.
  • Neurons as Knowledge Banks: "Unembedding" problematic MLP value vectors revealed tokens like "A", "a", "first", and "1", proving the model has learned to favor the first position as a general rule.
  • Massive Accuracy Boost: After MLP vector updates, overall MCQ prediction accuracy improved by over 70% on average across all GPT-2 models and datasets.
  • Zero-Shot Recovery: Tasks where GPT-2 previously failed completely (0% accuracy) were "unlocked," allowing underlying reasoning capabilities to emerge.
  • Minimal Side Effects: Surgical edits did not significantly damage the model's general language generation or summarization abilities, as tested on WikiText2 and CNN/Daily Mail.

Conclusion and Future Work

This work demonstrates that positional bias can be mitigated through precise, internal interventions. While effective, the current direct vector update is a relatively "blunt" instrument. Future research should focus on even more precise "minimal-harm" editing algorithms and investigate how this bias manifests in newer architectures like Mixture-of-Experts (MoE) or State Space Models.

Summary updated

BibTeX
@inproceedings{li2025anchored,
  author = {Ruizhe Li and Yanjun Gao},
  title = {{Anchored Answers: Unravelling Positional Bias in GPT-2's Multiple-Choice Questions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=z5OXTGwbrg},
}
Figure