atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

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

CVPR 2025 · Label-efficient and robust learning › Recognition and long-tail · approach: Contrastive learning for imbalanced data · 12 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that supervised contrastive learning degrades on binary imbalanced datasets and proposes two SupCon variants (Supervised Minority and Supervised Prototypes) plus two alignment metrics (SAA, CAC) to diagnose representation collapse.

Problem

SupCon yields collapsed, poorly structured representations on binary imbalanced datasets, where a dominant majority class causes embeddings to collapse, reducing downstream classification accuracy.

Approach

Diagnoses SupCon failure with two new neighborhood-based metrics (sample alignment accuracy and class alignment consistency) and proposes two binary-specific fixes: applying supervision only to the minority class with NT-Xent on the majority, and attracting samples to fixed, opposite-pole class prototypes when their similarity is below 0.5.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase class imbalance from 50% to 5% and 1% minority representationSupCon · Plants, Insects, and Animalsbalanced accuracy: 93.7 ± 0.6 -> 56.2 ± 1.6; 54.4 ± 2.0Hurt
Use Supervised Minority instead of SupConbinary imbalanced natural image datasets · Plants, Insects, and Animals (5% and 1% minority)balanced accuracy: 56.2 ± 1.6 -> 89.8 ± 0.6; 54.4 ± 2.0 -> 85.4 ± 0.5Helped
Use Supervised Prototypes instead of SupConbinary imbalanced natural image datasets · Plants, Insects, and Animals (5% and 1% minority)balanced accuracy: 56.2 ± 1.6 -> 88.7 ± 0.7; 54.4 ± 2.0 -> 83.4 ± 1.8Helped
Use Supervised Minority instead of SupConbinary imbalanced medical datasets · Infarction, BreastMNIST, PneumoniaMNIST, and FracAtlas fracturesAUC: 61.9 ± 1.9 -> 77.7 ± 1.1; 75.1 ± 0.7 -> 86.4 ± 0.2; 99.5 ± 0.1 -> 99.6 ± 0.1; 84.8 ±0.1 -> 82.3 ±0.7Mixed
Use Supervised Prototypes instead of SupConbinary imbalanced medical datasets · Infarction, BreastMNIST, PneumoniaMNIST, and FracAtlas fracturesAUC: 61.9 ± 1.9 -> 77.9 ± 0.4; 75.1 ± 0.7 -> 90.7 ± 0.5; 99.5 ± 0.1 -> 99.8 ± 0.1; 84.8 ±0.1 -> 86.0 ± 0.1Helped
Use Supervised Minority instead of the strongest long-tailed baselinebinary imbalanced natural image datasets · iNat21 datasets at 5% and 1% minoritybalanced accuracy: +1.8; +4.3Helped
Use Supervised Prototypes instead of the strongest long-tailed baselinebinary imbalanced medical datasets · Infarction (4% minority)AUC: +2% AUCHelped
Measure local neighborhood class consistency using CAC rather than canonical alignment metricsrepresentation-space evaluation · all evaluated datasets and methodsR² with linear probing accuracy: 0.045 -> 0.690Helped

Surprising findings

Limitations

Experimental setup

Datasets: iNaturalist21 UK Biobank cardiac BreastMNIST PneumoniaMNIST FracAtlas

Benchmarks: iNaturalist21 binary subsets UKBB cardiac BreastMNIST PneumoniaMNIST FracAtlas

Metrics: balanced accuracy AUC SAD CAD GPU SAA CAC R2

Baselines: Weighted CE SupCon PaCo KCL TSC SBC BCL

Builds on: SupCon NT-Xent alignment and uniformity PaCo TSC KCL BCL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy