Skip to main content
QUICK REVIEW

[Paper Review] Context-Aware Counterfactual Data Augmentation for Gender Bias Mitigation in Language Models

Shweta Parihar, Liu Guangliang|arXiv (Cornell University)|Feb 10, 2026
Topic ModelingComputer Science0 citations
TL;DR

Context-CDA uses large LMs to create context-rich, gender-flipped counterfactuals, plus semantic-entropy filtering, to debias models without hurting language modeling performance, across multiple architectures.

ABSTRACT

A challenge in mitigating social bias in fine-tuned language models (LMs) is the potential reduction in language modeling capability, which can harm downstream performance. Counterfactual data augmentation (CDA), a widely used method for fine-tuning, highlights this issue by generating synthetic data that may align poorly with real-world distributions or creating overly simplistic counterfactuals that ignore the social context of altered sensitive attributes (e.g., gender) in the pretraining corpus. To address these limitations, we propose a simple yet effective context-augmented CDA method, Context-CDA, which uses large LMs to enhance the diversity and contextual relevance of the debiasing corpus. By minimizing discrepancies between the debiasing corpus and pretraining data through augmented context, this approach ensures better alignment, enhancing language modeling capability. We then employ uncertainty-based filtering to exclude generated counterfactuals considered low-quality by the target smaller LMs (i.e., LMs to be debiased), further improving the fine-tuning corpus quality. Experimental results on gender bias benchmarks demonstrate that Context-CDA effectively mitigates bias without sacrificing language modeling performance while offering insights into social biases by analyzing distribution shifts in next-token generation probabilities.

Motivation & Objective

  • Motivate the need to reduce gender bias in LMs without sacrificing language modeling capability.
  • Identify limitations of vanilla CDA, such as distribution mismatch and context insensitivity, and propose context-aware augmentation.
  • Propose Context-CDA with semantic-entropy filtering to improve data quality for debiasing.
  • Demonstrate model-agnostic debiasing effectiveness across diverse architectures (encoder, encoder-decoder, decoder).
  • Provide insights into how debiasing affects next-token distributions and downstream task performance.

Proposed method

  • Augment the debiasing corpus by prompting a large LM to rephrase gender-flipped counterfactuals with richer context (Context-CDA).
  • Apply semantic-entropy-based filtering to remove high-uncertainty/low-quality counterfactuals before fine-tuning.
  • Fine-tune target smaller LMs on the filtered Context-CDA data to debias representations.
  • Evaluate intrinsic bias with StereoSet and CrowS-Pairs across five models (BERT, DistilBERT, T5, GPT-2, Llama-3.2-1B).
  • Evaluate extrinsic bias and downstream task performance on BiasBios, STS-B, NLI-Bias, QNLI, RTE, and SST-2.

Experimental results

Research questions

  • RQ1Does Context-CDA reduce intrinsic gender bias more effectively than vanilla CDA across encoder, encoder-decoder, and decoder-only models?
  • RQ2Does semantic-entropy filtering improve the quality of counterfactuals and further enhance debiasing without hurting language modeling?
  • RQ3Is Context-CDA robust and model-agnostic across diverse architectures and downstream tasks?
  • RQ4How does debiasing affect language modeling metrics and next-token distributions in gendered contexts?
  • RQ5What are the trade-offs between bias mitigation and downstream task performance when using Context-CDA?

Key findings

  • Context-CDA reduces intrinsic bias more consistently than vanilla CDA across BERT, DistilBERT, GPT-2, Llama-3.2-1B, and T5.
  • Context-CDA preserves or improves language modeling capability (LMS and ICAT) compared to CDA and Vanilla.
  • Semantic-entropy filtering of counterfactuals further enhances debiasing effectiveness and maintains fluency.
  • Across architectures, Context-CDA shows robust, model-agnostic debiasing with balanced next-token distributions between male and female terms.
  • Extrinsic-bias performance on downstream tasks is maintained or improved under Context-CDA versus CDA.
  • Convergence analyses indicate bias-mitigation stabilizes around epochs 75–85, with no overfitting observed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.