Conditional Supervised Contrastive Learning for Fair Text Classification

Jianfeng Chi, William Shand, Yaodong Yu, Kai-Wei Chang, Han Zhao +1 more
5/23/2022
cs.CLcs.AIcs.CY
contrastive-ssl

Official code: JFChi/CSCL4FTC (5 stars, Python, last commit 2023-02-07).

Abstract

Contrastive representation learning has gained much attention due to its superior performance in learning representations from both image and sequential data. However, the learned representations could potentially lead to performance disparities in downstream tasks, such as increased silencing of underrepresented groups in toxicity comment classification.

Show full abstract

In light of this challenge, in this work, we study learning fair representations that satisfy a notion of fairness known as equalized odds for text classification via contrastive learning. Specifically, we first theoretically analyze the connections between learning representations with a fairness constraint and conditional supervised contrastive objectives, and then propose to use conditional supervised contrastive objectives to learn fair representations for text classification. We conduct experiments on two text datasets to demonstrate the effectiveness of our approaches in balancing the trade-offs between task performance and bias mitigation among existing baselines for text classification. Furthermore, we also show that the proposed methods are stable in different hyperparameter settings.

View on arXivView PDF

Code Implementations(1)

JFChi/CSCL4FTCOfficial100%
52Python, ShellOct 19, 20223 years ago

Similar Papers

Cite this paper

@article{chi2022conditional,
  title  = {Conditional Supervised Contrastive Learning for Fair Text Classification},
  author = {Jianfeng Chi and William Shand and Yaodong Yu and Kai-Wei Chang and Han Zhao and Yuan Tian},
  year   = {2022},
  eprint = {2205.11485},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11485}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.11485.svg)](https://codeofpaper.com/paper/2205.11485)

Discussion