Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Probabilistic Contrastive Learning for Long-Tailed Visual Recognition

About

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.

Chaoqun Du, Yulin Wang, Shiji Song, Gao Huang• 2024

Related benchmarks

TaskDatasetResultRank
Object DetectionLVIS v1.0 (val)
APbbox25.2
529
Image ClassificationCIFAR-10--
507
Image ClassificationiNaturalist 2018
Top-1 Accuracy73.5
291
Image ClassificationImageNet LT
Top-1 Accuracy58
264
Image ClassificationCIFAR-100 LT
Top-1 Acc65.5
131
Image ClassificationCIFAR-100-LT IF 100 (test)
Top-1 Acc52.8
77
Image ClassificationCIFAR-10-LT (IF 50)
Top-1 Accuracy88.2
48
Semi-supervised Image ClassificationCIFAR100-LT (test)
Accuracy0.613
48
Image ClassificationCIFAR-100 LT (IF=50)
Top-1 Acc57.1
42
Image ClassificationCIFAR-10-LT IF 100
Top-1 Accuracy85.9
36
Showing 10 of 15 rows

Other info

Code

Follow for update