arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.09590cs.CLcs.AI
收藏

面向上下文的反事实数据增强用于语言模型中的性别偏见缓解

Context-Aware Counterfactual Data Augmentation for Gender Bias Mitigation in Language Models

Shweta Parihar, Liu Guangliang, Natalie Parde, Lu Cheng

AI总结:

本文提出Context-CDA方法,通过增强上下文和过滤低质量反事实,有效缓解语言模型中的性别偏见,同时保持语言建模能力。

摘要:

在微调语言模型(LMs)以减轻社会偏见时,一个挑战是潜在的语言建模能力下降,这可能损害下游性能。反事实数据增强(CDA),一种广泛用于微调的方法,突显了这一问题,通过生成可能与现实世界分布不匹配的合成数据或创建过于简化的反事实,忽略了预训练语料库中改变的敏感属性(例如性别)的社会背景。为了解决这些限制,我们提出了一种简单而有效的上下文增强CDA方法,即Context-CDA,利用大型LMs来增强去偏语料库的多样性和上下文相关性。通过最小化去偏语料库与预训练数据之间的差异,该方法确保更好的对齐,提高语言建模能力。然后,我们采用基于不确定性的过滤方法,排除由目标较小的LM(即需要去偏的LM)认为低质量的生成反事实,进一步提高微调语料库的质量。在性别偏见基准上的实验结果表明,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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑