Equilibrium contrastive learning for imbalanced image classification
Sumin Roh, Harim Kim, Ho Yun Lee, Il Yong Chun
TL;DR
Equilibrium Contrastive Learning (ECL) tackles imbalanced image classification by enforcing a batch-invariant geometric equilibrium across three interrelated components: intra-class feature collapse, uniform inter-class mean spacing, and alignment between classifier weights and class centers. It introduces BC-ECL to balance class-average features and prototypes in representation learning, CC-GE to align linear classifier weights with class prototypes, and logit compensation to mitigate bias due to imbalance, all trained end-to-end. Across five long-tailed benchmarks and two medical-imaging datasets, ECL achieves state-of-the-art accuracy and demonstrates consistent improvements in representation metrics (FC, MS, SD), while ablation studies confirm the necessity and synergy of its components. The work highlights that explicit geometric regularization, paired with prototype-based alignment, can significantly enhance generalization under class imbalance and offers scalable directions for broader modality applications and reduced batch-size requirements.
Abstract
Contrastive learning (CL) is a predominant technique in image classification, but they showed limited performance with an imbalanced dataset. Recently, several supervised CL methods have been proposed to promote an ideal regular simplex geometric configuration in the representation space-characterized by intra-class feature collapse and uniform inter-class mean spacing, especially for imbalanced datasets. In particular, existing prototype-based methods include class prototypes, as additional samples to consider all classes. However, the existing CL methods suffer from two limitations. First, they do not consider the alignment between the class means/prototypes and classifiers, which could lead to poor generalization. Second, existing prototype-based methods treat prototypes as only one additional sample per class, making their influence depend on the number of class instances in a batch and causing unbalanced contributions across classes. To address these limitations, we propose Equilibrium Contrastive Learning (ECL), a supervised CL framework designed to promote geometric equilibrium, where class features, means, and classifiers are harmoniously balanced under data imbalance. The proposed ECL framework uses two main components. First, ECL promotes the representation geometric equilibrium (i.e., a regular simplex geometry characterized by collapsed class samples and uniformly distributed class means), while balancing the contributions of class-average features and class prototypes. Second, ECL establishes a classifier-class center geometric equilibrium by aligning classifier weights and class prototypes. We ran experiments with three long-tailed datasets, the CIFAR-10(0)-LT, ImageNet-LT, and the two imbalanced medical datasets, the ISIC 2019 and our constructed LCCT dataset. Results show that ECL outperforms existing SOTA supervised CL methods designed for imbalanced classification.
