Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Generalized Parametric Contrastive Learning

About

In this paper, we propose the Generalized Parametric Contrastive Learning (GPaCo/PaCo) which works well on both imbalanced and balanced data. Based on theoretical analysis, we observe that supervised contrastive loss tends to bias high-frequency classes and thus increases the difficulty of imbalanced learning. We introduce a set of parametric class-wise learnable centers to rebalance from an optimization perspective. Further, we analyze our GPaCo/PaCo loss under a balanced setting. Our analysis demonstrates that GPaCo/PaCo can adaptively enhance the intensity of pushing samples of the same class close as more samples are pulled together with their corresponding centers and benefit hard example learning. Experiments on long-tailed benchmarks manifest the new state-of-the-art for long-tailed recognition. On full ImageNet, models from CNNs to vision transformers trained with GPaCo loss show better generalization performance and stronger robustness compared with MAE models. Moreover, GPaCo can be applied to the semantic segmentation task and obvious improvements are observed on the 4 most popular benchmarks. Our code is available at https://github.com/dvlab-research/Parametric-Contrastive-Learning.

Jiequan Cui, Zhisheng Zhong, Zhuotao Tian, Shu Liu, Bei Yu, Jiaya Jia• 2022

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K--
936
Semantic segmentationCityscapes--
578
Semantic segmentationCOCO Stuff--
195
Image ClassificationiNaturalist 2018 (test)
Top-1 Accuracy75.4
192
Image ClassificationImageNet-LT (test)
Top-1 Acc (All)60.8
159
Image ClassificationPlaces-LT (test)
Accuracy (Medium)47.9
128
Image ClassificationCIFAR-100-LT Imbalance Ratio 100
Top-1 Acc0.523
88
Image ClassificationCIFAR-100-LT Imbalance Ratio 10
Top-1 Acc65.4
83
Long-Tailed Image ClassificationiNaturalist 2018
Accuracy78.1
82
Image ClassificationCIFAR-100 LT
Top-1 Acc65.4
63
Showing 10 of 27 rows

Other info

Code

Follow for update