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

AutoFormer:搜索Transformers以进行视觉识别

AutoFormer: Searching Transformers for Visual Recognition

Stony Brook University(石溪大学);Microsoft Research Asia(微软亚洲研究院)

Minghao Chen, Houwen Peng, Jianlong Fu, Haibin Ling

摘要:

近年来,纯变换模型在图像分类和检测等视觉任务中显示出巨大的潜力。然而,Transformer网络的设计是具有挑战性的。已经观察到,头部的深度、嵌入尺寸和数量可以在很大程度上影响视觉Transformer的性能。以前的模型基于手工制作配置这些尺寸。在这项工作中,我们提出了一个新的一次性架构的搜索框架,即AutoFormer,致力于视觉Transformer搜索。AutoFormer在超网训练过程中将同一层中不同块的权重纠缠在一起。受益于该策略,经过训练的超网允许成千上万的机器人接受良好的训练。具体来说,这些具有从超网继承的权重的训练器的性能与从头开始重新训练的训练器相当。此外,搜索的模型,我们称之为AutoFormers,超过了最近的最先进的,如ViT和DeiT。特别是,AutoFormer-tiny/small/base在ImageNet上分别以5.7M/22.9M/53.7M参数实现了74.7%/81.7%/82.4%的top-1准确率。最后,我们通过提供下游基准测试和蒸馏实验的性能来验证AutoFormer的可移植性。代码和模型可在https://github.com/microsoft/AutoML上获得。

英文摘要:

Recently, pure transformer-based models have shown great potentials for vision tasks such as image classification and detection. However, the design of transformer networks is challenging. It has been observed that the depth, embedding dimension, and number of heads can largely affect the performance of vision transformers. Previous models configure these dimensions based upon manual crafting. In this work, we propose a new one-shot architecture search framework, namely AutoFormer, dedicated to vision transformer search. AutoFormer entangles the weights of different blocks in the same layers during supernet training. Benefiting from the strategy, the trained supernet allows thousands of subnets to be very well-trained. Specifically, the performance of these subnets with weights inherited from the supernet is comparable to those retrained from scratch. Besides, the searched models, which we refer to AutoFormers, surpass the recent state-of-the-arts such as ViT and DeiT. In particular, AutoFormer-tiny/small/base achieve 74.7%/81.7%/82.4% top-1 accuracy on ImageNet with 5.7M/22.9M/53.7M parameters, respectively. Lastly, we verify the transferability of AutoFormer by providing the performance on downstream benchmarks and distillation experiments. Code and models are available at https://github.com/microsoft/AutoML.

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

↑