The Devil is in the Neurons: Interpreting and Mitigating Social Biases in Pre-trained Language Models
Not on the map. Why?
Abstract (arXiv)
Pre-trained Language models (PLMs) have been acknowledged to contain harmful information, such as social biases, which may cause negative social impacts or even bring catastrophic results in application. Previous works on this problem mainly focused on using black-box methods such as probing to detect and quantify social biases in PLMs by observing model outputs. As a result, previous debiasing methods mainly finetune or even pre-train language models on newly constructed anti-stereotypical datasets, which are high-cost. In this work, we try to unveil the mystery of social bias inside language models by introducing the concept of sc Social Bias Neurons. Specifically, we propose sc Integrated Gap Gradients (IG2) to accurately pinpoint units (i.e., neurons) in a language model that can be attributed to undesirable behavior, such as social bias. By formalizing undesirable behavior as a distributional property of language, we employ sentiment-bearing prompts to elicit classes of sensitive words (demographics) correlated with such sentiments. Our IG2 thus attributes the uneven distribution for different demographics to specific Social Bias Neurons, which track the trail of unwanted behavior inside PLM units to achieve interoperability. Moreover, derived from our interpretable technique, sc Bias Neuron Suppression (BNS) is further proposed to mitigate social biases. By studying BERT, RoBERTa, and their attributable differences from debiased FairBERTa, IG2 allows us to locate and suppress identified neurons, and further mitigate undesired behaviors. As measured by prior metrics from StereoSet, our model achieves a higher degree of fairness while maintaining language modeling ability with low cost.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 35 of its 44 references that are in the map. First posted on arXiv 14 Jun 2024.
Builds on
35 of 44 references.
References · 35
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2016Equality of Opportunity in Supervised Learningcited by 2,000
- 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,304
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
- 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 703
- 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 683
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2023From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Modelscited by 257
23 more
- 2019Evaluating Gender Bias in Machine Translationcited by 247
- 2020Measuring and Reducing Gendered Correlations in Pre-trained Modelscited by 222
- 2022On Second Thought, Let's Not Think Step by Step! Bias and Toxicity in Zero-Shot Reasoningcited by 191
- 2021Debiasing Pre-trained Contextualised Embeddingscited by 107
- 2021An Empirical Survey of the Effectiveness of Debiasing Techniques for Pre-trained Language Modelscited by 96
- 2021Trustworthy AI: A Computational Perspectivecited by 93
- 2020Multi-Dimensional Gender Bias Classificationcited by 80
- 2022Perturbation Augmentation for Fairer NLPcited by 51
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2021The Authors Matter: Understanding and Mitigating Implicit Bias in Deep Text Classificationcited by 18
- 2022Learning Fair Representations via Rate-Distortion Maximizationcited by 15
- 2021Toward Annotator Group Bias in Crowdsourcingcited by 14
- 2021Hate Speech Classifiers Learn Human-Like Social Stereotypescited by 12
- 2023Nichelle and Nancy: The Influence of Demographic Attributes and Tokenization Length on First Name Biasescited by 12
- 2022On Measuring Social Biases in Prompt-Based Multi-Task Learningcited by 10
- 2023Private-Library-Oriented Code Generation with Large Language Modelscited by 10
- 2022HERB: Measuring Hierarchical Regional Bias in Pre-trained Language Modelscited by 8
- 2023Bias Beyond English: Counterfactual Tests for Bias in Sentiment Analysis in Four Languagescited by 8
- 2023Can Programming Languages Boost Each Other via Instruction Tuning?cited by 7
- 2021Enhance Long Text Understanding via Distilled Gist Detector from Abstractive Summarizationcited by 6
- 2022Gender Bias in Meta-Embeddingscited by 6
- 2023Uncovering and Categorizing Social Biases in Text-to-SQLcited by 5
- 2023Parallel Sentence-Level Explanation Generation for Real-World Low-Resource Scenarioscited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 3.
6 papers.
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2024The Sociolinguistic Foundations of Language Modelingcited by 13
- 2026Locate-then-Sparsify: Attribution Guided Sparse Strategy for Visual Hallucination Mitigationcited by 2
- 2026Neuron-Level Interventions for Gendered and Gender-Neutral Generation in Language Modelscited by 2
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?cited by 0
- 2026Your AI, On a Dial: Controlling Investment Bias in LLMs with a Single Neuroncited by 0
- 2026Your AI, On a Dial: Controlling Investment Bias in LLMs with a Single Neuron24 Aug 2026
- 2026Neuron-Level Interventions for Gendered and Gender-Neutral Generation in Language Models29 May 2026
- 2026Locate-then-Sparsify: Attribution Guided Sparse Strategy for Visual Hallucination Mitigation17 Mar 2026
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?26 Sep 2025
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Survey16 Sep 2024
- 2024The Sociolinguistic Foundations of Language Modeling12 Jul 2024