TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Learning Imbalanced Data with Vision Transformers

Learning Imbalanced Data with Vision Transformers

Zhengzhuo Xu, Ruikang Liu, Shuo Yang, Zenghao Chai, Chun Yuan

2022-12-05CVPR 2023 1Long-tail Learning
PaperPDFCode(official)

Abstract

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% Top-1 accuracy in iNaturalist 2018 without bells and whistles. Code is available at https://github.com/XuZhengzhuo/LiVT.

Results

TaskDatasetMetricValueModel
Image ClassificationCIFAR-10-LT (ρ=10)Error Rate8.7ViT-B + Bal-BCE
Image ClassificationCIFAR-10-LT (ρ=10)Error Rate9.3ViT-B + Bal-CE
Image ClassificationCIFAR-10-LT (ρ=10)Error Rate10.1ViT-B + CB
Image ClassificationCIFAR-10-LT (ρ=10)Error Rate10.5ViT-B + CE
Image ClassificationCIFAR-10-LT (ρ=10)Error Rate11.4ViT-B + LDAM
Few-Shot Image ClassificationCIFAR-10-LT (ρ=10)Error Rate8.7ViT-B + Bal-BCE
Few-Shot Image ClassificationCIFAR-10-LT (ρ=10)Error Rate9.3ViT-B + Bal-CE
Few-Shot Image ClassificationCIFAR-10-LT (ρ=10)Error Rate10.1ViT-B + CB
Few-Shot Image ClassificationCIFAR-10-LT (ρ=10)Error Rate10.5ViT-B + CE
Few-Shot Image ClassificationCIFAR-10-LT (ρ=10)Error Rate11.4ViT-B + LDAM
Generalized Few-Shot ClassificationCIFAR-10-LT (ρ=10)Error Rate8.7ViT-B + Bal-BCE
Generalized Few-Shot ClassificationCIFAR-10-LT (ρ=10)Error Rate9.3ViT-B + Bal-CE
Generalized Few-Shot ClassificationCIFAR-10-LT (ρ=10)Error Rate10.1ViT-B + CB
Generalized Few-Shot ClassificationCIFAR-10-LT (ρ=10)Error Rate10.5ViT-B + CE
Generalized Few-Shot ClassificationCIFAR-10-LT (ρ=10)Error Rate11.4ViT-B + LDAM
Long-tail LearningCIFAR-10-LT (ρ=10)Error Rate8.7ViT-B + Bal-BCE
Long-tail LearningCIFAR-10-LT (ρ=10)Error Rate9.3ViT-B + Bal-CE
Long-tail LearningCIFAR-10-LT (ρ=10)Error Rate10.1ViT-B + CB
Long-tail LearningCIFAR-10-LT (ρ=10)Error Rate10.5ViT-B + CE
Long-tail LearningCIFAR-10-LT (ρ=10)Error Rate11.4ViT-B + LDAM
Generalized Few-Shot LearningCIFAR-10-LT (ρ=10)Error Rate8.7ViT-B + Bal-BCE
Generalized Few-Shot LearningCIFAR-10-LT (ρ=10)Error Rate9.3ViT-B + Bal-CE
Generalized Few-Shot LearningCIFAR-10-LT (ρ=10)Error Rate10.1ViT-B + CB
Generalized Few-Shot LearningCIFAR-10-LT (ρ=10)Error Rate10.5ViT-B + CE
Generalized Few-Shot LearningCIFAR-10-LT (ρ=10)Error Rate11.4ViT-B + LDAM

Related Papers

Mitigating Spurious Correlations with Causal Logit Perturbation2025-05-21LIFT+: Lightweight Fine-Tuning for Long-Tail Learning2025-04-17Improving Visual Prompt Tuning by Gaussian Neighborhood Minimization for Long-Tailed Visual Recognition2024-10-28Learning from Neighbors: Category Extrapolation for Long-Tail Learning2024-10-21Continuous Contrastive Learning for Long-Tailed Semi-Supervised Recognition2024-10-08AUCSeg: AUC-oriented Pixel-level Long-tail Semantic Segmentation2024-09-30Representation Norm Amplification for Out-of-Distribution Detection in Long-Tail Learning2024-08-20LTRL: Boosting Long-tail Recognition via Reflective Learning2024-07-17