Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

FairFil: Contrastive Neural Debiasing Method for Pretrained Text Encoders

About

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.

Pengyu Cheng, Weituo Hao, Siyang Yuan, Shijing Si, Lawrence Carin• 2021

Related benchmarks

TaskDatasetResultRank
Counterfactual Input EvaluationCrowS-Pairs
SS62.89
33
Occupation classificationBias-in-Bios
Accuracy (Overall)0.8318
18
Stereotype Bias EvaluationStereoSet Gender
LMS Score48.78
15
Gender bias evaluationSEAT
SEAT 60.683
13
Natural Language InferenceQNLI (test)
SEAT e-size (Names: Career/Family)0.1
8
Sentiment AnalysisSST-2 (test)
SEAT e-size: Names (Career/Family)0.21
8
Natural Language InferenceBias-NLI (test)
NN0.829
5
Showing 7 of 7 rows

Other info

Follow for update