Who is better at math, Jenny or Jingzhen? Uncovering Stereotypes in Large Language Models

Zara Siddique, Liam D. Turner, Luis Espinosa AnkeEMNLP 2024

Introduction

As Large Language Models (LLMs) become increasingly integrated into daily life, understanding their inherent biases is critical. Most existing research on LLM bias is "US-centric," focusing primarily on binary comparisons between African American and White populations. Furthermore, measuring bias is technically challenging; researchers often use perplexity—a measure of how "surprised" a model is by a sentence—as a proxy. However, perplexity is often "noisy," as a model might assign low perplexity to a sentence simply because a name (like "John") is common in its training data, rather than due to a specific stereotype.

In this study, researchers introduce GlobalBias, a massive new dataset designed to uncover intersectional stereotypes across 40 distinct gender-by-ethnicity groups. The study reveals a troubling "scaling law" of bias: larger, more sophisticated models like GPT-4o and Claude 3 Opus produce more stereotypical content than their smaller predecessors, even when explicitly instructed to remain neutral.

Methodology: Isolating Stereotypes with APX

To address the limitations of standard perplexity, the authors developed Adjusted Perplexity across Descriptors (APX). This metric normalizes a model's perplexity score for a specific name-descriptor pair against the model's average perplexity for that name and that descriptor across the entire dataset. This isolates the specific association between a name and a trait, filtering out the noise of name frequency.

Figure 1: Calculation of Mean Normalized APX for the name 'Jingzhen' and the descriptor 'good at math'.

In addition to APX, the researchers employed Lexicon-Free Generation. Instead of checking for specific keywords, they asked models to generate full character profiles (age, hobbies, traits) based only on a given name. They then trained a Support Vector Machine (SVM) to determine if the generated text was stereotypical enough that the SVM could correctly guess the character's ethnicity or gender just from the description.

The GlobalBias Dataset

The core contribution of this work is the GlobalBias dataset, which includes:

  • 400 unique first names representing 40 demographic groups (e.g., Israeli Female, Brazilian Male).
  • 730 descriptors ranging from occupations to personality traits.
  • 876,000 sentences generated via templates to probe model internal representations.

Key Results and the Scaling Paradox

The study found that APX consistently outperformed raw perplexity in identifying ground-truth stereotypes (validated by human studies) by an average of 12.26% across seven different models.

Figure 5: Comparison of Accuracy (Acc.) between standard Perplexity (PPL) and the proposed Adjusted Perplexity (APX) across various LLMs.

One of the most significant findings is the Scaling Paradox. While one might expect more advanced models to be more neutral, the opposite occurred. GPT-4o and Claude 3 Opus showed significantly higher levels of stereotypical distinction in their outputs than smaller models like Llama 3 8B. As models become better at following instructions, they also become more efficient at retrieving nuanced stereotypes buried in their training data.

In the SVM classification task, GPT-4o reached 33.3% accuracy in identifying the correct "Gender + Ethnicity" group out of 40 classes—where random chance is only 2.5%. Models consistently associated specific groups with harmful or reductive clichés, such as linking "Arab Male" with "extremist" or "Japanese Female" with "shy," despite explicit safety prompts to avoid such associations.

Discussion: Intersectional Erasure and Proxy Markers

The research highlights that bias is not merely additive. The stereotypes for a "Chinese Female" are distinct from the sum of "Chinese" and "Female" stereotypes, emphasizing the necessity of an intersectional lens. Furthermore, models heavily over-rely on Religion as a proxy for ethnicity, often erasing cultural diversity by automatically associating specific ethnicities with a single religion (e.g., associating all Israeli names with Judaism).

Conclusion

This study demonstrates that current safety training and instruction-following capabilities do not necessarily mitigate deep-seated biases. By providing the GlobalBias dataset and the APX metric, the authors offer new tools for the research community to develop more robust debiasing techniques that move beyond simple keyword filtering and address the complex, intersectional nature of global stereotypes.

Summary updated

BibTeX
@inproceedings{siddique2024who,
  author = {Zara Siddique and Liam D. Turner and Luis Espinosa Anke},
  title = {{Who is better at math, Jenny or Jingzhen? Uncovering Stereotypes in Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.1035},
}
Figure