arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.00519cs.CL
收藏

探索与缓解基于编码器的 Transformer 模型中的性别偏见

Exploring and Mitigating Gender Bias in Encoder-Based Transformer Models

Department of Computer Science and Engineering BRAC University(计算机科学与工程系 BRAC大学)

Ariyan Hossain, Khondokar Mohammad Ahanaf Hannan, Rakinul Haque, Nowreen Tarannum Rafa, Humayra Musarrat, Shoaib Ahmed Dipu, Farig Yousuf Sadeque

AI总结:

本文研究了BERT等基于编码器的Transformer模型中的性别偏见,提出了量化偏见的新指标MALoR和基于反事实数据增强的持续预训练缓解方法,显著降低了偏见得分且不损害下游任务性能。

摘要:

语言模型中的性别偏见在自然语言处理领域受到了越来越多的关注。基于编码器的 Transformer 模型在各种语言任务中取得了最先进的性能,但已被证明表现出从其训练数据中继承的强烈性别偏见。本文研究了上下文词嵌入中的性别偏见,这是基于 Transformer 的模型的关键组件。我们重点关注 BERT、ALBERT、RoBERTa 和 DistilBERT 等著名架构,以考察它们对性别偏见的脆弱性。为了量化偏见程度,我们引入了一种新的度量指标 MALoR,它根据模型填充掩码标记的概率来评估偏见。我们进一步提出了一种缓解方法,涉及在通过 Counterfactual Data Augmentation 生成的性别平衡数据集上进行持续预训练。我们的实验显示,不同代词对的性别偏见得分显著降低。例如,在 BERT-base 中,应用我们的缓解方法后,“he-she”的偏见得分从 1.27 降至 0.08,“his-her”从 2.51 降至 0.36。我们还在其他模型中观察到类似的改进,BERT-large 中“male-female”偏见从 1.82 降至 0.10。我们的方法有效减少了性别偏见,同时没有损害模型在下游任务上的性能。

英文摘要:

Gender bias in language models has gained increasing attention in the field of natural language processing. Encoder-based transformer models, which have achieved state-of-the-art performance in various language tasks, have been shown to exhibit strong gender biases inherited from their training data. This paper investigates gender bias in contextualized word embeddings, a crucial component of transformer-based models. We focus on prominent architectures such as BERT, ALBERT, RoBERTa, and DistilBERT to examine their vulnerability to gender bias. To quantify the degree of bias, we introduce a novel metric, MALoR, which assesses bias based on model probabilities for filling masked tokens. We further propose a mitigation approach involving continued pre-training on a gender-balanced dataset generated via Counterfactual Data Augmentation. Our experiments reveal significant reductions in gender bias scores across different pronoun pairs. For instance, in BERT-base, bias scores for "he-she" dropped from 1.27 to 0.08, and "his-her" from 2.51 to 0.36 following our mitigation approach. We also observed similar improvements across other models, with "male-female" bias decreasing from 1.82 to 0.10 in BERT-large. Our approach effectively reduces gender bias without compromising model performance on downstream tasks.

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

↑