A Tale of Two Classes: Adapting Supervised Contrastive Learning to Binary Imbalanced Datasets
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
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2020Supervised Contrastive Learningcited by 2,829
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
- 2021MedMNIST v2 -- A large-scale lightweight benchmark for 2D and 3D biomedical image classificationcited by 690
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 561
- 2020Self-supervised Co-training for Video Representation Learningcited by 232
- 2021Parametric Contrastive Learningcited by 217
- 2021FSCE: Few-Shot Object Detection via Contrastive Proposal Encodingcited by 168
18 more
- 2021Benchmarking Representation Learning for Natural World Image Collectionscited by 168
- 2020Contrastive learning, multi-view redundancy, and linear modelscited by 146
- 2022Balanced Contrastive Learning for Long-Tailed Visual Recognitioncited by 144
- 2021Targeted Supervised Contrastive Learning for Long-Tailed Recognitioncited by 132
- 2021Contrastive Learning based Hybrid Networks for Long-Tailed Image Classificationcited by 130
- 2022Learnable latent embeddings for joint behavioral and neural analysiscited by 117
- 2022Selective-Supervised Contrastive Learning with Noisy Labelscited by 112
- 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
- 2022Inducing Neural Collapse in Imbalanced Learning: Do We Really Need a Learnable Classifier at the End of Deep Neural Network?cited by 100
- 2023Best of Both Worlds: Multimodal Contrastive Learning with Tabular and Imaging Datacited by 69
- 2021Dissecting Supervised Contrastive Learningcited by 64
- 2022The Hidden Uniform Cluster Prior in Self-Supervised Learningcited by 58
- 2021Incremental False Negative Detection for Contrastive Learningcited by 48
- 2022Perfectly Balanced: Improving Transfer and Robustness of Supervised Contrastive Learningcited by 40
- 2023Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature Suppressioncited by 30
- 2023Subclass-balancing Contrastive Learning for Long-tailed Recognitioncited by 26
- 2022Maximum Class Separation as Inductive Bias in One Matrixcited by 21
- 2020Self-supervised Learning from a Multi-view Perspectivecited by 19
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025SEMC: Structure-Enhanced Mixture-of-Experts Contrastive Learning for Ultrasound Standard Plane Recognitioncited by 3
- 2026Toward Aristotelian Medical Representations: Backpropagation-Free Layer-wise Analysis for Interpretable Generalized Metric Learning on MedMNISTcited by 2
- 2026T-DuMpRa: Teacher-guided Dual-path Multi-prototype Retrieval Augmented framework for fine-grained medical image classificationcited by 1
- 20263D Classification of Paramagnetic Rim Lesions in Multiple Sclerosis via Asymmetric QSM-FLAIR Modelingcited by 0
- 2026Contrastive Representation-Guided Genetic Minority Oversampling for Imbalanced Time-Series Classificationcited by 0
- 2026Contrastive Representation-Guided Genetic Minority Oversampling for Imbalanced Time-Series Classification24 Aug 2026
- 20263D Classification of Paramagnetic Rim Lesions in Multiple Sclerosis via Asymmetric QSM-FLAIR Modeling15 Jun 2026
- 2026T-DuMpRa: Teacher-guided Dual-path Multi-prototype Retrieval Augmented framework for fine-grained medical image classification19 Apr 2026
- 2026Toward Aristotelian Medical Representations: Backpropagation-Free Layer-wise Analysis for Interpretable Generalized Metric Learning on MedMNIST7 Apr 2026
- 2025SEMC: Structure-Enhanced Mixture-of-Experts Contrastive Learning for Ultrasound Standard Plane Recognition16 Nov 2025