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/Probabilistic Contrastive Learning for Long-Tailed Visual ...

Probabilistic Contrastive Learning for Long-Tailed Visual Recognition

Chaoqun Du, Yulin Wang, Shiji Song, Gao Huang

2024-03-11Long-tail Learning
PaperPDFCode(official)

Abstract

Long-tailed distributions frequently emerge in real-world data, where a large number of minority categories contain a limited number of samples. Such imbalance issue considerably impairs the performance of standard supervised learning algorithms, which are mainly designed for balanced training sets. Recent investigations have revealed that supervised contrastive learning exhibits promising potential in alleviating the data imbalance. However, the performance of supervised contrastive learning is plagued by an inherent challenge: it necessitates sufficiently large batches of training data to construct contrastive pairs that cover all categories, yet this requirement is difficult to meet in the context of class-imbalanced data. To overcome this obstacle, we propose a novel probabilistic contrastive (ProCo) learning algorithm that estimates the data distribution of the samples from each class in the feature space, and samples contrastive pairs accordingly. In fact, estimating the distributions of all classes using features in a small batch, particularly for imbalanced data, is not feasible. Our key idea is to introduce a reasonable and simple assumption that the normalized features in contrastive learning follow a mixture of von Mises-Fisher (vMF) distributions on unit space, which brings two-fold benefits. First, the distribution parameters can be estimated using only the first sample moment, which can be efficiently computed in an online manner across different batches. Second, based on the estimated distribution, the vMF distribution allows us to sample an infinite number of contrastive pairs and derive a closed form of the expected contrastive loss for efficient optimization. Our code is available at https://github.com/LeapLabTHU/ProCo.

Results

TaskDatasetMetricValueModel
Image ClassificationImageNet-LTTop-1 Accuracy60.2ProCo (ResNet50)
Image ClassificationImageNet-LTTop-1 Accuracy58ProCo (ResNeXt50)
Few-Shot Image ClassificationImageNet-LTTop-1 Accuracy60.2ProCo (ResNet50)
Few-Shot Image ClassificationImageNet-LTTop-1 Accuracy58ProCo (ResNeXt50)
Generalized Few-Shot ClassificationImageNet-LTTop-1 Accuracy60.2ProCo (ResNet50)
Generalized Few-Shot ClassificationImageNet-LTTop-1 Accuracy58ProCo (ResNeXt50)
Long-tail LearningImageNet-LTTop-1 Accuracy60.2ProCo (ResNet50)
Long-tail LearningImageNet-LTTop-1 Accuracy58ProCo (ResNeXt50)
Generalized Few-Shot LearningImageNet-LTTop-1 Accuracy60.2ProCo (ResNet50)
Generalized Few-Shot LearningImageNet-LTTop-1 Accuracy58ProCo (ResNeXt50)

Related Papers

Mitigating Spurious Correlations with Causal Logit Perturbation2025-05-21LIFT+: Lightweight Fine-Tuning for Long-Tail Learning2025-04-17Improving Visual Prompt Tuning by Gaussian Neighborhood Minimization for Long-Tailed Visual Recognition2024-10-28Learning from Neighbors: Category Extrapolation for Long-Tail Learning2024-10-21Continuous Contrastive Learning for Long-Tailed Semi-Supervised Recognition2024-10-08AUCSeg: AUC-oriented Pixel-level Long-tail Semantic Segmentation2024-09-30Representation Norm Amplification for Out-of-Distribution Detection in Long-Tail Learning2024-08-20LTRL: Boosting Long-tail Recognition via Reflective Learning2024-07-17