mlsanityData to 14 Oct 2026

Toward Localizing and Repairing Bias in Transformer Attention Heads

arXiv 2607.12863 ↗First posted 14 Jul 2026cs.SE cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer language models are increasingly used as software components, yet biased outputs remain difficult to localize and repair inside the model. Existing fairness testing and repair methods largely operate at the input-output or retraining level, while recent work suggests that bias-related behavior can concentrate in a small set of attention heads. This paper studies whether attention heads can be localized and repaired through a targeted inference-time intervention. We introduce ROBIN, a white-box head-level fairness debugging method that ranks attention heads using sensitivity to fairness probes and removes a small bias subspace from selected head outputs. In a four-model pilot study, ROBIN reduces the measured WinoBias gap across all models while preserving language-modeling quality better than whole-head zeroing. These preliminary results suggest that head-level bias repair should consider not only which heads are selected, but also how selected heads are modified.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 29 references that are in the map. First posted on arXiv 14 Jul 2026.

Builds on

20 of 29 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  5. 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
  6. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  7. 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 924
  8. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  9. 2019Are Sixteen Heads Really Better than One?cited by 816
  10. 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
  11. 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 455
  12. 2017Regularizing and Optimizing LSTM Language Modelscited by 205
8 more
  1. 2020Towards Debiasing Sentence Representationscited by 171
  2. 2017Fairness Testing: Testing Software for Discriminationcited by 126
  3. 2021Bias in Machine Learning Software: Why? How? What to do?cited by 93
  4. 2018Automated Directed Fairness Testingcited by 78
  5. 2022Fairness Testing: A Comprehensive Survey and Analysis of Trendscited by 62
  6. 2018Concolic Testing for Deep Neural Networkscited by 51
  7. 2023Bias A-head? Analyzing Bias in Transformer-Based Language Model Attention Headscited by 14
  8. 2025Attention Pruning: Automated Fairness Repair of Language Models via Surrogate Simulated Annealingcited by 5

Built on by

Not cited yet.