Learning Imbalanced Data with Vision Transformers

12/05/2022
by   Zhengzhuo Xu, et al.
0

The real-world data tends to be heavily imbalanced and severely skew the data-driven deep neural networks, which makes Long-Tailed Recognition (LTR) a massive challenging task. Existing LTR methods seldom train Vision Transformers (ViTs) with Long-Tailed (LT) data, while the off-the-shelf pretrain weight of ViTs always leads to unfair comparisons. In this paper, we systematically investigate the ViTs' performance in LTR and propose LiVT to train ViTs from scratch only with LT data. With the observation that ViTs suffer more severe LTR problems, we conduct Masked Generative Pretraining (MGP) to learn generalized features. With ample and solid evidence, we show that MGP is more robust than supervised manners. In addition, Binary Cross Entropy (BCE) loss, which shows conspicuous performance with ViTs, encounters predicaments in LTR. We further propose the balanced BCE to ameliorate it with strong theoretical groundings. Specially, we derive the unbiased extension of Sigmoid and compensate extra logit margins to deploy it. Our Bal-BCE contributes to the quick convergence of ViTs in just a few epochs. Extensive experiments demonstrate that with MGP and Bal-BCE, LiVT successfully trains ViTs well without any additional data and outperforms comparable state-of-the-art methods significantly, e.g., our ViT-B achieves 81.0 2018 without bells and whistles. Code is available at https://github.com/XuZhengzhuo/LiVT.

READ FULL TEXT

page 8

page 19

research
02/16/2022

Cyclical Focal Loss

The cross-entropy softmax loss is the primary loss function used to trai...
research
09/26/2022

Generalized Parametric Contrastive Learning

In this paper, we propose the Generalized Parametric Contrastive Learnin...
research
02/28/2023

Rethink Long-tailed Recognition with Vision Transforms

In the real world, data tends to follow long-tailed distributions w.r.t....
research
04/06/2021

Adversarial Robustness under Long-Tailed Distribution

Adversarial robustness has attracted extensive studies recently by revea...
research
05/19/2023

Long-tailed Visual Recognition via Gaussian Clouded Logit Adjustment

Long-tailed data is still a big challenge for deep neural networks, even...
research
08/24/2020

Balanced Activation for Long-tailed Visual Recognition

Deep classifiers have achieved great success in visual recognition. Howe...
research
06/13/2023

Is Anisotropy Inherent to Transformers?

The representation degeneration problem is a phenomenon that is widely o...

Please sign up or login with your details

Forgot password? Click here to reset