Global Contrastive Learning for Long-Tailed Classification

Published: 15 Sept 2023, Last Modified: 15 Sept 2023Accepted by TMLREveryoneRevisionsBibTeX
Abstract: We consider the long-tailed classification problem in which a few classes in the training data dominate the majority of the other classes. For concreteness, we focus on the visual domain in this paper. Most current methods employ contrastive learning to learn a representation for long-tailed data. In this paper, first, we investigate $k$-positive sampling, a popular baseline method widely used to build contrastive learning models for imbalanced data. Previous works show that $k$-positive learning, which only chooses $k$ positive samples (instead of all positive images) for each query image, suffers from inferior performance in long-tailed data. In this work, we further point out that k-positive learning limits the learning capability of both head and tail classes. Based on this perspective, we propose a novel contrastive learning framework that improves the limitation in k-positive learning by enlarging its positive selection space, so it can help the model learn more semantic discrimination features. Second, we analyze how the temperature (the hyperparameter used for tuning a concentration of samples on feature space) affects the gradients of each class in long-tailed learning, and propose a new method that can mitigate inadequate gradients between classes, which can help model learning easier. We name this framework as CoGloAT. Finally, we go on to introduce a new prototype learning framework namely ProCo based on coreset selection, which creates a global prototype for each cluster while keeping the computation cost within a reasonable time and show that combining CoGloAT with ProCo can further enhance the model learning ability on long-tailed data.
Submission Length: Long submission (more than 12 pages of main content)
Changes Since Last Submission: Revise the paper according to the reviewers' comments.
Code: https://github.com/meobach/GloCo_ProCo
Assigned Action Editor: ~Gang_Niu1
License: Creative Commons Attribution 4.0 International (CC BY 4.0)
Submission Number: 1201
Loading