arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2110.15733cs.CLcs.LG
收藏

基于转换器的模型中性别偏见的检测--以BERT为例

Detecting Gender Bias in Transformer-based Models: A Case Study on BERT

University of Connecticut(康涅狄格大学);University of New Mexico(新墨西哥大学);George Mason University(乔治梅森大学);Illinois Institute of Technology(伊利诺伊理工学院);Stevens Institute of Technology(斯蒂文斯理工学院)

Bingbing Li, Hongwu Peng, Rajat Sainju, Junhuan Yang, Lei Yang, Yueying Liang, Weiwen Jiang, Binghui Wang, Hang Liu, Caiwen Ding

摘要:

在本文中,我们提出了一种新的性别偏见检测方法,利用注意力地图的transformer为基础的模型。通过对注意力模块的修改,设计了性别偏见检测器; 3)将性别偏见检测器插入到模型的不同位置,以呈现性别偏见的内部流程,4)通过扫描整个维基百科(一个BERT预训练数据集)得出一致的性别偏见结论。我们观察到:1)注意力矩阵,Wq和Wk比其他模块引入更多的性别偏见(包括嵌入层)和2)偏差度在模型内部周期性地变化(注意矩阵Q,K,V,以及注意层的剩余部分(包括全连接层,剩余连接,以及层归一化模块)增强了性别偏差,而平均注意力减小了偏差)。

英文摘要:

In this paper, we propose a novel gender bias detection method by utilizing attention map for transformer-based models. We 1) give an intuitive gender bias judgement method by comparing the different relation degree between the genders and the occupation according to the attention scores, 2) design a gender bias detector by modifying the attention module, 3) insert the gender bias detector into different positions of the model to present the internal gender bias flow, and 4) draw the consistent gender bias conclusion by scanning the entire Wikipedia, a BERT pretraining dataset. We observe that 1) the attention matrices, Wq and Wk introduce much more gender bias than other modules (including the embedding layer) and 2) the bias degree changes periodically inside of the model (attention matrix Q, K, V, and the remaining part of the attention layer (including the fully-connected layer, the residual connection, and the layer normalization module) enhance the gender bias while the averaged attentions reduces the bias).

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

↑