HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Targeted Supervised Contrastive Learning for Long-Tailed Recognition

Tianhong Li Peng Cao Yuan Yuan Lijie Fan Yuzhe Yang Rogerio Feris Piotr Indyk Dina Katabi

Targeted Supervised Contrastive Learning for Long-Tailed Recognition

Abstract

Real-world data often exhibits long tail distributions with heavy class imbalance, where the majority classes can dominate the training process and alter the decision boundaries of the minority classes. Recently, researchers have investigated the potential of supervised contrastive learning for long-tailed recognition, and demonstrated that it provides a strong performance gain. In this paper, we show that while supervised contrastive learning can help improve performance, past baselines suffer from poor uniformity brought in by imbalanced data distribution. This poor uniformity manifests in samples from the minority class having poor separability in the feature space. To address this problem, we propose targeted supervised contrastive learning (TSC), which improves the uniformity of the feature distribution on the hypersphere. TSC first generates a set of targets uniformly distributed on a hypersphere. It then makes the features of different classes converge to these distinct and uniformly distributed targets during training. This forces all classes, including minority classes, to maintain a uniform distribution in the feature space, improves class boundaries, and provides better generalization even in the presence of long-tail data. Experiments on multiple datasets show that TSC achieves state-of-the-art performance on long-tailed recognition tasks.

Code Repositories

lth14/targeted-supcon
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
long-tail-learning-on-cifar-10-lt-r-10TSC
Error Rate: 11.3
long-tail-learning-on-cifar-10-lt-r-100TSC(ResNet-32)
Error Rate: 21.3
long-tail-learning-on-cifar-100-lt-r-100TSC(ResNet-32)
Error Rate: 56.2
long-tail-learning-on-imagenet-ltTSC(ResNet-50)
Top-1 Accuracy: 52.4
long-tail-learning-on-inaturalist-2018TSC(ResNet-50)
Top-1 Accuracy: 69.7%

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