Leveraging Large Language Models to Measure Gender Representation Bias in Gendered Language Corpora

Erik Derner, Sara Sansalvador de la Fuente, Yoan Gutiérrez, Paloma Moreda, Nuria Oliver
6/19/2024
cs.CLcs.CY

No official code found. Best implementation: ellisalicante/grb-corpora (0 stars, MIT, last commit 2025-08-15).

Abstract

Large language models (LLMs) often inherit and amplify social biases embedded in their training data. A prominent social bias is gender bias. In this regard, prior work has mainly focused on gender stereotyping bias - the association of specific roles or traits with a particular gender - in English and on evaluating gender bias in model embeddings or generated outputs. In contrast, gender representation bias - the unequal frequency of references to individuals of different genders - in the training corpora has received less attention. Yet such imbalances in the training data constitute an upstream source of bias that can propagate and intensify throughout the entire model lifecycle. To fill this gap, we propose a novel LLM-based method to detect and quantify gender representation bias in LLM training data in gendered languages, where grammatical gender challenges the applicability of methods developed for English. By leveraging the LLMs' contextual understanding, our approach automatically identifies and classifies person-referencing words in gendered language corpora. Applied to four Spanish-English benchmarks and five Valencian corpora, our method reveals substantial male-dominant imbalances. We show that such biases in training data affect model outputs, but can surprisingly be mitigated leveraging small-scale training on datasets that are biased towards the opposite gender. Our findings highlight the need for corpus-level gender bias analysis in multilingual NLP. We make our code and data publicly available.

View on arXivView PDF

Code Implementations(1)

MIT

Repository accompanying our paper titled "Leveraging Large Language Models to Measure Gender Representation Bias in Gendered Language Corpora", presented at the 6th Workshop on Gender Bias in Natural Language Processing at ACL 2025. The research and experimental evaluation has been conducted for Spanish and Valencian.

01Jupyter NotebookJun 13, 20251 years agoMIT

Similar Papers

Cite this paper

@article{derner2024leveraging,
  title  = {Leveraging Large Language Models to Measure Gender Representation Bias in Gendered Language Corpora},
  author = {Erik Derner and Sara Sansalvador de la Fuente and Yoan Gutiérrez and Paloma Moreda and Nuria Oliver},
  year   = {2024},
  eprint = {2406.13677},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13677v3}
}

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/2406.13677.svg)](https://codeofpaper.com/paper/2406.13677)

Discussion