As Large Language Models (LLMs) become central to everything from coding assistants to customer service bots, their "social baggage"—the biases and stereotypes they inherit from human-generated training data—has become a critical concern. While many benchmarks exist to measure these biases, they are often fragmented, focusing on a single demographic or using incompatible metrics that make cross-model comparisons nearly impossible.
TL;DR
The Compositional Evaluation Benchmark (CEB) unifies LLM fairness testing by introducing a three-dimensional taxonomy: bias types, social groups, and evaluation tasks. With over 11,000 samples, CEB provides a standardized framework that reveals how model bias shifts depending on whether it is asked to recognize a stereotype versus generate a conversational response.
What Problem Does This Paper Address?
Current bias evaluation suffers from two major bottlenecks:
- Scope Limitation: Most datasets focus on a narrow slice of identity (e.g., exclusively gender or race), leaving other groups unexamined.
- Metric Incompatibility: Different benchmarks use disparate scoring systems (like log-likelihood versus sentence pair scores), making it hard to conclusively determine if one model is fairer than another across the board.
Without a unified view, researchers struggle to develop targeted mitigation strategies. A developer might fix gender bias in classification tasks while unknowingly leaving religious bias untouched in open-ended generation.
Methods
To address these gaps, the authors propose a compositional taxonomy that defines a dataset "configuration" based on three axes:
- Bias Type: Stereotyping (harmful abstractions) and Toxicity (insulting language).
- Social Group: Age, Gender, Race, and Religion.
- Task: Split into Direct Evaluation (Recognition, Selection) and Indirect Evaluation (Continuation, Conversation, Classification).
To build CEB, the researchers did not just aggregate old data; they used GPT-4 to augment existing datasets like BBQ and HolisticBias. For example, they transformed question-answering pairs into narrative sentences for recognition tasks, and modified conversational prompts to specifically elicit potentially toxic responses.
Datasets
CEB consists of 11,004 samples. It incorporates and adapts several well-known datasets:
- BBQ: Adapted for recognition and selection tasks.
- HolisticBias: Adapted for continuation and conversation tasks.
- Adult, Credit, and Jigsaw: Adapted for classification tasks.
By mapping these into their taxonomy, the authors filled critical gaps where no existing data existed—particularly for evaluating toxicity across various social groups in conversational settings.
Key Insights and Results
The authors evaluated six major LLMs, including GPT-4, GPT-3.5, and various Llama and Mistral versions, uncovering several critical insights:
- The "Recognition" Gap: Interestingly, almost all LLMs perform poorly on stereotyping recognition tasks. They struggle to identify when a sentence contains a subtle stereotype, even if they successfully avoid generating one themselves.
- Toxicity vs. Stereotyping: Models are generally better at avoiding toxicity than stereotyping. Toxicity is often tied to explicit "bad words," whereas stereotyping involves implicit associations that are harder for safety filters to catch.
- The Safety Alignment Trade-off: Smaller models like Llama2-7b show extremely high "Refuse to Answer" (RtA) rates. When faced with a prompt involving a sensitive group, they often default to a canned refusal, which the authors argue limits comprehensive bias evaluation.
- GPT-4 as a Reliable Judge: A key finding was the high alignment between human evaluators and GPT-4 when scoring bias. This suggests that powerful LLMs can serve as scalable, automated judges for fairness, reducing the need for expensive manual audits. Overall, GPT-4 consistently achieved the best performance (lowest bias and highest accuracy) across most configurations.
Limitations and Future Work
While CEB is a massive step forward, the authors acknowledge several areas for growth:
- Expanding Identities: The current version focuses on four social groups. Future iterations should include nationality, physical appearance, and non-binary gender identities.
- Metric Evolution: While they unified many metrics, they still rely on three distinct categories (F1, Bias Score, and Fairness metrics like Demographic Parity). Achieving a single, universal "Fairness Score" remains a challenge.
- The "Judge" Bias: Using GPT-4 to evaluate other models might introduce its own inherent biases into the benchmark results.
CEB provides the community with a much-needed stress test for LLM fairness, moving the field closer to models that are not just powerful, but predictably equitable.
Summary updated