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

Evo-ViT:动态视觉Transformer的慢-快令牌演化

Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformer

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Shanghai Jiao Tong University(上海交通大学);Tencent Youtu Lab(腾讯优图实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Yifan Xu, Zhijie Zhang, Mengdan Zhang, Kekai Sheng, Ke Li, Weiming Dong, Liqing Zhang, Changsheng Xu, Xing Sun

摘要:

视觉Transformer(ViTs)最近受到了爆炸式的欢迎,但巨大的计算成本仍然是一个严重的问题。由于ViT的计算复杂度是输入序列长度的二次方,因此减少计算的主流范例是减少令牌的数量。现有的设计包括结构化空间压缩,它使用渐进收缩金字塔来减少大型特征图的计算,以及非结构化令牌修剪,动态丢弃冗余令牌。然而,现有的令牌修剪的局限性在于两个折叠:1)修剪导致的不完整的空间结构与现代深窄Transformers中常用的结构化空间压缩不兼容; 2)它通常需要耗时的预训练过程。为了解决令牌修剪的局限性并扩展令牌修剪的适用场景,我们提出了Evo-ViT,一种用于视觉Transformer的自激励慢-快令牌进化方法。具体来说,我们进行非结构化的实例明智的令牌选择,利用简单而有效的全球类的注意力,是原生的视觉Transformer。然后,我们提出了更新所选择的信息令牌和非信息令牌不同的计算路径,即慢-快更新。由于慢-快更新机制保持了空间结构和信息流,Evo-ViT可以从训练过程的一开始就加速平坦和深窄结构的vanilla Transformers。实验结果表明,我们的方法显着降低了视觉Transformer的计算成本,同时保持相当的性能图像分类。

英文摘要:

Vision transformers (ViTs) have recently received explosive popularity, but the huge computational cost is still a severe issue. Since the computation complexity of ViT is quadratic with respect to the input sequence length, a mainstream paradigm for computation reduction is to reduce the number of tokens. Existing designs include structured spatial compression that uses a progressive shrinking pyramid to reduce the computations of large feature maps, and unstructured token pruning that dynamically drops redundant tokens. However, the limitation of existing token pruning lies in two folds: 1) the incomplete spatial structure caused by pruning is not compatible with structured spatial compression that is commonly used in modern deep-narrow transformers; 2) it usually requires a time-consuming pre-training procedure. To tackle the limitations and expand the applicable scenario of token pruning, we present Evo-ViT, a self-motivated slow-fast token evolution approach for vision transformers. Specifically, we conduct unstructured instance-wise token selection by taking advantage of the simple and effective global class attention that is native to vision transformers. Then, we propose to update the selected informative tokens and uninformative tokens with different computation paths, namely, slow-fast updating. Since slow-fast updating mechanism maintains the spatial structure and information flow, Evo-ViT can accelerate vanilla transformers of both flat and deep-narrow structures from the very beginning of the training process. Experimental results demonstrate that our method significantly reduces the computational cost of vision transformers while maintaining comparable performance on image classification.

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

↑