Reproduce “A Tale of Two Classes: Adapting Supervised Contrastive Learning to Binary Imbalanced Datasets” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
David Mildenberger, Paul Hager, Daniel Rueckert, Martin J Menten
This work identifies and addresses the problem of representation space collapse in Supervised Contrastive Learning when applied to binary imbalanced datasets. The researchers introduce two novel methods, Supervised Minority and Supervised Prototypes, which achieve up to 35% higher balanced accuracy on highly imbalanced datasets, and propose new metrics (SAA and CAC) that effectively diagnose representation quality issues.
Key insights
- Supervised Contrastive Learning (SupCon) suffers from representation space collapse on binary imbalanced datasets, primarily due to insufficient gradient flow for the minority class, leading to poor uniformity.
- Traditional metrics for representation space quality (e.g., Sample Alignment Distance, Gaussian Potential Uniformity) fail to detect this collapse, necessitating the introduction of new metrics like Sample Alignment Accuracy (SAA) and Class Alignment Consistency (CAC).
- Targeted modifications to the contrastive loss function can effectively address imbalance, by either focusing the supervised loss on the minority class or integrating class prototypes.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.