mlsanityData to 7 Oct 2026

An investigation of structures responsible for gender bias in BERT and DistilBERT

arXiv 2401.06495 ↗First posted 12 Jan 2024cs.CL cs.CY cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

In recent years, large Transformer-based Pre-trained Language Models (PLM) have changed the Natural Language Processing (NLP) landscape, by pushing the performance boundaries of the state-of-the-art on a wide variety of tasks. However, this performance gain goes along with an increase in complexity, and as a result, the size of such models (up to billions of parameters) represents a constraint for their deployment on embedded devices or short-inference time tasks. To cope with this situation, compressed models emerged (e.g. DistilBERT), democratizing their usage in a growing number of applications that impact our daily lives. A crucial issue is the fairness of the predictions made by both PLMs and their distilled counterparts. In this paper, we propose an empirical exploration of this problem by formalizing two questions: (1) Can we identify the neural mechanism(s) responsible for gender bias in BERT (and by extension DistilBERT)? (2) Does distillation tend to accentuate or mitigate gender bias (e.g. is DistilBERT more prone to gender bias than its uncompressed version, BERT)? Our findings are the following: (I) one cannot identify a specific layer that produces bias; (II) every attention head uniformly encodes bias; except in the context of underrepresented classes with a high imbalance of the sensitive attribute; (III) this subset of heads is different as we re-fine tune the network; (IV) bias is more homogeneously produced by the heads in the distilled model.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 12 Jan 2024.

Builds on

23 of 35 references.

References · 23

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  5. 2016Equality of Opportunity in Supervised Learningcited by 2,000
  6. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
  7. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  8. 2020Fairness in Machine Learning: A Surveycited by 369
  9. 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 346
  10. 2019Measuring Bias in Contextualized Word Representationscited by 275
  11. 2021I-BERT: Integer-only BERT Quantizationcited by 250
  12. 2015Semi-supervised Sequence Learningcited by 198
11 more
  1. 2020Social Biases in NLP Models as Barriers for Persons with Disabilitiescited by 182
  2. 2019What Do Compressed Deep Neural Networks Forget?cited by 164
  3. 2020Characterising Bias in Compressed Modelscited by 162
  4. 2020What Happens To BERT Embeddings During Fine-tuning?cited by 113
  5. 2019Evaluating the Underlying Gender Bias in Contextualized Word Embeddingscited by 94
  6. 2020Compression of Deep Learning Models for Text: A Surveycited by 64
  7. 2020Investigating Gender Bias in BERTcited by 40
  8. 2018What are the biases in my word embedding?cited by 30
  9. 2021Teacher's pet: understanding and mitigating biases in distillationcited by 20
  10. 2022Can Model Compression Improve NLP Fairnesscited by 18
  11. 2022FairDistillation: Mitigating Stereotyping in Language Modelscited by 8

Built on by

Cited by year

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

3 papers.