arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.01548cs.CVcs.LG
收藏

当视觉Transformer在没有预训练或强数据增强的情况下优于ResNets时

When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations

Google Research(谷歌研究院);UCLA(加州大学洛杉矶分校)

Xiangning Chen, Cho-Jui Hsieh, Boqing Gong

摘要:

视觉Transformer(ViTs)和MLP标志着用通用神经架构取代手工布线功能或电感偏置的进一步努力。现有的工作通过大量数据来增强模型,例如大规模预训练和/或重复的强数据增强,并且仍然报告优化相关的问题(例如,对初始化和学习率的敏感性)。因此,本文从损失几何的角度研究了ViTs和MLP混合器,旨在提高模型在训练和推理时的数据效率。可视化和Hessian揭示了收敛模型的非常尖锐的局部极小值。通过使用最近提出的锐度感知优化器来促进平滑度,我们大大提高了ViTs和MLP混合器在各种任务上的准确性和鲁棒性,这些任务包括监督、对抗、对比和迁移学习(例如,ViT-B/16和Mixer-B/16在ImageNet上的top-1准确率分别为+5.3\%和+11.0\%,使用简单的Inception风格预处理)。我们表明,改进的平滑属性稀疏活跃的神经元在前几层。当在ImageNet上从头开始训练时,所得到的ViT优于类似大小和吞吐量的ResNet,而无需大规模的预训练或强大的数据增强。模型检查点位于\url{https://github.com/google-research/vision_transformer}。

英文摘要:

Vision Transformers (ViTs) and MLPs signal further efforts on replacing hand-wired features or inductive biases with general-purpose neural architectures. Existing works empower the models by massive data, such as large-scale pre-training and/or repeated strong data augmentations, and still report optimization-related problems (e.g., sensitivity to initialization and learning rates). Hence, this paper investigates ViTs and MLP-Mixers from the lens of loss geometry, intending to improve the models' data efficiency at training and generalization at inference. Visualization and Hessian reveal extremely sharp local minima of converged models. By promoting smoothness with a recently proposed sharpness-aware optimizer, we substantially improve the accuracy and robustness of ViTs and MLP-Mixers on various tasks spanning supervised, adversarial, contrastive, and transfer learning (e.g., +5.3\% and +11.0\% top-1 accuracy on ImageNet for ViT-B/16 and Mixer-B/16, respectively, with the simple Inception-style preprocessing). We show that the improved smoothness attributes to sparser active neurons in the first few layers. The resultant ViTs outperform ResNets of similar size and throughput when trained from scratch on ImageNet without large-scale pre-training or strong data augmentations. Model checkpoints are available at \url{https://github.com/google-research/vision_transformer}.

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

↑