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

TL;DR

GenderCARE is a comprehensive framework designed to standardize the evaluation and mitigation of gender bias in Large Language Models (LLMs). By introducing the inclusive GenderPair benchmark and a targeted fine-tuning strategy, it reduces gender bias by over 35% on average across 17 different models while preserving core language capabilities.

What Problem Does This Paper Address?

While LLMs excel at generating natural language, they frequently amplify harmful societal stereotypes. Existing benchmarks designed to catch these biases suffer from structural flaws: template-based methods are fragile to minor phrasing changes, phrase-based methods often inherit biases from their source text (like Wikipedia), and option-based methods require heavy, subjective manual curation.

Crucially, almost all current benchmarks completely ignore transgender and non-binary (TGNB) identities, failing to provide a truly inclusive assessment. The authors address this gap by establishing unified criteria for gender equality benchmarks and building an end-to-end framework to assess and mitigate these multi-faceted biases.

Figure 1: Illustration of the limitations of template-based benchmarks (left) and phrase-based benchmarks (right).

Methods

The authors propose GenderCARE, an end-to-end architecture structured around four pillars: Criteria, Assessment, Reduction, and Evaluation.

  1. Criteria (CGEB): Defines six dimensions for a trustworthy benchmark: Inclusivity, Diversity, Explainability, Objectivity, Robustness, and Realisticity.
  2. Assessment (GenderPair): Uses a novel pair-based prompt design. Instead of rigid templates, the model is given a gender target and an attribute set containing a biased and an anti-biased descriptor (e.g., "silly" vs. "intelligent" for a female target). The model must choose a descriptor and generate a cohesive text.
  3. Reduction: A dual-pronged mitigation strategy. First, Counterfactual Data Augmentation (CDA) is used to create a high-quality, balanced debiasing dataset. Second, Low-Rank Adaptation (LoRA) fine-tuning updates only the parameters associated with gender bias, leaving the core model weights frozen.
  4. Evaluation: Bias is quantified at both the lexical level (using a Bias-Pair Ratio based on word choice) and the semantic level (using Toxicity and Regard metrics to analyze the sentiment of the generated text).
Figure 2: The GenderCARE framework for comprehensive gender bias assessment and reduction in LLMs. It consists of four key components: (I) Criteria for gender equality benchmarks; (II) Assessment of gender bias in LLMs using the proposed GenderPair benchmark aligned with the criteria; (III) Reduction of gender bias via counterfactual data augmentation and fine-tuning strategies; (IV) Evaluation metrics at both lexical and semantic levels for bias quantification.

Datasets

  • GenderPair (New Benchmark): Contains 103,854 prompts covering 207 distinct gender targets. It splits identities into three groups: Group 1 (strictly male), Group 2 (strictly female), and Group 3 (transgender, non-binary, and neutral identities). Descriptors were compiled from real-world media resources (X/Twitter, Reddit), occupational statistics, and sociological literature.
  • Baselines: The framework was cross-evaluated against existing datasets: Winoqueer (template-based), BOLD (phrase-based), and StereoSet (option-based).
  • Downstream Tasks: GLUE and MMLU were used to ensure the debiasing process did not degrade the models' general language understanding and knowledge capabilities.

Key Insights and Ideas

  • Scaling is Not a Panacea: While larger models (13B parameters) generally exhibit lower baseline bias than smaller ones (7B), significant biases still persist. Explicit debiasing strategies remain imperative regardless of model scale.
  • Inclusivity Requires Structural Changes: Moving past the gender binary requires a fundamental redesign of prompt targets. GenderCARE achieves this by incorporating neutral names, unique pronouns, and non-binary social titles drawn from real-world community censuses.
  • Debiasing Can Boost Specific Domains: Interestingly, fine-tuning on the debiased dataset occasionally improved performance in MMLU categories like Social Sciences. The authors hypothesize this is due to the high intersectionality of gender identity within these academic fields.

Key Results

  • Substantial Bias Reduction: The GenderCARE framework achieved an average gender bias reduction of over 35% across 17 different open-source LLMs (including Llama, Alpaca, Vicuna, and Orca), with peak reductions exceeding 90% on certain benchmarks.
  • Performance Preservation: Crucially, this mitigation came with virtually no penalty to general capabilities; performance fluctuations on GLUE and MMLU tasks remained strictly below a 2% threshold.

Limitations and Future Work

If an LLM has severe performance limitations, it might fail to follow the prompt instructions entirely (e.g., failing to format or mark the selected word). While the authors mitigate this by using perplexity approximations to estimate bias when coherent outputs cannot be elicited, it remains a challenge for weaker models.

For future work, the authors suggest that the systematic methodology of GenderCARE—combining benchmark creation, counterfactual datasets, and LoRA tuning—can be extended to address other critical dimensions of algorithmic bias, such as race, age, religion, and nationality.

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