Quantifying Gender Bias in Different Corpora

Marzieh Babaeianjelodar, Stephen Lorenz, Josh Gordon, Jeanna Matthews, Evan Freitag

Companion Proceedings of the Web Conference 2020 · 2020 · 47 citations · 10 references

DOIFull text

Open access

Concepts

TL;DR

Word‑embedding models excel at many NLP tasks, yet they inherit gender bias from their training corpora, and pre‑trained models are often applied to new tasks without scrutinizing the original data. In this paper, we quantify how gender bias varies across different training corpora. We measure direct gender bias on several pre‑trained models—including BERT’s Wikipedia and Book versions and GLUE‑fine‑tuned variants—and on extreme corpora such as the Jigsaw toxic identity dataset and the RtGender dataset to assess how fine‑tuning and corpus choice affect bias. Our results show that the Jigsaw toxic identity dataset’s direct gender bias is similar to the base Google model, whereas the RtGender dataset exhibits markedly higher bias, underscoring the need to report corpus details when deploying NLP systems in critical applications.

Abstract

Word embedding models have been shown to be effective in performing a wide variety of Natural Language Processing (NLP) tasks such as identifying audiences for web advertisements, parsing resumés to select promising job candidates, and translating documents from one language to another. However, it has been demonstrated that NLP systems learn gender bias from the corpora of documents on which they are trained. It is increasingly common for pre-trained models to be used as a starting point for building applications in a wide range of areas including critical decision making applications. It is also very easy to use a pre-trained model as the basis for a new application without careful consideration of the original nature of the training set. In this paper, we quantify the degree to which gender bias differs with the corpora used for training. We look especially at the impact of starting with a pre-trained model and fine-tuning with additional data. Specifically, we calculate a measure of direct gender bias on several pre-trained models including BERT’s Wikipedia and Book corpus models as well as on several fine-tuned General Language Understanding Evaluation (GLUE) benchmarks. In addition, we evaluate the bias from several more extreme corpora including the Jigsaw identity toxic dataset that includes toxic speech biased against race, gender, religion, and disability and the RtGender dataset that includes speech specifically labelled by gender. Our results reveal that the direct gender bias of the Jigsaw toxic identity dataset is surprisingly close to that of the base pre-trained Google model, but the RtGender dataset has significantly higher direct gender bias than the base model. When the bias learned by an NLP system can vary significantly with the corpora used for training, it becomes important to consider and report these details, especially for use in critical decision-making applications.

References

10