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

ViTAS:视觉Transformer架构搜索

ViTAS: Vision Transformer Architecture Search

The University of Sydney(悉尼大学);SenseTime Research(商汤科技研究院);Tsinghua University(清华大学);Beijing University of Posts and Telecommunications(北京邮电大学);University of Science and Technology of China(中国科学技术大学);The Chinese University of Hong Kong(香港中文大学)

Xiu Su, Shan You, Jiyang Xie, Mingkai Zheng, Fei Wang, Chen Qian, Changshui Zhang, Xiaogang Wang, Chang Xu

摘要:

Vision Transformers(ViTs)继承了NLP的成功,但它们的结构还没有得到充分的研究和优化视觉任务。最简单的解决方案之一是通过CNN中广泛使用的神经结构搜索(NAS)直接搜索最优解。然而,我们根据经验发现,这种直接的适应会遇到灾难性的失败,并且对于训练优秀者来说非常不稳定。在本文中,我们认为,由于ViT主要在令牌嵌入上操作,几乎没有归纳偏差,因此不同架构的通道不平衡会恶化权重共享假设,从而导致训练不稳定。因此,我们开发了一种新的循环权重共享机制,用于ViT的令牌嵌入,这使得每个通道可以更均匀地贡献给所有候选架构。此外,我们还提出了身份转换,以减轻多对一的问题,在superperformer和利用弱增强和正则化技术更稳定的训练经验。基于这些,我们提出的方法,ViTAS,已经取得了显着的优势,在DeiT和Twins为基础的ViTs。例如,仅使用$1.4$ G FLOP预算,我们搜索的架构具有比基线DeiT更高的$3.3\%$ ImageNet- $1$ k精度。使用$3.0$ G FLOPs,我们的结果在ImageNet- $1$ k上实现了$82.0\%$的准确性,在COCO $2017$上实现了$45.9\%$ mAP,这是$2.4\%$优于其他ViT。

英文摘要:

Vision transformers (ViTs) inherited the success of NLP but their structures have not been sufficiently investigated and optimized for visual tasks. One of the simplest solutions is to directly search the optimal one via the widely used neural architecture search (NAS) in CNNs. However, we empirically find this straightforward adaptation would encounter catastrophic failures and be frustratingly unstable for the training of superformer. In this paper, we argue that since ViTs mainly operate on token embeddings with little inductive bias, imbalance of channels for different architectures would worsen the weight-sharing assumption and cause the training instability as a result. Therefore, we develop a new cyclic weight-sharing mechanism for token embeddings of the ViTs, which enables each channel could more evenly contribute to all candidate architectures. Besides, we also propose identity shifting to alleviate the many-to-one issue in superformer and leverage weak augmentation and regularization techniques for more steady training empirically. Based on these, our proposed method, ViTAS, has achieved significant superiority in both DeiT- and Twins-based ViTs. For example, with only $1.4$G FLOPs budget, our searched architecture has $3.3\%$ ImageNet-$1$k accuracy than the baseline DeiT. With $3.0$G FLOPs, our results achieve $82.0\%$ accuracy on ImageNet-$1$k, and $45.9\%$ mAP on COCO$2017$ which is $2.4\%$ superior than other ViTs.

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

↑