Adjusting Logit in Gaussian Form for Long-Tailed Visual Recognition

Mengke Li, Yiu-ming Cheung, Yang Lu, Zhikai Hu, Weichao Lan +1 more
5/18/2023
cs.CVcs.AI

Official code: Keke921/GCLLoss (46 stars, last commit 2025-05-19).

Abstract

It is not uncommon that real-world data are distributed with a long tail. For such data, the learning of deep neural networks becomes challenging because it is hard to classify tail classes correctly. In the literature, several existing methods have addressed this problem by reducing classifier bias, provided that the features obtained with long-tailed data are representative enough. However, we find that training directly on long-tailed data leads to uneven embedding space. That is, the embedding space of head classes severely compresses that of tail classes, which is not conducive to subsequent classifier learning. This paper therefore studies the problem of long-tailed visual recognition from the perspective of feature level. We introduce feature augmentation to balance the embedding distribution. The features of different classes are perturbed with varying amplitudes in Gaussian form. Based on these perturbed features, two novel logit adjustment methods are proposed to improve model performance at a modest computational overhead. Subsequently, the distorted embedding spaces of all classes can be calibrated. In such balanced-distributed embedding spaces, the biased classifier can be eliminated by simply retraining the classifier with class-balanced sampling data. Extensive experiments conducted on benchmark datasets demonstrate the superior performance of the proposed method over the state-of-the-art ones. Source code is available at https://github.com/Keke921/GCLLoss.

View on arXivView PDF

Code Implementations(1)

Keke921/GCLLossOfficial100%

official source code for the Paper: **Long-tailed Visual Recognition via Gaussian Clouded Logit Adjustment** based on Pytorch.

467PythonMar 8, 20221 years ago

Similar Papers

Cite this paper

@article{li2023adjusting,
  title  = {Adjusting Logit in Gaussian Form for Long-Tailed Visual Recognition},
  author = {Mengke Li and Yiu-ming Cheung and Yang Lu and Zhikai Hu and Weichao Lan and Hui Huang},
  year   = {2023},
  eprint = {2305.10648},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.10648v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.10648.svg)](https://codeofpaper.com/paper/2305.10648)

Discussion