Causally Testing Gender Bias in LLMs: A Case Study on Occupational Bias

Yuen Chen, Vethavikashini Chithrra Raghuram, Justus Mattern, Rada Mihalcea, Zhijing Jin
12/20/2022
cs.CLcs.LG

Official code: chenyuen0103/gender-bias (4 stars, Jupyter Notebook, last commit 2025-02-02).

Abstract

Generated texts from large language models (LLMs) have been shown to exhibit a variety of harmful, human-like biases against various demographics. These findings motivate research efforts aiming to understand and measure such effects.

Show full abstract

This paper introduces a causal formulation for bias measurement in generative language models. Based on this theoretical foundation, we outline a list of desiderata for designing robust bias benchmarks. We then propose a benchmark called OccuGender, with a bias-measuring procedure to investigate occupational gender bias. We test several state-of-the-art open-source LLMs on OccuGender, including Llama, Mistral, and their instruction-tuned versions. The results show that these models exhibit substantial occupational gender bias. Lastly, we discuss prompting strategies for bias mitigation and an extension of our causal formulation to illustrate the generalizability of our framework. Our code and data https://github.com/chenyuen0103/gender-bias.

View on arXivView PDF

Code Implementations(1)

41Jupyter Notebook, PythonDec 17, 20231 years ago

Similar Papers

Cite this paper

@article{chen2022causally,
  title  = {Causally Testing Gender Bias in LLMs: A Case Study on Occupational Bias},
  author = {Yuen Chen and Vethavikashini Chithrra Raghuram and Justus Mattern and Rada Mihalcea and Zhijing Jin},
  year   = {2022},
  eprint = {2212.10678},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10678}
}

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

Discussion