mlsanityData to 7 Oct 2026

The Devil is in the Neurons: Interpreting and Mitigating Social Biases in Pre-trained Language Models

arXiv 2406.10130 ↗First posted 14 Jun 2024cs.CLcited by 6

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  4. 2016Equality of Opportunity in Supervised Learningcited by 2,000
  5. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
  6. 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,304
  7. 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
  8. 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 703
  9. 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 683
  10. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  11. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  12. 2023From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Modelscited by 257
23 more
  1. 2019Evaluating Gender Bias in Machine Translationcited by 247
  2. 2020Measuring and Reducing Gendered Correlations in Pre-trained Modelscited by 222
  3. 2022On Second Thought, Let's Not Think Step by Step! Bias and Toxicity in Zero-Shot Reasoningcited by 191
  4. 2021Debiasing Pre-trained Contextualised Embeddingscited by 107
  5. 2021An Empirical Survey of the Effectiveness of Debiasing Techniques for Pre-trained Language Modelscited by 96
  6. 2021Trustworthy AI: A Computational Perspectivecited by 93
  7. 2020Multi-Dimensional Gender Bias Classificationcited by 80
  8. 2022Perturbation Augmentation for Fairer NLPcited by 51
  9. 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
  10. 2021The Authors Matter: Understanding and Mitigating Implicit Bias in Deep Text Classificationcited by 18
  11. 2022Learning Fair Representations via Rate-Distortion Maximizationcited by 15
  12. 2021Toward Annotator Group Bias in Crowdsourcingcited by 14
  13. 2021Hate Speech Classifiers Learn Human-Like Social Stereotypescited by 12
  14. 2023Nichelle and Nancy: The Influence of Demographic Attributes and Tokenization Length on First Name Biasescited by 12
  15. 2022On Measuring Social Biases in Prompt-Based Multi-Task Learningcited by 10
  16. 2023Private-Library-Oriented Code Generation with Large Language Modelscited by 10
  17. 2022HERB: Measuring Hierarchical Regional Bias in Pre-trained Language Modelscited by 8
  18. 2023Bias Beyond English: Counterfactual Tests for Bias in Sentiment Analysis in Four Languagescited by 8
  19. 2023Can Programming Languages Boost Each Other via Instruction Tuning?cited by 7
  20. 2021Enhance Long Text Understanding via Distilled Gist Detector from Abstractive Summarizationcited by 6
  21. 2022Gender Bias in Meta-Embeddingscited by 6
  22. 2023Uncovering and Categorizing Social Biases in Text-to-SQLcited by 5
  23. 2023Parallel Sentence-Level Explanation Generation for Real-World Low-Resource Scenarioscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 1; 2026: 3.

6 papers.