GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Models

Kunsheng Tang, Wenbo Zhou, Jie Zhang, Aishan Liu, Gelei Deng, Shuai Li, Peigui Qi, Weiming Zhang, Tianwei Zhang, Nenghai Yu

Introduction

As Large Language Models (LLMs) become increasingly central to content creation, coding, and decision-making, they carry the risk of magnifying and perpetuating societal prejudices. While researchers have developed various benchmarks to measure these biases, current tools often suffer from three significant limitations: a lack of inclusivity (failing to account for non-binary identities), fragility (where minor prompt changes yield inconsistent results), and inherent subjectivity.

To address these challenges, we introduce GenderCARE, an end-to-end framework designed to move from fragmented, binary-only testing to a standardized and robust "CARE" package: Criteria, Assessment, Reduction, and Evaluation. This framework provides a systematic approach to auditing and mitigating gender bias while preserving the core capabilities of the models.

The CARE Framework

The GenderCARE framework is built upon four foundational pillars:

  1. Criteria (CGEB): The authors define six dimensions for a "gold standard" benchmark: Inclusivity, Diversity, Explainability, Objectivity, Robustness, and Realisticity. These criteria ensure that evaluations are not only accurate but also representative of real-world complexities.
  2. Assessment (GenderPair): At the heart of the framework is GenderPair, a novel benchmark featuring 103,854 prompts across 207 distinct gender targets. Unlike simple template-based tests, GenderPair uses a "pair-set" approach (e.g., contrasting a biased descriptor like "shitty" with an anti-biased one like "excellent") to evaluate how models generate cohesive text across a wide spectrum of identities.
  3. Reduction (Debiasing): To mitigate identified biases, the framework employs Counterfactual Data Augmentation (CDA) to generate anti-biased versions of text. This is followed by Low-Rank Adaptation (LoRA) fine-tuning, an efficient method that updates a small subset of model parameters. This ensures the debiasing process is computationally affordable while maintaining the model's general language performance.
  4. Evaluation: The framework utilizes a dual-level evaluation strategy, analyzing both lexical choices (specific word selection) and semantic sentiment (the overall respectfulness or toxicity of the generated narrative).

Bridging the Inclusivity Gap

A primary contribution of GenderCARE is the inclusion of transgender and non-binary (TGNB) identities. Most existing benchmarks operate on a strict male-female binary, effectively erasing TGNB individuals from the evaluation process. GenderPair reveals that LLMs often struggle to recognize non-binary identities because they were trained on datasets where these groups are marginalized or absent. By bringing these identities into the evaluation fold, GenderCARE provides a more realistic assessment of a model's social impact.

Robustness and Performance

One of the critical "aha moments" in this research is the demonstration of template fragility. Many models appear unbiased when tested with one sentence structure but show heavy bias if the prompt is slightly reordered. GenderPair’s pair-based approach is specifically designed to be robust against these fluctuations, providing a more stable metric for fairness.

Furthermore, the research challenges the notion that fairness comes at the expense of utility. Across 17 different LLMs—including Llama, Vicuna, and Falcon—the debiasing technique reduced gender bias by an average of 35%, with some models seeing reductions of over 90%. Crucially, performance on general tasks (measured via GLUE and MMLU) fluctuated by less than 2%. In some instances, such as Social Science domains, debiasing actually improved model accuracy, suggesting that a nuanced understanding of gender identity is integral to high-level reasoning in human-centric fields.

Key Findings and Future Directions

  • Scaling is Not a Cure: While larger models (e.g., 13B parameters) generally showed less bias than smaller ones (7B), bias remained present across all scales, indicating that simply increasing model size will not solve the fairness problem.
  • Llama2_13B emerged as the most "naturally" fair model among the baselines tested, showing the lowest initial bias scores.
  • Limitations: Smaller models occasionally failed to follow the complex formatting requirements of GenderPair prompts, requiring the use of "perplexity" as a proxy for bias. Additionally, while the CARE methodology is adaptable, this study focused exclusively on English and gender identity.

Future work will involve expanding the framework to cover other protected characteristics such as race, age, and religion, and exploring the dynamics of gender bias in morphologically rich languages where gender is deeply embedded in grammatical structures.

Summary updated

BibTeX
@inproceedings{tang2024gendercare,
  author = {Kunsheng Tang and Wenbo Zhou and Jie Zhang and Aishan Liu and Gelei Deng and Shuai Li and Peigui Qi and Weiming Zhang and Tianwei Zhang and Nenghai Yu},
  title = {{GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Models}},
  booktitle = {CCS},
  year = {2024},
  doi = {10.1145/3658644.3670284},
}
Figure