TL;DR
This paper introduces a novel method for debiasing Large Language Models (LLMs) by using ChatGPT to generate synthetic training data. This approach significantly improves the effectiveness of parameter-efficient debiasing techniques, outperforming existing datasets while preserving the LLMs' general language capabilities and offering broad applicability across different models and bias types.
What Problem Does This Paper Address?
Large Language Models (LLMs) are powerful tools but often inherit and perpetuate harmful social biases present in their training data. Debiasing these models is crucial for ethical AI deployment, but it's a challenging task. Traditional debiasing methods can be computationally expensive, require extensive data, and may degrade the model's general language abilities (a phenomenon known as catastrophic forgetting). While parameter-efficient methods offer a more resource-friendly alternative, their effectiveness heavily relies on the quality and generalizability of the debiasing data, which has been a bottleneck. Existing debiasing datasets can suffer from quality issues, limited scope, and may lead to overfitting to specific biases.
Methods
The core of this work is a novel approach to generate synthetic debiasing data using ChatGPT. They propose two main prompting strategies:
- Targeted Prompting: This method focuses on debiasing specific, known bias categories (e.g., gender, race). It involves prompting ChatGPT to generate social group terms and then create anti-stereotyped sentences using these terms. This strategy requires prior knowledge of the bias definition but yields superior debiasing performance for that specific category.
- General Prompting: This strategy aims to debias models across a broader range of biases without requiring prior specification of bias categories. ChatGPT is given more freedom to generate anti-stereotypical sentences, leveraging its internal knowledge. While slightly less effective than targeted prompting for specific biases, it offers broader applicability.
An auxiliary method, Loss-Guided Prompting, is also introduced. This technique aims to improve the "in-distribution" nature of the synthetic data for models like BERT, which can be more sensitive to out-of-distribution data. It involves using the loss scores from a target LLM to guide ChatGPT in generating more relevant synthetic examples.
The debiasing itself is performed using adapter tuning, a parameter-efficient method that freezes the original LLM parameters and introduces small, trainable adapter layers. This allows for efficient fine-tuning without catastrophic forgetting.
Datasets
The paper uses the following datasets for evaluation:
- CrowS-Pairs: A dataset containing pairs of sentences, one stereotyped and one anti-stereotyped, used to evaluate bias.
- StereoSet: Another dataset for evaluating bias, featuring stereotyped, anti-stereotyped, and unrelated sentences.
- BiasTestGPT: A more recent dataset designed to evaluate biases on unseen categories, generated using ChatGPT itself.
The authors' primary contribution is the synthetic data generated by ChatGPT through their proposed prompting strategies.
Key Insights and Ideas
- ChatGPT as a powerful debiasing data generator: The study demonstrates that ChatGPT can efficiently produce high-quality synthetic data that is effective for debiasing LLMs. This opens up new avenues for creating tailored debiasing datasets.
- Targeted vs. General Prompting Trade-off: Targeted prompting offers superior performance for specific biases when prior knowledge is available, while general prompting provides broader debiasing coverage, highlighting a trade-off between specificity and generality.
- Preservation of Language Capabilities: A significant finding is that their synthetic data-driven debiasing, especially with adapter tuning, not only reduces bias but also preserves or even slightly improves the LLMs' general language modeling scores (LMS), mitigating the catastrophic forgetting problem.
- Efficiency Gains: Debiasing with their synthetic data is significantly faster, with training times reduced by up to 60 times compared to baselines using large, existing datasets.
- Generalizability: The synthetic data shows broad generalizability across different LLM architectures (GPT-2 family, BERT) and various bias categories, including complex intersectional biases.
Key Results
- Superior Debiasing Performance: Their synthetic targeted approach achieved an average bias reduction of 10.2% on StereoSet and 7.9% on CrowS-Pairs for GPT-2 models, surpassing their baseline. For BERT, general debiasing reduced biases by 1.8% and 4.9%, exceeding existing methods.
- Intersectional Bias Mitigation: The method showed promising results in mitigating intersectional biases, reducing bias on GPT-2 by 12.9% for the "Mexican Females" category.
- Language Capability Preservation: For GPT-2 models, LMS variation was minimal (less than 1.3%), and for BERT, it was within 2.5%.
- Efficiency: Training was sped up by up to 60 times compared to Wikipedia-based baselines.
- Broad Applicability: The method demonstrated significant bias reduction across LLaMA-3B, OPT-350m, and GPT-Neo-125m models, with average bias reductions ranging from 3.3% to 7.2%.
Limitations and Future Work
- Dataset Bias: The evaluation primarily relied on benchmarks with a North American English focus, which may not fully represent global biases.
- ChatGPT Exposure: There's a concern that ChatGPT's exposure to test sets could have influenced the synthetic datasets, although they investigated this by comparing to other datasets and using BiasTestGPT.
- Dynamic Biases: Societal biases evolve, requiring continuous updates to the generated datasets.
- Subtler Biases: The current focus is on explicit biases, potentially overlooking subtler forms.
- Trade-off Exploration: While loss-guided prompting mitigates the trade-off between language capability and bias mitigation, it remains an important area for future research, especially for models like BERT.
- Future Directions: The authors suggest exploring improvements in synthetic data generation, applying the approach to other domains (e.g., vision), and investigating broader applications beyond fairness.
Summary updated