mlsanityData to 14 Oct 2026

Detecting Gender Bias in Transformer-based Models: A Case Study on BERT

arXiv 2110.15733 ↗First posted 15 Oct 2021cs.CL cs.LGcited by 8

Not on the map. Why?

Abstract (arXiv)

In this paper, we propose a novel gender bias detection method by utilizing attention map for transformer-based models. We 1) give an intuitive gender bias judgement method by comparing the different relation degree between the genders and the occupation according to the attention scores, 2) design a gender bias detector by modifying the attention module, 3) insert the gender bias detector into different positions of the model to present the internal gender bias flow, and 4) draw the consistent gender bias conclusion by scanning the entire Wikipedia, a BERT pretraining dataset. We observe that 1) the attention matrices, Wq and Wk introduce much more gender bias than other modules (including the embedding layer) and 2) the bias degree changes periodically inside of the model (attention matrix Q, K, V, and the remaining part of the attention layer (including the fully-connected layer, the residual connection, and the layer normalization module) enhance the gender bias while the averaged attentions reduces the bias).

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 19 of its 21 references that are in the map. First posted on arXiv 15 Oct 2021.

Builds on

19 of 21 references.

References · 19

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  7. 2020End-to-End Object Detection with Transformerscited by 7,414
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  9. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  11. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  12. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,917
7 more
  1. 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
  2. 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
  3. 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 350
  4. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
  5. 2018Gender Bias in Neural Natural Language Processingcited by 211
  6. 2021Societal Biases in Language Generation: Progress and Challengescited by 202
  7. 2020On Interpretability of Artificial Neural Networks: A Surveycited by 88

Built on by

Cited by year

Citing papers per year: 2022: 3; 2023: 3; 2024: 0; 2025: 2.

8 papers.