arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.05021cs.CL
收藏

调查BERT中的性别偏见

Investigating Gender Bias in BERT

Singapore University of Technology and Design(新加坡科技设计大学)

Rishabh Bhardwaj, Navonil Majumder, Soujanya Poria

摘要:

上下文语言模型(CLM)将NLP基准测试推向了一个新的高度。在文本分类等下游任务中利用CLM提供的词嵌入已经成为一种新的规范。然而,除非得到解决,否则CLM很容易在数据集中学习固有的性别偏见。因此,下游NLP模型的预测可能会因性别词的变化而发生明显变化,例如将“他”替换为“她”,甚至是性别中性词。在本文中,我们将重点分析一个流行的CLM,即,BERT。我们分析了它在五个与情绪和情绪强度预测相关的下游任务中引起的性别偏见。对于每个任务,我们训练一个简单的回归利用BERT的词嵌入。然后,我们使用公平评估语料库评估回归的性别偏见。理想情况下,从具体的设计来看,模型应该从输入中丢弃性别信息特征。然而,结果显示,系统的预测对性别特定的单词和短语的依赖性很大。我们认为,这种偏见可以通过从词嵌入中去除性别特征来减少。因此,对于BERT中的每一层,我们识别主要编码性别信息的方向。由这些方向形成的空间被称为词嵌入语义空间中的性别子空间。我们提出了一种算法,发现细粒度的性别方向,即,每个BERT层有一个主方向。这就避免了在多个维度上实现性别子空间的需要,也避免了其他关键信息的遗漏。实验表明,去除这些方向的嵌入组件在减少下游任务中的BERT引起的偏差方面取得了很大的成功。

英文摘要:

Contextual language models (CLMs) have pushed the NLP benchmarks to a new height. It has become a new norm to utilize CLM provided word embeddings in downstream tasks such as text classification. However, unless addressed, CLMs are prone to learn intrinsic gender-bias in the dataset. As a result, predictions of downstream NLP models can vary noticeably by varying gender words, such as replacing "he" to "she", or even gender-neutral words. In this paper, we focus our analysis on a popular CLM, i.e., BERT. We analyse the gender-bias it induces in five downstream tasks related to emotion and sentiment intensity prediction. For each task, we train a simple regressor utilizing BERT's word embeddings. We then evaluate the gender-bias in regressors using an equity evaluation corpus. Ideally and from the specific design, the models should discard gender informative features from the input. However, the results show a significant dependence of the system's predictions on gender-particular words and phrases. We claim that such biases can be reduced by removing genderspecific features from word embedding. Hence, for each layer in BERT, we identify directions that primarily encode gender information. The space formed by such directions is referred to as the gender subspace in the semantic space of word embeddings. We propose an algorithm that finds fine-grained gender directions, i.e., one primary direction for each BERT layer. This obviates the need of realizing gender subspace in multiple dimensions and prevents other crucial information from being omitted. Experiments show that removing embedding components in such directions achieves great success in reducing BERT-induced bias in the downstream tasks.

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

↑