[论文解读] Context-Aware Counterfactual Data Augmentation for Gender Bias Mitigation in Language Models
Context-CDA 使用大型语言模型创建具有丰富上下文、性别翻转的反事实,并结合语义熵筛选,在不损害语言模型性能的前提下对多种架构进行去偏,适用于多种模型。
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.
研究动机与目标
- 在不牺牲语言建模能力的前提下,说明需要降低语言模型的性别偏见。
- 识别普通 CDA 的局限性,如分布不匹配和上下文不敏感,并提出上下文感知的增强方法。
- 提出 Context-CDA 结合语义熵筛选以提升去偏数据质量。
- demonstrate 模型无关的去偏效果,覆盖多种架构(编码器、编码器-解码器、解码器)。
- 提供去偏如何影响下一个词分布和下游任务表现的洞见。
提出的方法
- 通过提示一个大型语言模型用更丰富的上下文改写性别翻转的反事实数据(Context-CDA)来扩充去偏语料。
- 在微调前对反事实数据应用基于语义熵的筛选,去除高不确定性/低质量样本。
- 在筛选后的 Context-CDA 数据上对目标较小的语言模型进行微调以去偏表示。
- 在五个模型(BERT、DistilBERT、T5、GPT-2、Llama-3.2-1B)上评估内在偏见(StereoSet、CrowS-Pairs)。
- 在 BiasBios、STS-B、NLI-Bias、QNLI、RTE、SST-2 上评估外在偏见及下游任务表现。
实验结果
研究问题
- RQ1Context-CDA 是否在编码器、编码器-解码器和解码器模型上比原生 CDA 更有效地降低内在性别偏见?
- RQ2语义熵筛选是否提升反事实的质量并进一步增强去偏效果,同时不损害语言建模能力?
- RQ3Context-CDA 是否在不同架构和下游任务中具有鲁棒性且模型无关?
- RQ4去偏如何影响语言建模指标和性别情境中的下一个词分布?
- RQ5在使用 Context-CDA 时,偏见缓解与下游任务性能之间有哪些权衡?
主要发现
- Context-CDA 相较于原生 CDA,在 BERT、DistilBERT、GPT-2、Llama-3.2-1B、T5 上对内在偏见的降低更为一致。
- Context-CDA 相较于 CDA 和 Vanilla,在语言建模能力(LMS 与 ICAT)上保持或改善。
- 对反事实样本进行语义熵筛选进一步提升去偏效果并保持流畅性。
- 在不同架构下,Context-CDA 展现出鲁棒的、模型无关的去偏性,男女术语之间的下一词分布更为平衡。
- 在下游任务上的外在偏见表现,在 Context-CDA 相对于 CDA 时得到保持或改善。
- 收敛性分析表明偏见缓解在大约 75–85 个训练轮后趋于稳定,未观察到过拟合。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。