多样性原则:培养更强的视觉Transformer要求减少所有级别的冗余
The Principle of Diversity: Training Stronger Vision Transformers Calls for Reducing All Levels of Redundancy
摘要:
视觉Transformer(ViTs)越来越受欢迎,因为它们通常被认为具有比传统卷积网络更高的建模能力和表示灵活性。然而,这种潜力是否在实践中得到了充分释放是值得怀疑的,因为学习的ViTs经常受到过度平滑的影响,产生可能冗余的模型。最近的工作做了初步的尝试,以确定和减轻这种冗余,例如,通过正则化嵌入相似性或重新注入卷积类结构。然而,在这一领域,还没有关于虚拟技术冗余程度的“从头到脚的评估”,以及通过彻底减轻这种冗余,我们可以获得多少好处。本文首次系统地研究了冗余在补丁嵌入、注意力图和权重空间三个层次上的普遍存在性。有鉴于此,我们主张训练ViTs的多样性原则,通过提出相应的正则化器,鼓励在每个级别上的表示多样性和覆盖率,从而能够捕获更多的歧视性信息。在ImageNet上进行的大量实验验证了我们的建议的有效性,在很大程度上消除了观察到的ViT冗余,并显着提高了模型的泛化能力。例如,我们多样化的DeiT在ImageNet上获得了0.70%~1.76%的准确率,并且高度降低了相似性。我们的代码可在https://github.com/VITA-Group/Diverse-ViT上完整获取。
英文摘要:
Vision transformers (ViTs) have gained increasing popularity as they are commonly believed to own higher modeling capacity and representation flexibility, than traditional convolutional networks. However, it is questionable whether such potential has been fully unleashed in practice, as the learned ViTs often suffer from over-smoothening, yielding likely redundant models. Recent works made preliminary attempts to identify and alleviate such redundancy, e.g., via regularizing embedding similarity or re-injecting convolution-like structures. However, a "head-to-toe assessment" regarding the extent of redundancy in ViTs, and how much we could gain by thoroughly mitigating such, has been absent for this field. This paper, for the first time, systematically studies the ubiquitous existence of redundancy at all three levels: patch embedding, attention map, and weight space. In view of them, we advocate a principle of diversity for training ViTs, by presenting corresponding regularizers that encourage the representation diversity and coverage at each of those levels, that enabling capturing more discriminative information. Extensive experiments on ImageNet with a number of ViT backbones validate the effectiveness of our proposals, largely eliminating the observed ViT redundancy and significantly boosting the model generalization. For example, our diversified DeiT obtains 0.70%~1.76% accuracy boosts on ImageNet with highly reduced similarity. Our codes are fully available in https://github.com/VITA-Group/Diverse-ViT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。