引导ViTs:从预训练中解放视觉Transformer
Bootstrapping ViTs: Towards Liberating Vision Transformers from Pre-training
摘要:
近年来,视觉Transformer(ViTs)发展迅速,并开始挑战计算机视觉(CV)领域中卷积神经网络(CNN)的统治地位。随着通用Transformer架构取代卷积的硬编码感应偏置,ViT已经超过了CNN,特别是在数据充足的情况下。然而,ViT容易在小数据集上过度拟合,因此依赖于大规模的预训练,这需要花费大量的时间。在本文中,我们努力将ViTs从预训练中解放出来,将CNN的归纳偏差引入ViTs,同时保留它们的网络架构以获得更高的上限并设置更合适的优化目标。首先,基于具有归纳偏差的给定ViT设计了代理CNN。然后提出了一种自举训练算法,通过权重共享共同优化Agent和ViT,ViT从Agent的中间特征中学习归纳偏差。在有限训练数据的CIFAR-10/100和ImageNet-1 k上进行的大量实验显示了令人鼓舞的结果,即归纳偏差有助于ViT更快地收敛,并在更少的参数下优于传统的CNN。我们的代码可在https://github.com/zhfeing/Bootstrapping-ViTs-pytorch上公开获取。
英文摘要:
Recently, vision Transformers (ViTs) are developing rapidly and starting to challenge the domination of convolutional neural networks (CNNs) in the realm of computer vision (CV). With the general-purpose Transformer architecture replacing the hard-coded inductive biases of convolution, ViTs have surpassed CNNs, especially in data-sufficient circumstances. However, ViTs are prone to over-fit on small datasets and thus rely on large-scale pre-training, which expends enormous time. In this paper, we strive to liberate ViTs from pre-training by introducing CNNs' inductive biases back to ViTs while preserving their network architectures for higher upper bound and setting up more suitable optimization objectives. To begin with, an agent CNN is designed based on the given ViT with inductive biases. Then a bootstrapping training algorithm is proposed to jointly optimize the agent and ViT with weight sharing, during which the ViT learns inductive biases from the intermediate features of the agent. Extensive experiments on CIFAR-10/100 and ImageNet-1k with limited training data have shown encouraging results that the inductive biases help ViTs converge significantly faster and outperform conventional CNNs with even fewer parameters. Our code is publicly available at https://github.com/zhfeing/Bootstrapping-ViTs-pytorch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。