arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.07617cs.CV
收藏

分布偏移下视觉Transformer的推广研究

Delving Deep into the Generalization of Vision Transformers under Distribution Shifts

Beihang University(北京航空航天大学);Peking University(北京大学);Shanghai AI Laboratory(上海人工智能实验室)

Chongzhi Zhang, Mingyuan Zhang, Shanghang Zhang, Daisheng Jin, Qiang Zhou, Zhongang Cai, Haiyu Zhao, Xianglong Liu, Ziwei Liu

摘要:

视觉Transformer(ViTs)在各种视觉任务上取得了令人印象深刻的性能,但它们在分布偏移(DS)下的泛化很少被理解。在这项工作中,我们全面研究了ViTs的分布外(OOD)推广。为了进行系统的研究,我们首先提出了一个分类的DS。然后,我们在不同的DS下对ViT变体进行了广泛的评估,并将其推广与卷积神经网络(CNN)模型进行了比较。主要结论如下:1)ViTs对背景和纹理的学习偏向较弱,而对形状和结构的学习偏向较强,这与人类的认知特征更为一致。因此,在DS下,ViTs比CNN更好地推广。在相同或更少数量的参数下,在大多数类型的DS下,ViT在前1精度方面领先于相应的CNN超过5%。2)随着模型规模的增加,ViTs加强了这些偏差,从而逐渐缩小了分布和OOD性能差距。为了进一步提高ViTs的泛化能力,本文从对抗学习、信息论和自监督学习的角度设计了泛化增强ViTs(Generalization-Enhanced ViTs,GE-ViTs)。通过全面研究这些GE-ViT并与相应的CNN模型进行比较,我们观察到:1)对于增强模型,较大的ViT仍然更有利于OOD泛化。2)GE-ViT比其对应的CNN模型对超参数更敏感。我们设计了一个更平滑的学习策略,以实现稳定的训练过程,并从vanilla ViTs中获得4%的OOD数据性能提升。我们希望我们的综合研究可以揭示更普遍的学习架构的设计。

英文摘要:

Vision Transformers (ViTs) have achieved impressive performance on various vision tasks, yet their generalization under distribution shifts (DS) is rarely understood. In this work, we comprehensively study the out-of-distribution (OOD) generalization of ViTs. For systematic investigation, we first present a taxonomy of DS. We then perform extensive evaluations of ViT variants under different DS and compare their generalization with Convolutional Neural Network (CNN) models. Important observations are obtained: 1) ViTs learn weaker biases on backgrounds and textures, while they are equipped with stronger inductive biases towards shapes and structures, which is more consistent with human cognitive traits. Therefore, ViTs generalize better than CNNs under DS. With the same or less amount of parameters, ViTs are ahead of corresponding CNNs by more than 5% in top-1 accuracy under most types of DS. 2) As the model scale increases, ViTs strengthen these biases and thus gradually narrow the in-distribution and OOD performance gap. To further improve the generalization of ViTs, we design the Generalization-Enhanced ViTs (GE-ViTs) from the perspectives of adversarial learning, information theory, and self-supervised learning. By comprehensively investigating these GE-ViTs and comparing with their corresponding CNN models, we observe: 1) For the enhanced model, larger ViTs still benefit more for the OOD generalization. 2) GE-ViTs are more sensitive to the hyper-parameters than their corresponding CNN models. We design a smoother learning strategy to achieve a stable training process and obtain performance improvements on OOD data by 4% from vanilla ViTs. We hope our comprehensive study could shed light on the design of more generalizable learning architectures.

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

↑