Unmasking Contextual Stereotypes: Measuring and Mitigating BERT's Gender Bias

Marion Bartl, Malvina Nissim, Albert Gatt
10/27/2020
cs.CL

Official code: marionbartl/gender-bias-BERT (18 stars, Python, CC-BY-4.0, last commit 2022-09-19).

Abstract

Contextualized word embeddings have been replacing standard embeddings as the representational knowledge source of choice in NLP systems. Since a variety of biases have previously been found in standard word embeddings, it is crucial to assess biases encoded in their replacements as well.

Show full abstract

Focusing on BERT (Devlin et al., 2018), we measure gender bias by studying associations between gender-denoting target words and names of professions in English and German, comparing the findings with real-world workforce statistics. We mitigate bias by fine-tuning BERT on the GAP corpus (Webster et al., 2018), after applying Counterfactual Data Substitution (CDS) (Maudslay et al., 2019). We show that our method of measuring bias is appropriate for languages such as English, but not for languages with a rich morphology and gender-marking, such as German. Our results highlight the importance of investigating bias and mitigation techniques cross-linguistically, especially in view of the current emphasis on large-scale, multilingual language models.

View on arXivView PDF

Code Implementations(1)

CC-BY-4.0

This repository holds the code for my master thesis entitles "The Association of Gender Bias with BERT - Measuring, Mitigating and Cross-lingual portability"

1811PythonAug 21, 20204 years agoCC-BY-4.0

Similar Papers

Cite this paper

@article{bartl2020unmasking,
  title  = {Unmasking Contextual Stereotypes: Measuring and Mitigating BERT's Gender Bias},
  author = {Marion Bartl and Malvina Nissim and Albert Gatt},
  year   = {2020},
  eprint = {2010.14534},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.14534}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.14534.svg)](https://codeofpaper.com/paper/2010.14534)

Discussion