TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Balanced Contrastive Learning for Long-Tailed Visual Recog...

Balanced Contrastive Learning for Long-Tailed Visual Recognition

Jianggang Zhu, Zheng Wang, Jingjing Chen, Yi-Ping Phoebe Chen, Yu-Gang Jiang

2022-07-19CVPR 2022 7Image ClassificationRepresentation LearningLong-tail LearningContrastive LearningLong-tail Learning on CIFAR-10-LT (ρ=100)
PaperPDFCode(official)

Abstract

Real-world data typically follow a long-tailed distribution, where a few majority categories occupy most of the data while most minority categories contain a limited number of samples. Classification models minimizing cross-entropy struggle to represent and classify the tail classes. Although the problem of learning unbiased classifiers has been well studied, methods for representing imbalanced data are under-explored. In this paper, we focus on representation learning for imbalanced data. Recently, supervised contrastive learning has shown promising performance on balanced data recently. However, through our theoretical analysis, we find that for long-tailed data, it fails to form a regular simplex which is an ideal geometric configuration for representation learning. To correct the optimization behavior of SCL and further improve the performance of long-tailed visual recognition, we propose a novel loss for balanced contrastive learning (BCL). Compared with SCL, we have two improvements in BCL: class-averaging, which balances the gradient contribution of negative classes; class-complement, which allows all classes to appear in every mini-batch. The proposed balanced contrastive learning (BCL) method satisfies the condition of forming a regular simplex and assists the optimization of cross-entropy. Equipped with BCL, the proposed two-branch framework can obtain a stronger feature representation and achieve competitive performance on long-tailed benchmark datasets such as CIFAR-10-LT, CIFAR-100-LT, ImageNet-LT, and iNaturalist2018. Our code is available at https://github.com/FlamieZhu/BCL .

Results

TaskDatasetMetricValueModel
Image ClassificationCIFAR-10-LT (ρ=10)Error Rate8.9BCL(ResNet-32)
Image ClassificationCIFAR-100-LT (ρ=50)Error Rate43.4BCL(ResNet-32)
Image ClassificationImageNet-LTTop-1 Accuracy57.1BCL(ResNeXt-50)
Image ClassificationCIFAR-100-LT (ρ=100)Error Rate46.1BCL(ResNet-32)
Few-Shot Image ClassificationCIFAR-10-LT (ρ=10)Error Rate8.9BCL(ResNet-32)
Few-Shot Image ClassificationCIFAR-100-LT (ρ=50)Error Rate43.4BCL(ResNet-32)
Few-Shot Image ClassificationImageNet-LTTop-1 Accuracy57.1BCL(ResNeXt-50)
Few-Shot Image ClassificationCIFAR-100-LT (ρ=100)Error Rate46.1BCL(ResNet-32)
Generalized Few-Shot ClassificationCIFAR-10-LT (ρ=10)Error Rate8.9BCL(ResNet-32)
Generalized Few-Shot ClassificationCIFAR-100-LT (ρ=50)Error Rate43.4BCL(ResNet-32)
Generalized Few-Shot ClassificationImageNet-LTTop-1 Accuracy57.1BCL(ResNeXt-50)
Generalized Few-Shot ClassificationCIFAR-100-LT (ρ=100)Error Rate46.1BCL(ResNet-32)
Long-tail LearningCIFAR-10-LT (ρ=10)Error Rate8.9BCL(ResNet-32)
Long-tail LearningCIFAR-100-LT (ρ=50)Error Rate43.4BCL(ResNet-32)
Long-tail LearningImageNet-LTTop-1 Accuracy57.1BCL(ResNeXt-50)
Long-tail LearningCIFAR-100-LT (ρ=100)Error Rate46.1BCL(ResNet-32)
Generalized Few-Shot LearningCIFAR-10-LT (ρ=10)Error Rate8.9BCL(ResNet-32)
Generalized Few-Shot LearningCIFAR-100-LT (ρ=50)Error Rate43.4BCL(ResNet-32)
Generalized Few-Shot LearningImageNet-LTTop-1 Accuracy57.1BCL(ResNeXt-50)
Generalized Few-Shot LearningCIFAR-100-LT (ρ=100)Error Rate46.1BCL(ResNet-32)

Related Papers

Touch in the Wild: Learning Fine-Grained Manipulation with a Portable Visuo-Tactile Gripper2025-07-20Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17Spectral Bellman Method: Unifying Representation and Exploration in RL2025-07-17Boosting Team Modeling through Tempo-Relational Representation Learning2025-07-17