[Paper Review] Conditional Contrastive Learning for Improving Fairness in Self-Supervised Learning
This paper proposes Conditional Contrastive Learning (CCL), a method that improves fairness in self-supervised representation learning by conditioning positive and negative pair sampling on sensitive attributes like gender or race. By restricting data augmentation and contrastive learning to within-group pairs, CCL reduces bias in learned representations while maintaining state-of-the-art downstream accuracy across seven datasets, achieving superior fairness on 11 out of 18 metrics.
Contrastive self-supervised learning (SSL) learns an embedding space that maps similar data pairs closer and dissimilar data pairs farther apart. Despite its success, one issue has been overlooked: the fairness aspect of representations learned using contrastive SSL. Without mitigation, contrastive SSL techniques can incorporate sensitive information such as gender or race and cause potentially unfair predictions on downstream tasks. In this paper, we propose a Conditional Contrastive Learning (CCL) approach to improve the fairness of contrastive SSL methods. Our approach samples positive and negative pairs from distributions conditioning on the sensitive attribute, or empirically speaking, sampling positive and negative pairs from the same gender or the same race. We show that our approach provably maximizes the conditional mutual information between the learned representations of the positive pairs, and reduces the effect of the sensitive attribute by taking it as the conditional variable. On seven fairness and vision datasets, we empirically demonstrate that the proposed approach achieves state-of-the-art downstream performances compared to unsupervised baselines and significantly improves the fairness of contrastive SSL models on multiple fairness metrics.
Motivation & Objective
- To address the underexplored issue of fairness in contrastive self-supervised learning (SSL), where models may inadvertently learn and propagate biases from sensitive attributes like gender or race.
- To develop a method that mitigates the influence of sensitive attributes during pre-training while preserving high-quality representations for downstream tasks.
- To improve fairness metrics such as demographic parity, equalized odds, and equality of opportunity in SSL models.
- To demonstrate that conditioning contrastive learning on sensitive attributes leads to representations that are both fair and effective for downstream tasks.
- To provide a simple, plug-in-compatible solution that can be integrated into existing contrastive SSL frameworks.
Proposed method
- CCL conditions the sampling of positive and negative pairs on the sensitive attribute Z, ensuring that both positive and negative pairs are drawn from the same group (e.g., same gender or race).
- The method uses data augmentation and contrastive learning within each sensitive attribute group, making it harder for the model to use sensitive attributes as a proxy for distinguishing positive from negative pairs.
- CCL maximizes a lower bound of conditional mutual information I(X;Y|Z), which explicitly excludes information from the sensitive variable Z, thereby reducing its influence on the learned representations.
- The approach is implemented by grouping data by sensitive attributes and performing contrastive learning within each group, which can be easily integrated into existing SSL frameworks like SimCLR.
- A tighter variant, Tight-CCL, is also proposed, optimizing a tighter lower bound of conditional mutual information for improved fairness.
- The method is evaluated using standard fairness metrics and downstream accuracy across multiple vision and tabular datasets.
Experimental results
Research questions
- RQ1Can contrastive self-supervised learning inadvertently learn and propagate biases from sensitive attributes such as gender or race?
- RQ2How can we reduce the influence of sensitive attributes on self-supervised representations without compromising downstream performance?
- RQ3Does conditioning contrastive learning on sensitive attributes lead to representations that are both fair and effective for downstream tasks?
- RQ4How does CCL compare to existing fairness-aware self-supervised methods in terms of fairness and accuracy?
- RQ5Can a simple, modular modification to contrastive learning—grouping by sensitive attributes—achieve state-of-the-art fairness while maintaining performance?
Key findings
- CCL outperforms all baselines on 11 out of 18 fairness metrics across five fairness and two vision datasets, demonstrating significant improvements in fairness.
- On the CelebA dataset, CCL achieves a demographic parity difference (ΔDP) of 0.202 ± 0.03 on the attractive attribute prediction task, compared to 0.277 ± 0.04 for SimCLR, indicating reduced bias.
- On the UTKFace dataset for gender prediction, CCL reduces the equalized odds difference (ΔEO) to 0.156 ± 0.02, compared to 0.421 ± 0.04 for SimCLR, showing substantial fairness gains.
- CCL maintains or improves downstream accuracy on all four tasks in the vision datasets, with the highest accuracy of 82.1 ± 0.24% on the attractive attribute prediction in CelebA.
- Tight-CCL, a tighter variant, achieves slightly better fairness on some metrics, such as ΔDP = 0.198 ± 0.03 on CelebA, suggesting that a tighter bound on conditional mutual information enhances bias reduction.
- Training 100 epochs on a single GPU takes under an hour for tabular datasets and 20–24 hours for vision datasets, indicating efficient training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.