mlsanityData to 14 Oct 2026

A Tale of Two Classes: Adapting Supervised Contrastive Learning to Binary Imbalanced Datasets

arXiv 2503.17024 ↗First posted 21 Mar 2025cs.LG cs.CVcited by 5

Not on the map. Why?

Abstract (arXiv)

Supervised contrastive learning (SupCon) has proven to be a powerful alternative to the standard cross-entropy loss for classification of multi-class balanced datasets. However, it struggles to learn well-conditioned representations of datasets with long-tailed class distributions. This problem is potentially exacerbated for binary imbalanced distributions, which are commonly encountered during many real-world problems such as medical diagnosis. In experiments on seven binary datasets of natural and medical images, we show that the performance of SupCon decreases with increasing class imbalance. To substantiate these findings, we introduce two novel metrics that evaluate the quality of the learned representation space. By measuring the class distribution in local neighborhoods, we are able to uncover structural deficiencies of the representation space that classical metrics cannot detect. Informed by these insights, we propose two new supervised contrastive learning strategies tailored to binary imbalanced datasets that improve the structure of the representation space and increase downstream classification accuracy over standard SupCon by up to 35%. We make our code available.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 30 of its 43 references that are in the map. First posted on arXiv 21 Mar 2025.

Builds on

30 of 43 references.

References · 30

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  3. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  4. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  5. 2020Supervised Contrastive Learningcited by 2,829
  6. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  7. 2021MedMNIST v2 -- A large-scale lightweight benchmark for 2D and 3D biomedical image classificationcited by 690
  8. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  9. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 561
  10. 2020Self-supervised Co-training for Video Representation Learningcited by 232
  11. 2021Parametric Contrastive Learningcited by 217
  12. 2021FSCE: Few-Shot Object Detection via Contrastive Proposal Encodingcited by 168
18 more
  1. 2021Benchmarking Representation Learning for Natural World Image Collectionscited by 168
  2. 2020Contrastive learning, multi-view redundancy, and linear modelscited by 146
  3. 2022Balanced Contrastive Learning for Long-Tailed Visual Recognitioncited by 144
  4. 2021Targeted Supervised Contrastive Learning for Long-Tailed Recognitioncited by 132
  5. 2021Contrastive Learning based Hybrid Networks for Long-Tailed Image Classificationcited by 130
  6. 2022Learnable latent embeddings for joint behavioral and neural analysiscited by 117
  7. 2022Selective-Supervised Contrastive Learning with Noisy Labelscited by 112
  8. 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
  9. 2022Inducing Neural Collapse in Imbalanced Learning: Do We Really Need a Learnable Classifier at the End of Deep Neural Network?cited by 100
  10. 2023Best of Both Worlds: Multimodal Contrastive Learning with Tabular and Imaging Datacited by 69
  11. 2021Dissecting Supervised Contrastive Learningcited by 64
  12. 2022The Hidden Uniform Cluster Prior in Self-Supervised Learningcited by 58
  13. 2021Incremental False Negative Detection for Contrastive Learningcited by 48
  14. 2022Perfectly Balanced: Improving Transfer and Robustness of Supervised Contrastive Learningcited by 40
  15. 2023Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature Suppressioncited by 30
  16. 2023Subclass-balancing Contrastive Learning for Long-tailed Recognitioncited by 26
  17. 2022Maximum Class Separation as Inductive Bias in One Matrixcited by 21
  18. 2020Self-supervised Learning from a Multi-view Perspectivecited by 19

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 4.

5 papers.