Introduction
Large Language Models (LLMs) often inherit and amplify human biases present in their pre-training data. To mitigate this, researchers typically use alignment techniques like fine-tuning on "helpful and harmless" datasets. However, a critical "poisoning" problem exists: even gold-standard public alignment datasets, such as Anthropic’s HH-RLHF, contain subtle gender biases. An audit revealed nearly 300 "chosen" responses in HH-RLHF that exhibited gender bias. Because even minimal contamination can compromise safety alignment, there is a pressing need for high-purity datasets focused specifically on gender equity.
The GenderAlign Pipeline
To address this, researchers introduced GenderAlign, an open-source dataset featuring 8,000 single-turn dialogues designed to purge gender bias. The authors developed an automated pipeline to generate high-quality preference pairs, consisting of a "chosen" unbiased response and a "rejected" biased one.
- Seed Collection: Seed texts were gathered from bias detection datasets (CORGI-PM, Workplace-Sexism) and seminal feminist literature, such as Caroline Criado Perez’s Invisible Women.
- Dialogue Generation: GPT-3.5 was prompted to act as both a human and a neutral assistant to create the "chosen" path. Conversely, an unaligned Llama2-7B model (fine-tuned on Alpaca) generated the "rejected" path, often producing responses that mirrored the biases found in the seeds.
- Alignment Training: The models were trained using Direct Preference Optimization (DPO) and QLoRA, teaching the model to prefer the unbiased response over the biased one directly.
Dataset Characteristics and Taxonomy
GenderAlign consists of 8,000 dialogues categorized into four types: Stereotypes, Discriminatory Language, Occupational/Educational Sexism, and Bias against Marginalized Genders.
A key insight from the study is that "quality over quantity" matters significantly in social alignment. Despite being much smaller than the 45k-sample HH-Harmless dataset, GenderAlign proved more effective. This is partly due to its balanced taxonomy; while HH-RLHF is heavily skewed toward "Discriminatory Language" (65%), GenderAlign provides a robust distribution across stereotypes and institutional sexism, leading to better de-biasing across varied contexts.
Experimental Results
The researchers evaluated Llama2-7B and 13B models fine-tuned on GenderAlign against standard benchmarks and human judgment:
- Human Preference: On a 3-point scale, human evaluators gave the Llama2-7B-GenderAlign model a score of 2.51, significantly higher than the 1.91 achieved by the model trained on HH-Harmless.
- BBQ Benchmark: In neutral contexts, the GenderAlign model reduced the bias score ($S_{DIS}$) from 1.9 to 0.4 on the 7B model.
- WinoGender: The model demonstrated a lower Pearson correlation between gendered pronouns and occupations, showing it was less likely to associate specific genders with specific jobs (e.g., assuming a doctor is male).
Limitations and Future Work
While effective, the study is currently limited to single-turn dialogues and gender bias specifically. Future iterations aim to expand the "Align" series to include other protected attributes like race and religion, as well as multi-turn "red-teaming" dialogues to address more subtle, evolving biases in conversation.
Summary updated