HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Parametric Contrastive Learning

Jiequan Cui Zhisheng Zhong Shu Liu Bei Yu Jiaya Jia

Parametric Contrastive Learning

Abstract

In this paper, we propose Parametric Contrastive Learning (PaCo) to tackle long-tailed recognition. Based on theoretical analysis, we observe supervised contrastive loss tends to bias on 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 PaCo loss under a balanced setting. Our analysis demonstrates that 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 CIFAR, ImageNet, Places, and iNaturalist 2018 manifest the new state-of-the-art for long-tailed recognition. On full ImageNet, models trained with PaCo loss surpass supervised contrastive learning across various ResNet backbones, e.g., our ResNet-200 achieves 81.8% top-1 accuracy. Our code is available at https://github.com/dvlab-research/Parametric-Contrastive-Learning.

Code Repositories

dvlab-research/imbalanced-learning
pytorch
Mentioned in GitHub
silicx/dlsa
pytorch
Mentioned in GitHub
dvlab-research/rescom
pytorch
Mentioned in GitHub
dvlab-research/parametric-contrastive-learning
Official
pytorch
Mentioned in GitHub
jiequancui/Parametric-Contrastive-Learning
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-classification-on-imagenetResNet-101
Top 1 Accuracy: 80.9%
image-classification-on-imagenetResNet-200
Top 1 Accuracy: 81.8%
image-classification-on-imagenetResNet-152
Top 1 Accuracy: 81.3%
image-classification-on-inaturalist-2018PaCo(ResNet-152)
Top-1 Accuracy: 75.2%
long-tail-learning-on-cifar-10-lt-r-10PCL
Error Rate: 9.14
long-tail-learning-on-cifar-100-lt-r-100PCL
Error Rate: 49.10
long-tail-learning-on-imagenet-ltPaCo(ResNeXt-50)
Top-1 Accuracy: 58.2
long-tail-learning-on-imagenet-ltPaCo(ResNeXt101-32x4d)
Top-1 Accuracy: 60.0
long-tail-learning-on-inaturalist-2018PaCo(ResNet-152)
Top-1 Accuracy: 75.2%
long-tail-learning-on-places-ltPaCo
Top-1 Accuracy: 41.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp