arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2203.12217cs.CV
收藏

无需培训的Transformer架构搜索

Training-free Transformer Architecture Search

Xiamen University(厦门大学);Tencent Youtu Lab(腾讯优图实验室);Peng Cheng Laboratory(鹏城实验室);Peking University(北京大学)

Qinqin Zhou, Kekai Sheng, Xiawu Zheng, Ke Li, Xing Sun, Yonghong Tian, Jie Chen, Rongrong Ji

摘要:

最近,视觉Transformer(ViT)在几个计算机视觉任务中取得了显著的成功。这些进展与体系结构设计密切相关,因此提出Transformer Architecture Search(TAS)来自动搜索更好的ViTs是非常有意义的。然而,目前的TAS方法是耗时的,并且根据我们的实验观察,CNN中现有的零成本代理不能很好地推广到ViT搜索空间。在本文中,第一次,我们研究了如何进行TAS在一个无训练的方式,并设计了一个有效的无训练TAS(TF-TAS)计划。首先,我们观察到在ViTs中多头自注意(MSA)和多层感知器(MLP)的特性是相当不同的,MSA的突触多样性显著影响性能。其次,基于观察,我们设计了一个模块化的策略TF-TAS评估和排名ViT架构从两个理论角度:突触多样性和突触显着性,称为DSS指标。使用DSS指标,评估结果与ViT模型的测试精度密切相关。实验结果表明,TF-TAS的性能与现有的人工或自动设计的ViT架构相比具有竞争力,并且极大地提高了ViT搜索空间的搜索效率:从大约$24$ GPU天提高到不到$0.5$ GPU天。此外,拟议的DSS指标优于现有的尖端零成本方法(例如,TE评分和NASWOT)。

英文摘要:

Recently, Vision Transformer (ViT) has achieved remarkable success in several computer vision tasks. The progresses are highly relevant to the architecture design, then it is worthwhile to propose Transformer Architecture Search (TAS) to search for better ViTs automatically. However, current TAS methods are time-consuming and existing zero-cost proxies in CNN do not generalize well to the ViT search space according to our experimental observations. In this paper, for the first time, we investigate how to conduct TAS in a training-free manner and devise an effective training-free TAS (TF-TAS) scheme. Firstly, we observe that the properties of multi-head self-attention (MSA) and multi-layer perceptron (MLP) in ViTs are quite different and that the synaptic diversity of MSA affects the performance notably. Secondly, based on the observation, we devise a modular strategy in TF-TAS that evaluates and ranks ViT architectures from two theoretical perspectives: synaptic diversity and synaptic saliency, termed as DSS-indicator. With DSS-indicator, evaluation results are strongly correlated with the test accuracies of ViT models. Experimental results demonstrate that our TF-TAS achieves a competitive performance against the state-of-the-art manually or automatically design ViT architectures, and it promotes the searching efficiency in ViT search space greatly: from about $24$ GPU days to less than $0.5$ GPU days. Moreover, the proposed DSS-indicator outperforms the existing cutting-edge zero-cost approaches (e.g., TE-score and NASWOT).

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

↑