TL;DR
Large Language Models (LLMs) are revolutionizing technology but often inherit and amplify harmful societal biases. This survey provides a comprehensive taxonomy for the "LLM fairness lifecycle," categorizing how we define, measure, and mitigate bias—from the initial training data to the final generated text.
The Challenge of Algorithmic Discrimination
While LLMs like ChatGPT and Llama show human-level proficiency in many tasks, they are prone to "algorithmic discrimination." For example, an LLM might associate leadership traits more strongly with male names or produce toxic content when prompted about specific marginalized groups.
The challenge is that traditional machine learning fairness (which usually deals with simple classification labels) doesn't easily translate to the complex, generative world of natural language. Researchers have developed many disparate methods to tackle this, but the field lacked a unified framework. This paper bridges that gap by organizing the current state of "Fair LLM" research into a clear, actionable taxonomy.
A Comprehensive Taxonomy of LLM Fairness
The authors categorize the research into three main pillars: quantifying bias, mitigating bias, and identifying resources for evaluation.
1. Quantifying Bias (Metrics)
- Embedding-based: Measuring how close words like "doctor" are to "man" vs. "woman" in vector space (e.g., WEAT, SEAT).
- Probability-based: Analyzing the likelihood a model assigns to specific tokens in "fill-in-the-blank" templates (e.g., CrowS-Pairs).
- Generation-based: Evaluating the actual text produced by the model using auxiliary "judge" models or distribution analysis.
2. Mitigating Bias (Algorithms)
- Pre-processing: Changing the training data (Counterfactual Data Augmentation) or refining prompts.
- In-training: Modifying the loss function or adding "auxiliary modules" to penalize biased associations during the learning phase.
- Intra-processing: Adjusting the model during inference, such as "Model Editing" or changing how the model chooses the next word (Decoding Modification).
- Post-processing: Refining the output after it's generated, using techniques like Chain-of-Thought (CoT) reasoning or automated rewriting.
Evaluation Resources and Datasets
The paper provides a detailed directory of datasets used to evaluate LLM bias, categorized by the type of metric they support.
Key examples include:
- WinoBias & Winogender: Focused on gender stereotypes in occupations.
- CrowS-Pairs: Covers nine bias types, including race, religion, and age.
- BOLD & RealToxicityPrompts: Large-scale datasets for measuring toxicity and bias in open-ended generation.
- BBQ (Bias Benchmark for QA): Specifically designed to test for social biases in question-answering tasks.
Key Insights and Results
- The Three Sources of Bias: Bias stems from Training Data (historical prejudice), Embeddings (unintentional semantic clusters), and Label/RLHF Bias (subjective human feedback during alignment).
- Prompting as a Fairness Tool: One of the more significant findings is that Chain-of-Thought (CoT) prompting can reduce bias. By forcing the model to reason through a task step-by-step, it is less likely to rely on "lazy" stereotypical shortcuts.
- Gender Dominance: Approximately 50% of current fairness research in LLMs focuses solely on gender bias, leaving a significant gap in other areas like disability, age, or socioeconomic status.
- The Performance-Fairness Trade-off: Most mitigation techniques involve a "trade-off" where increasing fairness can slightly decrease the model's general accuracy, requiring careful manual tuning of hyperparameters.
Future Directions
The authors point out several pressing challenges for the community:
- Rational Data Augmentation: Simply swapping "man" for "woman" in a dataset can lead to illogical sentences (e.g., "a man who is pregnant"). We need "smarter" ways to balance data.
- Beyond Templates: Most current benchmarks use rigid templates. Future work needs to develop datasets that reflect the nuanced, conversational way humans actually use LLMs.
- Multi-Dimensional Fairness: Most current methods fix one bias at a time. Real-world applications require models that can handle multiple types of fairness (race, gender, and religion) simultaneously without conflict.
Summary updated