mlsanityData to 7 Oct 2026

Tracing Stereotypes in Pre-trained Transformers: From Biased Neurons to Fairer Models

arXiv 2601.05663 ↗First posted 9 Jan 2026cs.SE cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

The advent of transformer-based language models has reshaped how AI systems process and generate text. In software engineering (SE), these models now support diverse activities, accelerating automation and decision-making. Yet, evidence shows that these models can reproduce or amplify social biases, raising fairness concerns. Recent work on neuron editing has shown that internal activations in pre-trained transformers can be traced and modified to alter model behavior. Building on the concept of knowledge neurons, neurons that encode factual information, we hypothesize the existence of biased neurons that capture stereotypical associations within pre-trained transformers. To test this hypothesis, we build a dataset of biased relations, i.e., triplets encoding stereotypes across nine bias types, and adapt neuron attribution strategies to trace and suppress biased neurons in BERT models. We then assess the impact of suppression on SE tasks. Our findings show that biased knowledge is localized within small neuron subsets, and suppressing them substantially reduces bias with minimal performance loss. This demonstrates that bias in transformers can be traced and mitigated at the neuron level, offering an interpretable approach to fairness in SE.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 18 of its 40 references that are in the map. First posted on arXiv 9 Jan 2026.

Builds on

18 of 40 references.

References · 18

  1. 2017Attention Is All You Needcited by 59,932
  2. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  3. 2019Language Models as Knowledge Bases?cited by 1,922
  4. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
  5. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  6. 2016Semantics derived automatically from language corpora contain human-like biasescited by 894
  7. 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 703
  8. 2023Bias and Fairness in Large Language Models: A Surveycited by 626
  9. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  10. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  11. 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
  12. 2021Fairness Perceptions of Algorithmic Decision-Making: A Systematic Review of the Empirical Literaturecited by 27
6 more
  1. 2025BitsAI-CR: Automated Code Review via LLM in Practicecited by 22
  2. 2025BiasEdit: Debiasing Stereotyped Language Models via Model Editingcited by 18
  3. 2022Adaptive Fairness Improvement Based on Causality Analysiscited by 17
  4. 2025Understanding and Mitigating Gender Bias in LLMs via Interpretable Neuron Editingcited by 14
  5. 2023Revisiting Sentiment Analysis for Software Engineering in the Era of Large Language Modelscited by 13
  6. 2024RECOVER: Toward Requirements Generation from Stakeholders' Conversationscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.