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

高效多级视觉Transformer的研究

Searching for Efficient Multi-Stage Vision Transformers

Massachusetts Institute of Technology(麻省理工学院)

Yi-Lun Liao, Sertac Karaman, Vivienne Sze

摘要:

视觉Transformer(ViT)表明,用于自然语言处理的Transformer可应用于计算机视觉任务,并具有与卷积神经网络(CNN)相当的性能,后者已在计算机视觉中研究和采用多年。这自然提出了一个问题,即如何使用CNN的设计技术来提高ViT的性能。为此,我们建议将两种技术,并提出ViT-ResNAS,一个有效的多阶段ViT架构设计与神经架构搜索(NAS)。首先,我们提出了残差空间减少,以减少更深层次的序列长度,并利用多级架构。当减少长度时,我们添加跳过连接以提高性能并稳定训练更深的网络。其次,我们提出了权重共享NAS与多架构采样。我们扩大一个网络,并利用它的子网络来定义一个搜索空间。然后训练一个覆盖所有子网络的超级网络,以快速评估它们的性能。为了有效地训练超级网络,我们提出了采样和训练多个子网络与一个向前-向后通过。在此之后,进化搜索进行发现高性能的网络架构。ImageNet上的实验表明,ViT-ResNAS比原始DeiT和ViT的其他强基线实现了更好的准确性-MAC和准确性-吞吐量权衡。代码可在https://github.com/yilunliao/vit-search上获得。

英文摘要:

Vision Transformer (ViT) demonstrates that Transformer for natural language processing can be applied to computer vision tasks and result in comparable performance to convolutional neural networks (CNN), which have been studied and adopted in computer vision for years. This naturally raises the question of how the performance of ViT can be advanced with design techniques of CNN. To this end, we propose to incorporate two techniques and present ViT-ResNAS, an efficient multi-stage ViT architecture designed with neural architecture search (NAS). First, we propose residual spatial reduction to decrease sequence lengths for deeper layers and utilize a multi-stage architecture. When reducing lengths, we add skip connections to improve performance and stabilize training deeper networks. Second, we propose weight-sharing NAS with multi-architectural sampling. We enlarge a network and utilize its sub-networks to define a search space. A super-network covering all sub-networks is then trained for fast evaluation of their performance. To efficiently train the super-network, we propose to sample and train multiple sub-networks with one forward-backward pass. After that, evolutionary search is performed to discover high-performance network architectures. Experiments on ImageNet demonstrate that ViT-ResNAS achieves better accuracy-MACs and accuracy-throughput trade-offs than the original DeiT and other strong baselines of ViT. Code is available at https://github.com/yilunliao/vit-search.

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

↑