Pretrained text encoders, such as BERT, have been applied increasingly in various natural language processing (NLP) tasks, and have recently demonstrated significant performance gains. However, recent studies have demonstrated the existence of social bias in these pretrained NLP models. Although prior works have made progress on word-level debiasing, improved sentence-level fairness of pretrained encoders still lacks exploration. In this paper, we proposed the first neural debiasing method for a pretrained sentence encoder, which transforms the pretrained encoder outputs into debiased representations via a fair filter (FairFil) network. To learn the FairFil, we introduce a contrastive learning framework that not only minimizes the correlation between filtered embeddings and bias words but also preserves rich semantic information of the original sentences. On real-world datasets, our FairFil effectively reduces the bias degree of pretrained text encoders, while continuously showing desirable performance on downstream tasks. Moreover, our post-hoc method does not require any retraining of the text encoders, further enlarging FairFil's application space.
Debiasing Embeddings for Reduced Gender Bias in Text Classification
Google(谷歌)
(Bolukbasi等人,2016)证明了预训练的词嵌入可以从它们所训练的数据中继承性别偏见。我们使用职业分类的案例研究(De-Arteaga et al.,2019年)。我们发现,传统的去偏置嵌入技术实际上可以通过提供一个噪声较小的通道来传达性别信息,从而恶化下游分类器的偏差。然而,通过相对较小的调整,我们展示了如何使用这些相同的技术来同时减少偏差并保持高分类精度。
Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP
Center for Information and Language Processing (CIS), LMU Munich(慕尼黑大学信息与语言处理中心);Institute of Social and Cultural Anthropology, LMU Munich(慕尼黑大学社会与文化人类学研究所)