Fair Contrastive Learning for Facial Attribute Classification

Sungho Park, Jewook Lee, Pilhyeon Lee, Sunhee Hwang, Dohyung Kim +1 more
3/30/2022
cs.CV
contrastive-ssl

Official code: sungho-CoolG/FSCL (39 stars, Python, last commit 2022-06-22).

Abstract

Learning visual representation of high quality is essential for image classification. Recently, a series of contrastive representation learning methods have achieved preeminent success.

Show full abstract

Particularly, SupCon outperformed the dominant methods based on cross-entropy loss in representation learning. However, we notice that there could be potential ethical risks in supervised contrastive learning. In this paper, we for the first time analyze unfairness caused by supervised contrastive learning and propose a new Fair Supervised Contrastive Loss (FSCL) for fair visual representation learning. Inheriting the philosophy of supervised contrastive learning, it encourages representation of the same class to be closer to each other than that of different classes, while ensuring fairness by penalizing the inclusion of sensitive attribute information in representation. In addition, we introduce a group-wise normalization to diminish the disparities of intra-group compactness and inter-class separability between demographic groups that arouse unfair classification. Through extensive experiments on CelebA and UTK Face, we validate that the proposed method significantly outperforms SupCon and existing state-of-the-art methods in terms of the trade-off between top-1 accuracy and fairness. Moreover, our method is robust to the intensity of data bias and effectively works in incomplete supervised settings. Our code is available at https://github.com/sungho-CoolG/FSCL.

View on arXivView PDF

Code Implementations(1)

sungho-CoolG/FSCLOfficial100%
393PythonMar 23, 20224 years ago

Similar Papers

Cite this paper

@article{park2022fair,
  title  = {Fair Contrastive Learning for Facial Attribute Classification},
  author = {Sungho Park and Jewook Lee and Pilhyeon Lee and Sunhee Hwang and Dohyung Kim and Hyeran Byun},
  year   = {2022},
  eprint = {2203.16209},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.16209}
}

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/2203.16209.svg)](https://codeofpaper.com/paper/2203.16209)

Discussion