Lune

ICLR2023Top-tier venue

Unbiased Supervised Contrastive Learning

Carlo Alberto Barbano, Benoit Dufumier, Enzo Tartaglione, Marco Grangetto, Pietro Gori

Abstract

Many datasets are biased, namely they contain easy-to-learn features that are highly correlated with the target class only in the dataset but not in the true underlying distribution of the data. For this reason, learning unbiased models from biased data has become a very relevant research topic in the last years. In this work, we tackle the problem of learning representations that are robust to biases. We first present a margin-based theoretical framework that allows us to clarify why recent contrastive losses (InfoNCE, SupCon, etc.) can fail when dealing with biased data. Based on that, we derive a novel formulation of the supervised contrastive loss (epsilon-SupInfoNCE), providing more accurate control of the minimal distance between positive and negative samples. Furthermore, thanks to our theoretical framework, we also propose FairKL, a new debiasing regularization loss, that works well even with extremely biased data. We validate the proposed losses on standard vision datasets including CIFAR10, CIFAR100, and ImageNet, and we assess the debiasing capability of FairKL with epsilon-SupInfoNCE, reaching state-of-the-art performance on a number of biased datasets, including real instances of biases in the wild.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Processing and Acquisition Traces in Visual Encoders: What Does CLIP Know About Your Camera? cites A Simple Framework for Contrastive Learning of Visual Representations
  • Diffusing DeBias: Synthetic Bias Amplification for Model Debiasing cites Mining bias-target Alignment from Voronoi Cells
  • Diffusing DeBias: Synthetic Bias Amplification for Model Debiasing cites Distributionally Robust Neural Networks
  • WISER: Weak Supervision and Supervised Representation Learning to Improve Drug Response Prediction in Cancer cites A Simple Framework for Contrastive Learning of Visual Representations
  • WISER: Weak Supervision and Supervised Representation Learning to Improve Drug Response Prediction in Cancer cites Supervised Contrastive Learning
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Empowering Collaborative Filtering with Principled Adversarial Contrastive Loss cites A Simple Framework for Contrastive Learning of Visual Representations
  • Empowering Collaborative Filtering with Principled Adversarial Contrastive Loss cites Supervised Contrastive Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Empowering Collaborative Filtering with Principled Adversarial Contrastive LossAn Zhang, Leheng Sheng, Zhibo Cai, Xiang Wang et al.NeurIPS 2023 · 56 citations
  2. Mining bias-target Alignment from Voronoi CellsRémi Nahon, Van-Tam Nguyen, Enzo TartaglioneICCV 2023 · 8 citations
  3. WISER: Weak Supervision and Supervised Representation Learning to Improve Drug Response Prediction in CancerKumar Shubham, Aishwarya Jayagopal, Syed Mohammed Danish, Prathosh A. P. et al.ICML 2024 · 8 citations
  4. Processing and Acquisition Traces in Visual Encoders: What Does CLIP Know About Your Camera?Ryan Ramos, Vladan Stojnic, Giorgos Kordopatis-Zilos, Yuta Nakashima et al.ICCV 2025 · 6 citations
  5. Diffusing DeBias: Synthetic Bias Amplification for Model DebiasingMassimiliano Ciranni, Vito Paolo Pastore, Roberto Di Via, Enzo Tartaglione et al.NeurIPS 2025 · 4 citations

Builds on12

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  3. Distributionally Robust Neural NetworksShiori Sagawa, Pang Wei Koh, Tatsunori B. Hashimoto, Percy LiangICLR 2020 · 1,578 citations
  4. Machine Learning Models that Remember Too MuchCongzheng Song, Thomas Ristenpart, Vitaly ShmatikovCCS 2017 · 582 citations
  5. Balanced Datasets Are Not Enough: Estimating and Mitigating Gender Bias in Deep Image RepresentationsTianlu Wang, Jieyu Zhao, Mark Yatskar, Kai-Wei Chang et al.ICCV 2019 · 469 citations

Related papers

  1. Unbiased Classification through Bias-Contrastive and Bias-Balanced LearningYoungkyu Hong, Eunho YangNeurIPS 2021 · 94 citations
  2. Perfectly Balanced: Improving Transfer and Robustness of Supervised Contrastive LearningMayee F. Chen, Daniel Y. Fu, Avanika Narayan, Michael Zhang et al.ICML 2022 · 58 citations
  3. I-Con: A Unifying Framework for Representation LearningShaden Naif Alshammari, John R. Hershey, Axel Feldmann, William T. Freeman et al.ICLR 2025
  4. Fair Contrastive Learning for Facial Attribute ClassificationSungho Park, Jewook Lee, Pilhyeon Lee, Sunhee Hwang et al.CVPR 2022 · 61 citations
  5. Integrating Prior Knowledge in Contrastive Learning with KernelBenoit Dufumier, Carlo Alberto Barbano, Robin Louiset, Edouard Duchesnay et al.ICML 2023 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines