arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.02015cs.CVcs.LG
收藏

使用视觉Transformer学习不平衡数据

Learning Imbalanced Data with Vision Transformers

Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院)

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

摘要:

现实世界的数据往往是严重不平衡的,并严重扭曲了数据驱动的深度神经网络,这使得长尾识别(LTR)成为一项巨大的挑战性任务。现有的LTR方法很少训练具有长尾(LT)数据的视觉Transformer(ViT),而ViT的现成预训练重量总是导致不公平的比较。在本文中,我们系统地研究了虚拟技术在LTR中的表现,并提出了LiVT来训练虚拟技术。由于观察到ViTs遭受更严重的LTR问题,我们进行了MGP(Masked Generative Pretraining)来学习广义特征。通过大量的证据证明了MGP比有监督的方式具有更好的鲁棒性。此外,二进制交叉熵(BCE)损失,这表明显着的性能与ViTs,遇到困境,在LTR。我们进一步提出了平衡BCE,以改善它具有强大的理论基础。特别地,我们推导了Sigmoid的无偏扩展,并补偿了额外的logit余量来部署它。我们的Bal-BCE有助于在几个时期内快速收敛ViTs。大量的实验表明,使用MGP和Bal-BCE,LiVT在没有任何额外数据的情况下成功地训练了ViTs,并且显著优于可比的最先进方法,例如,我们的ViT-B在iNaturalist 2018中达到了81.0%的Top-1准确率,没有任何花哨的东西。代码可在https://github.com/XuZhengzhuo/LiVT上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑