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

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

Ruizhe Li, Yanjun Gao

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

While Large Language Models (LLMs) are often treated as objective reasoning engines, they are prone to subtle "positional biases"—favoring information based on where it appears rather than its content. In the GPT-2 family, this manifests as a particularly stubborn "anchored bias": the model has a massive statistical preference for the letter 'A'. When presented with a multiple-choice question (MCQ), GPT-2 will almost always predict 'A' as the next token, even if 'A' is a nonsensical answer.

Figure 4: GPT-2 models exhibit a strong anchored bias, favoring the first option 'A' regardless of the correct answer.

Methods: Mechanistic Interpretability

To address this, we employ Mechanistic Interpretability, a field that treats neural networks like complex circuits to be reverse-engineered. Our approach involves three main steps:

  1. Localization (The "Logit Lens"): We use a technique called the "logit lens" to look at intermediate layers of the model. By projecting the internal states of these layers back into the vocabulary space, we can see exactly when and where the model starts leaning toward 'A'.
  2. MLP Editing: We identified specific Multi-Layer Perceptron (MLP) layers that act as "key-value memories" for this bias. Certain "value vectors" within these layers were found to be essentially hard-coded to promote the 'A' token. We updated these vectors mathematically—subtracting the 'A' component and adding components for 'B', 'C', 'D', and 'E'—to neutralize the preference.
  3. Attention Recalibration: We also identified specific attention heads that disproportionately focused on the 'A' position in the prompt. We experimented with "swapping" attention weights between the anchored position and the correct answer position to redirect the model's focus.
Figure 6: Diagram of the internal MLP and Attention modules alongside the Logit Lens method used to trace and modify bias.

Datasets and Evaluation

The study evaluated the GPT-2 family (Small, Medium, Large, and XL) across five diverse datasets to ensure the bias wasn't task-specific:

  • IOI (Indirect Object Identification): A linguistic task (e.g., "Alice gave a book to Bob. Who received it?").
  • LD (Logical Deduction): A Big-Bench subtask involving three-object logic puzzles.
  • Greater-than: Predicting valid years (e.g., "The war lasted from 1732 to 17__").
  • ARC-Challenge: Grade-school level science questions.
  • CSQA (CommonsenseQA): General knowledge and reasoning questions.

Crucially, we also tested the models on randomized prompts (using gibberish characters and words) to prove that the anchored bias is a structural flaw, not a reaction to the text's meaning.

Key Insights

  • Bias as "Knowledge": The anchored bias isn't just a glitch; it is stored in the MLP layers exactly like factual knowledge. The model "knows" that 'A' is the answer in the same way it "knows" a capital city.
  • The "Higher Layer" Rule: The bias is most dominant in the middle-to-late layers of the models (e.g., Layer 9 in GPT2-Small, Layer 34 in GPT2-Large). This supports the theory that lower layers handle basic syntax, while higher layers manage semantic concepts and decision-making.
  • Surgical vs. Blunt Force: Traditional fine-tuning is like doing whole-body physical therapy to fix a stubbed toe. This research shows that editing a few specific "value vectors" (minimal intervention) is enough to drastically change model behavior without retraining the entire system.

Results

Our interventions led to massive accuracy gains. After editing the identified MLP value vectors, the average MCQ accuracy across all datasets and GPT-2 models jumped by over 70%. In specific tasks like IOI, GPT2-Small went from a failing grade to nearly 100% accuracy after the internal weights were adjusted. The intervention proved robust, working even on evaluation sets that were not used during the initial bias-discovery phase.

Limitations and Future Work

While effective for the GPT-2 family (up to 1.5B parameters), it remains to be seen if massive models like GPT-4 or Llama-3 have similar "anchored" circuits or if their biases are more distributed. Additionally, direct weight editing is powerful but risky; we noted a slight degradation in general language abilities like summarization. Developing "minimal-harm" editing algorithms and exploring non-Transformer architectures are key next steps.

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