Targeted Supervised Contrastive Learning for Long-Tailed Recognition

Tianhong Li, Peng Cao, Yuan Yuan, Lijie Fan, Yuzhe Yang, Rogério Feris, Piotr Indyk, Dina Katabi

2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 · 187 citations · 40 references

Concepts

TL;DR

Real‑world data frequently exhibit long‑tail distributions with heavy class imbalance, and supervised contrastive learning has recently been shown to yield strong performance gains for long‑tailed recognition. This study demonstrates that while supervised contrastive learning improves performance, existing baselines suffer from poor uniformity caused by imbalance, and proposes targeted supervised contrastive learning (TSC) to address this issue. TSC generates uniformly distributed targets on a hypersphere and trains features of each class to converge to distinct targets, thereby enforcing uniformity across all classes. The method yields better class separability, improved boundaries, and state‑of‑the‑art performance on multiple long‑tailed datasets.

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 bound-aries of the minority classes. Recently, researchers have in-vestigated 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 uni-formity 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 main-tain a uniform distribution in the feature space, improves class boundaries, and provides better generalization even in the presence of long-tail data. Experiments on multi-ple datasets show that TSC achieves state-of-the-art performance on long-tailed recognition tasks.

References

40