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

Jisu Shin, Hoyun Song, Huije Lee, Soyeong Jeong, Jong ParkACL 2024

Social bias in Large Language Models (LLMs) is often treated as an elusive "ghost in the machine"—recognized but difficult to quantify precisely. Traditional research typically attempts to detect bias indirectly, either through sentiment analysis of generated text or by evaluating model agreement with known stereotypes. However, a new study from researchers at KAIST, presented at ACL 2024, proposes a more direct approach: assigning LLMs specific "personas" and querying them directly to map the "shape" of their social perceptions.

The Challenge of Measuring Bias

Measuring bias is inherently complex. Current standard methods generally fall into two categories:

  1. Indirect Assessment: Analyzing the sentiment of text generated about specific groups.
  2. Stereotype Alignment: Checking if internal model embeddings align with pre-defined human stereotypes.

These methods suffer from two primary limitations. First, they are indirect and often rely on secondary tools (like sentiment classifiers) that can introduce their own errors. Second, they treat bias as a static, monolithic property of the model. In reality, bias is a dynamic social perception—how one group views another. This research addresses the need for a direct, multi-dimensional quantification of social perception from various viewpoints.

Conceptualizing social perception and bias within a society of diverse personas.

Methodology: A Direct Interrogation Framework

The researchers developed a novel strategy to "interrogate" LLMs using a persona-assigned Question Answering (QA) format.

Persona Assignment and Interrogation

Using system prompts, models are instructed to adopt specific identities (e.g., "Speak like an elder" or "Adopt the identity of a woman"). They are then presented with questions from the BBQ (Bias Benchmark for QA) dataset. These questions are intentionally unanswerable based on the provided context (e.g., "Who was willing to work harder?"). If a model selects a specific demographic instead of the correct "Unknown" response, it reveals an underlying bias.

Novel Scoring and Metrics

To capture the nuances of these choices, the study introduces a counter-scoring system. Unlike previous methods that only score the selected answer, this approach penalizes or rewards unselected options to capture the relative rank of preference.

The novel scoring system for positive and negative questions, incorporating rewards and penalties for selected and unselected options.

From this scoring, three key metrics are derived:

  • TARGET BIAS (TB): Measures the polarity (positive or negative) toward a specific group.
  • BIAS AMOUNT (BAMT): Measures the total volume of biased decisions, regardless of polarity.
  • PERSONA BIAS (PB): Quantifies how much the model’s perception shifts when a persona is assigned compared to its default state.

Key Insights: The "Shape" of Bias

The study revealed that LLMs often mirror human social behavior, particularly in-group favoritism. For instance, an "elder" persona tends to perceive older targets more positively, while a "kid" persona perceives them more negatively.

The researchers categorized models into four distinct types based on their TB and BAMT profiles:

  • Ideal: Low TB and Low BAMT (e.g., GPT-4), showing few biased choices and little group preference.
  • Balanced but Vast: Low TB but High BAMT (e.g., Llama-2 family). These models make many biased choices but distribute them "fairly" across groups.
  • Skewed and Scarce: High TB but Low BAMT (e.g., GPT-3.5). These models make fewer biased choices overall but consistently favor specific groups when they do.

Interestingly, the study found that steerability is a double-edged sword. Larger, more capable models are better at role-playing, which paradoxically makes them more susceptible to strong persona-driven biases as they "commit" more effectively to the assigned identity.

Results and Discussion

  • Model Robustness: GPT-4 emerged as the most robust model, demonstrating the lowest bias across nearly all metrics and domains.
  • Accuracy-Bias Correlation: A strong negative correlation (r = -0.91) was found between Bias Amount (BAMT) and QA accuracy. Models that make more biased choices are significantly less accurate on ambiguous tasks.
  • Scaling Effects: In the Llama-2 family, as models scale from 7b to 70b, their total Bias Amount decreases, but their Persona Bias (the shift caused by role-playing) increases.

Conclusion and Future Work

While this framework provides a powerful new lens for viewing LLM bias, it is currently limited by the scope of personas in the BBQ dataset and its focus on the English language. Future work aims to automate the creation of polarized questions to expand this methodology to niche domains and diverse cultural contexts. By asking models directly what shapes their bias, we move closer to building more transparent and equitable AI systems.

Summary updated

BibTeX
@inproceedings{shin2024ask,
  author = {Jisu Shin and Hoyun Song and Huije Lee and Soyeong Jeong and Jong Park},
  title = {{Ask LLMs Directly, "What shapes your bias?": Measuring Social Bias in Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.954},
}
Figure