NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Ask LLMs Directly, "What shapes your bias?": Measuring Social Bias in Large Language Models

Jisu Shin, Hoyun Song, Huije Lee, Soyeong Jeong, Jong Cheol Park · DOI

TL;DR

This paper introduces a novel method to directly quantify social bias in Large Language Models (LLMs) by measuring their "social perceptions" towards different demographic groups. They propose three new metrics (TARGET BIAS, BIAS AMOUNT, PERSONA BIAS) that offer a more nuanced understanding of bias than previous approaches, revealing how LLMs internalize and express societal stereotypes.

What Problem Does This Paper Address?

Existing methods for measuring bias in LLMs often rely on indirect assessments, like sentiment analysis of generated text or measuring alignment with predefined stereotypes. These approaches have limitations: they can be complex to interpret, require additional processing steps, and don't fully capture the diverse "social perceptions" that individuals (and by extension, LLMs) might hold towards various demographic identities. The authors argue that to truly understand social bias in LLMs, we need to quantify how these models perceive different groups from various perspectives.

Methods

The core of the paper is a novel QA-based strategy for measuring social perception. Instead of just looking at whether an LLM agrees with a stereotype, they ask LLMs questions designed to elicit preferences or dislikes between demographic groups.

  • Persona Assignment: LLMs are prompted to adopt specific personas (e.g., "boy," "elder," "woman") to simulate diverse viewpoints.
  • Scoring Strategy: For each persona, the LLM answers questions about pairs of demographic targets. A "reward score" is given for positive responses and a "penalty score" for negative ones. Crucially, they also introduce "counter-reward" and "counter-penalty" scores for targets not selected, ensuring that even non-choices reflect a form of perception.
  • Novel Metrics:
    • TARGET BIAS (TB): Measures the polarity (positive/negative) of bias towards a specific target identity.
  • BIAS AMOUNT (BAMT): Quantifies the overall magnitude of bias towards a target, regardless of polarity.
  • PERSONA BIAS (PB): Assesses the variance in social perception across different personas, highlighting how much a persona's identity influences its bias.

These metrics are then aggregated to provide a multi-dimensional view of social bias.

Datasets

The primary dataset used for evaluation is BBQ (Bias Benchmark for QA). This dataset is designed to test bias in LLMs across social domains, featuring multiple-choice questions with demographic targets and contextual information. The authors used both ambiguous and disambiguated contexts from BBQ to test their method.

Key Insights and Ideas

  • Direct Quantification of Social Perception: The paper moves beyond indirect bias measures to directly quantify how LLMs "perceive" different groups, offering a more intuitive understanding.
  • Persona-Driven Bias: LLMs exhibit different biases depending on the persona they adopt, mirroring how human social perceptions can vary.
  • In-Group Favoritism: A consistent finding is that assigned personas tend to exhibit "in-group favoritism," perceiving their own demographic group more positively. This is observed across various domains and models.
  • Multi-Dimensional Bias: The proposed metrics (TB, BAMT, PB) collectively reveal different facets of bias (polarity, magnitude, persona influence) that a single metric like the standard Bias Score (BS) cannot capture.
  • LLMs Mimic Human Bias: The study suggests that LLMs, through their persona-based reasoning, can exhibit social biases similar to those observed in humans, including in-group favoritism.

Key Results

  • Quantitative Bias Measurement: The proposed metrics successfully quantified social biases in LLMs across five domains (Age, Race/Ethnicity, Religion, SES, Sexual Orientation) and five different LLMs (Llama-2 variants, GPT-3.5, GPT-4).
  • Persona Influence: Results showed that persona assignment significantly impacted bias scores, with models often favoring the group associated with their assigned persona. For example, an "elder" persona might show a positive bias towards "old" targets.
  • Model Differences: GPT-4 generally exhibited the lowest bias scores across most metrics and domains, suggesting a more robust resistance to bias compared to other models. Llama-2 models showed varying levels of bias, with larger models sometimes exhibiting more complex patterns.
  • Correlation with Accuracy: The BIAS AMOUNT (BAMT) metric showed a strong negative correlation with QA accuracy (r = -0.91), suggesting that higher bias might be associated with lower task performance.

Limitations and Future Work

  • Limited Demographic Coverage: The study used demographic categories from the BBQ dataset, which are not exhaustive. Future work could expand to other domains and identity groups.
  • Dataset Specificity: Experiments were conducted solely on the BBQ dataset. While the methodology is adaptable, creating new datasets with polarized questions for broader generalizability is suggested.
  • Language and Cultural Nuances: The current study focused on English. Analyzing bias in other languages, considering cultural dependencies, and adapting persona assignment across languages are important future directions.
  • Model Size and Variety: Due to computational constraints, a wider range of model sizes and architectures (e.g., Mixtral, PaLM 2) were not explored, which could yield richer insights.
  • Bias Mitigation: The paper focuses on measurement and does not propose specific bias mitigation strategies, leaving this for future research.
  • Unintended Biases: The authors acknowledge that LLM responses might reflect unintended biases, and it's unclear if these solely represent real-world biases or LLM-specific artifacts. Careful interpretation and investigation of the evaluation environment are recommended.

Summary updated

BibTeX
@misc{shin2024ask,
  author = {Jisu Shin and Hoyun Song and Huije Lee and Soyeong Jeong and Jong Cheol Park},
  title = {{Ask LLMs Directly, "What shapes your bias?": Measuring Social Bias in Large Language Models}},
  year = {2024},
  eprint = {2406.04064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.04064},
}
Figure