Mechanics of Bias and Reasoning: Interpreting the Impact of Chain-of-Thought Prompting on Gender Bias in LLMs

Edie Pearman, Sophia Osborne, Mira Kandlikar-Bloch, Mina Arzaghi, Florian Carichon, Golnoosh Farnadi

TL;DR

This paper investigates whether Chain-of-Thought (CoT) prompting effectively mitigates gender bias in Large Language Models (LLMs). The study combines benchmark evaluations with mechanistic interpretability and finds that CoT offers only superficial improvements, failing to alter the underlying bias in LLM representations. Instead, CoT often leads to memorization and dataset familiarity rather than genuine understanding, highlighting the need for deeper mitigation strategies.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly used in sensitive applications, but they are known to encode and perpetuate gender biases present in their training data. Chain-of-Thought (CoT) prompting, a technique that encourages LLMs to generate step-by-step reasoning, has been proposed as a way to mitigate these biases. However, previous research has primarily focused on whether CoT improves performance on bias benchmarks, without deeply understanding how it affects the model's internal mechanisms. This paper aims to bridge this gap by examining whether CoT truly reduces gender bias or merely masks it through superficial changes, and to understand the quality of the reasoning generated by CoT.

Methods

The researchers employed a multi-faceted approach:

  • Benchmark Evaluation: They evaluated LLM performance on four established gender bias benchmarks (BBQ, CrowS-Pairs, StereoSet, and SocioEconomicQA) under both standard prompting and zero-shot CoT prompting. They measured accuracy (proportion of abstention answers) and "Diff-Bias" (preference for stereotypes over anti-stereotypes).
  • Mechanistic Interpretability: To understand the internal workings of the models, they adapted techniques like:
  • Stereotype Attention Score (SAS): This metric quantifies how much attention an LLM's attention heads pay to stereotypical versus anti-stereotypical tokens.
  • Hidden State Probing: They trained simple classifiers (MLPs) to predict the model's answer type (stereotype, anti-stereotype, or unknown) based on the model's internal representations (hidden states) at different layers.
  • Reasoning Chain Analysis: They developed a qualitative taxonomy to categorize different behaviors observed in the generated reasoning chains (e.g., reasoning correctness, abstention, dissociation, task hacking, bias). This involved manual annotation and training classifiers to analyze a large number of reasoning chains.

Datasets

The study utilized four established English-language multiple-choice QA datasets for benchmarking social bias:

  • BBQ (Bias Benchmark for Question Answering): Focuses on stereotype categories and includes both ambiguous and disambiguous settings.
  • CrowS-Pairs: Contains minimal sentence pairs designed to reveal social biases across various dimensions, with a focus on gender identity samples.
  • StereoSet: Evaluates model bias across gender, race, profession, and religion, using stereotypical and anti-stereotypical examples.
  • SocioEconomicQA: An augmented dataset for intrinsic bias analysis, specifically reformulated for financial status-related QA prompts with gendered entity pairs and an unknown option.

Key Insights and Ideas

  • CoT is Superficial: The most striking finding is that CoT prompting does not fundamentally alter how LLMs encode gender bias. While it might balance attention in specific "biased" clusters, the bias remains deeply embedded in hidden representations.
  • Reasoning Quality Matters: The "reasoning" generated by CoT is often of poor quality. Models frequently exhibit "dissociation" (inconsistent reasoning and answers), "task hacking" (exploiting prompt structure), or simply "abstention" due to dataset familiarity rather than genuine understanding.
  • Dataset Familiarity vs. Generalization: Improvements in abstention rates, particularly on datasets like BBQ, seem to stem from models recognizing and memorizing familiar patterns rather than developing a generalizable ability to avoid bias. This suggests that CoT might be exploiting data contamination.
  • Model Size and Training: While larger models and explicit reasoning training improve the correctness of reasoning chains, this doesn't translate to better bias mitigation. In fact, it can sometimes lead to "overthinking" and more complex, evasive, or even biased outputs.

Key Results

  • Inconsistent Bias Reduction: CoT prompting did not consistently reduce the gender bias gap across all models and datasets. While some models showed improved abstention rates, others saw performance decrease.
  • Attention Shifts, Not Elimination: Mechanistic analyses showed that CoT could rebalance attention in certain head clusters, but bias remained pervasive in hidden states.
  • Reasoning Chain Behaviors:
    • Abstention was the only behavior consistently associated with unknown answers, suggesting it's a key mechanism for CoT-based bias mitigation.
  • However, biased answers also co-occurred with dissociation, task hacking, and prompt violation, indicating that CoT doesn't always lead to sound reasoning.
  • Larger models generally showed better reasoning correctness, but this did not guarantee bias reduction.
  • Dataset Effects: Performance varied significantly across datasets, with models performing worse on less familiar data, reinforcing the idea of learned familiarity over generalization.

Limitations and Future Work

The authors acknowledge several limitations:

  • Dataset Structure and Binary Gender: The study focused on binary gender and specific dataset structures, which might not generalize to all bias types or contexts.
  • Prompting and CoT: The analysis of reasoning chains assumes they are faithful representations of internal processes, which may not always be true.
  • Causality: The causal relationship between attention patterns and biased outputs is still debated.
  • Data Leakage: Potential data leakage in probing methodologies could inflate metrics.

Future work could involve:

  • Extending Probing: Analyzing more layers to get a complete picture of bias encoding.
  • Focusing on High-Quality Reasoning: Restricting analyses to forward passes that produced high-quality reasoning to better understand how CoT positively shapes representations.
  • Developing Deeper Mitigation: Exploring approaches that target implicit representations underlying model behavior, rather than superficial reasoning.

Summary updated

BibTeX
@inproceedings{pearman2026mechanics,
  author = {Edie Pearman and Sophia Osborne and Mira Kandlikar-Bloch and Mina Arzaghi and Florian Carichon and Golnoosh Farnadi},
  title = {{Mechanics of Bias and Reasoning: Interpreting the Impact of Chain-of-Thought Prompting on Gender Bias in LLMs}},
  booktitle = {AFAA @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=VgjZ8ELxDQ},
}
Figure