Gender bias and stereotypes in Large Language Models

Hadas KotekACM Collective Intelligence 2023 · OpenReview

TL;DR

This paper reveals that even the latest Large Language Models (LLMs) exhibit significant gender bias, favoring stereotypical occupations for male and female pronouns. These models not only reflect societal biases but amplify them, often providing inaccurate explanations for their biased choices. This highlights the critical need for robust bias testing and mitigation in LLM development.

What Problem Does This Paper Address?

Large Language Models (LLMs) have achieved remarkable feats in natural language processing, but a persistent concern is their tendency to perpetuate and even amplify societal biases, particularly gender stereotypes. While previous research has identified bias in LLMs, the authors question whether recent advancements, like Reinforcement Learning from Human Feedback (RLHF), have effectively mitigated this issue. They aim to investigate the extent of gender bias in current LLMs, focusing on how they associate occupations with gendered pronouns, and to understand the nature of their explanations for these associations.

Methods

The researchers developed a novel testing paradigm inspired by the WinoBias dataset but designed to avoid direct inclusion in LLM training data. Their approach involves presenting LLMs with ambiguous sentences containing two occupation-denoting nouns (one traditionally male-associated, one female-associated) and a gendered pronoun. The LLM is then asked to identify which person the pronoun refers to. Crucially, the sentences are constructed to be grammatically ambiguous, allowing for multiple interpretations. The study also probes the LLMs' ability to recognize this ambiguity and their reasoning behind their choices. Four recently published LLMs were tested.

Datasets

The study did not use existing datasets for training. For evaluation, they created a new benchmark consisting of 15 sentence schemas, each with four permutations of noun position and pronoun, resulting in 60 unique sentences. Occupation choices were based on prior literature measuring perceived gender associations rather than official labor statistics, as the authors hypothesized LLMs might better reflect societal perceptions.

Key Insights and Ideas

  • Stereotypes Over Ground Truth: LLMs align more closely with human perceptions of gendered occupations than with actual statistical distributions of men and women in those professions.
  • Bias Amplification: LLMs don't just reflect biases; they actively amplify them, particularly for female-associated occupations.
  • Ambiguity Blindness: LLMs largely fail to recognize the inherent ambiguity in the test sentences, defaulting to a categorical choice unless explicitly prompted.
  • Rationalized Bias: The explanations provided by LLMs for their biased choices are often factually inaccurate and serve to obscure the true, stereotype-driven reasoning. This suggests LLMs are providing "rationalizations" rather than genuine explanations.
  • Imbalanced Data is Key: The core issue stems from LLMs being trained on imbalanced datasets that reflect societal biases, and even RLHF struggles to fully overcome this.

Key Results

  • LLMs were 3-6 times more likely to choose an occupation that stereotypically aligned with a person's gender.
  • Models showed a 6.8 times higher likelihood of choosing a stereotypically female occupation with a female pronoun and a 3.4 times higher likelihood of choosing a stereotypically male occupation with a male pronoun.
  • LLMs recognized sentence ambiguity only 5% of the time in their initial responses but frequently acknowledged it when explicitly asked.
  • Explanations provided by LLMs were often based on inaccurate grammatical claims or societal stereotypes, with 5-15% of explanations being explicitly gender-biased.
  • The models' behavior correlated more strongly with human perception ratings (τ=0.67 for 'he', τ=0.49 for 'she') than with US Bureau of Labor Statistics (BLS) data (τ=0.5 for 'he', τ=0.46 for 'she').

Limitations and Future Work

The authors acknowledge several limitations:

  • Indirect Measure: The study uses occupation choice as an indirect measure of gender bias, and it's possible other factors are at play.
  • Explanation Trust: The explanations provided by LLMs are taken at face value, and their "reasoning" might not reflect true cognitive processes.
  • Business Logic: LLM outputs might be influenced by business logic or heuristics beyond the core model.
  • Scope: The study used a limited number of sentence schemas and prompts, and focused only on English.
  • Binary Gender: The research was limited to male and female pronouns, not accounting for non-binary or gender-neutral language.

Future work should expand the testing scope, include more diverse languages and cultural contexts, and investigate the impact of non-binary gender representations. The authors emphasize the need for LLMs to be carefully tested and designed to ensure equitable treatment of all individuals and communities.

Summary updated

Abstract

Large Language Models (LLMs) have made substantial progress in the past several months, shattering state-of-the-art benchmarks in many domains. This paper investigates LLMs’ behavior with respect to gender stereotypes, a known issue for prior models. We use a simple paradigm to test the presence of gender bias, build- ing on but differing from WinoBias, a commonly used gender bias dataset, which is likely to be included in the training data of current LLMs. We test four recently published LLMs and demonstrate that they express biased assumptions about men and women’s occu- pations. Our contributions in this paper are as follows: (a) LLMs are 3-6 times more likely to choose an occupation that stereotyp- ically aligns with a person’s gender; (b) these choices align with people’s perceptions better than with the ground truth as reflected in official job statistics; (c) LLMs in fact amplify the bias beyond what is reflected in perceptions or the ground truth; (d) LLMs ig- nore crucial ambiguities in sentence structure 95% of the time in our study items, but when explicitly prompted, they recognize the ambiguity; (e) LLMs provide explanations for their choices that are factually inaccurate and likely obscure the true reason behind their predictions. That is, they provide rationalizations of their biased behavior. This highlights a key property of these models: LLMs are trained on imbalanced datasets; as such, even with the recent successes of reinforcement learning with human feedback, they tend to reflect those imbalances back at us. As with other types of societal biases, we suggest that LLMs must be carefully tested to ensure that they treat minoritized individuals and communities equitably
BibTeX
@inproceedings{kotek2023gender,
  author = {Hadas Kotek},
  title = {{Gender bias and stereotypes in Large Language Models}},
  booktitle = {ACM Collective Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=azlHLbHfpI},
}
Figure