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

Contrastive Learning based Hybrid Networks for Long-Tailed Image Classification

About

Learning discriminative image representations plays a vital role in long-tailed image classification because it can ease the classifier learning in imbalanced cases. Given the promising performance contrastive learning has shown recently in representation learning, in this work, we explore effective supervised contrastive learning strategies and tailor them to learn better image representations from imbalanced data in order to boost the classification accuracy thereon. Specifically, we propose a novel hybrid network structure being composed of a supervised contrastive loss to learn image representations and a cross-entropy loss to learn classifiers, where the learning is progressively transited from feature learning to the classifier learning to embody the idea that better features make better classifiers. We explore two variants of contrastive loss for feature learning, which vary in the forms but share a common idea of pulling the samples from the same class together in the normalized embedding space and pushing the samples from different classes apart. One of them is the recently proposed supervised contrastive (SC) loss, which is designed on top of the state-of-the-art unsupervised contrastive loss by incorporating positive samples from the same class. The other is a prototypical supervised contrastive (PSC) learning strategy which addresses the intensive memory consumption in standard SC loss and thus shows more promise under limited memory budget. Extensive experiments on three long-tailed classification datasets demonstrate the advantage of the proposed contrastive learning based hybrid networks in long-tailed classification.

Peng Wang, Kai Han, Xiu-Shen Wei, Lei Zhang, Lei Wang• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationiNaturalist 2018
Top-1 Accuracy70.35
287
Image ClassificationCIFAR-10 long-tailed (test)
Top-1 Acc91.12
201
Image ClassificationiNaturalist 2018 (test)
Top-1 Accuracy68.1
192
Image ClassificationCIFAR-100 Long-Tailed (test)
Top-1 Accuracy63.05
149
Image ClassificationiNaturalist 2018 (val)
Top-1 Accuracy68.1
116
Image ClassificationCIFAR-100-LT IF 100 (test)
Top-1 Acc46.7
77
Image ClassificationCIFAR-100 LT (val)
Top-1 Accuracy63.05
69
Image ClassificationCIFAR-10-LT (val)
Top-1 Acc91.12
65
Image ClassificationCIFAR-100 LT
Top-1 Acc63.05
63
Long-Tailed Image ClassificationCIFAR-100-LT Imbalance Ratio 100
Top-1 Acc46.72
47
Showing 10 of 43 rows

Other info

Code

Follow for update