Evaluating Gender Bias in Large Language Models

Michael Döll, Markus Döhring, Andreas Müller
11/14/2024
cs.CL

No official code found. Best implementation: montalvorafael/GENDER-BIAS (0 stars, last commit 2025-04-23).

Abstract

Gender bias in artificial intelligence has become an important issue, particularly in the context of language models used in communication-oriented applications. This study examines the extent to which Large Language Models (LLMs) exhibit gender bias in pronoun selection in occupational contexts. The analysis evaluates the models GPT-4, GPT-4o, PaLM 2 Text Bison and Gemini 1.0 Pro using a self-generated dataset. The jobs considered include a range of occupations, from those with a significant male presence to those with a notable female concentration, as well as jobs with a relatively equal gender distribution. Three different sentence processing methods were used to assess potential gender bias: masked tokens, unmasked sentences, and sentence completion. In addition, the LLMs suggested names of individuals in specific occupations, which were then examined for gender distribution. The results show a positive correlation between the models' pronoun choices and the gender distribution present in U.S. labor force data. Female pronouns were more often associated with female-dominated occupations, while male pronouns were more often associated with male-dominated occupations. Sentence completion showed the strongest correlation with actual gender distribution, while name generation resulted in a more balanced 'politically correct' gender distribution, albeit with notable variations in predominantly male or female occupations. Overall, the prompting method had a greater impact on gender distribution than the model selection itself, highlighting the complexity of addressing gender bias in LLMs. The findings highlight the importance of prompting in gender mapping.

View on arXivView PDF

Code Implementations(1)

Evaluating and Mitigating Gender Bias in Profession Assignment by Large Language Models

00Jupyter NotebookApr 22, 20251 years ago

Cite this paper

@article{dll2024evaluating,
  title  = {Evaluating Gender Bias in Large Language Models},
  author = {Michael Döll and Markus Döhring and Andreas Müller},
  year   = {2024},
  eprint = {2411.09826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.09826v1}
}

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

Discussion