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

LightViT:迈向轻量级无卷积视觉Transformer

LightViT: Towards Light-Weight Convolution-Free Vision Transformers

SenseTime Research(商汤科技研究院);The University of Sydney(悉尼大学);The University of Tokyo(东京大学);University of Science and Technology of China(中国科学技术大学)

Tao Huang, Lang Huang, Shan You, Fei Wang, Chen Qian, Chang Xu

摘要:

视觉Transformer(ViT)通常被认为是不那么轻量级的比卷积神经网络(CNN)由于缺乏电感偏置。因此,最近的作品将卷积作为一个即插即用模块,并将它们嵌入到各种ViT对应物中。在本文中,我们认为卷积核执行信息聚合以连接所有令牌;然而,如果这种显式聚合可以以更均匀的方式运行,那么对于轻量级ViT来说,它们实际上是不必要的。受此启发,我们将LightViT作为一种新的轻量级ViT家族,以在没有卷积的纯Transformer块上实现更好的精度-效率平衡。具体地说,我们引入了一个全球性的,但有效的聚合方案到自注意力和前馈网络(FFN)的ViTs,其中引入额外的可学习的令牌来捕获全局依赖关系;和二维通道和空间的注意力施加在令牌嵌入。实验结果表明,我们的模型在图像分类,目标检测,和语义分割任务取得了显着的改善。例如,我们的LightViT-T在ImageNet上实现了78.7%的准确率,只有0.7G的FLOP,比PVTv 2-B 0高出8.2%,而在GPU上快了11%。代码可在https://github.com/hunto/LightViT上获得。

英文摘要:

Vision transformers (ViTs) are usually considered to be less light-weight than convolutional neural networks (CNNs) due to the lack of inductive bias. Recent works thus resort to convolutions as a plug-and-play module and embed them in various ViT counterparts. In this paper, we argue that the convolutional kernels perform information aggregation to connect all tokens; however, they would be actually unnecessary for light-weight ViTs if this explicit aggregation could function in a more homogeneous way. Inspired by this, we present LightViT as a new family of light-weight ViTs to achieve better accuracy-efficiency balance upon the pure transformer blocks without convolution. Concretely, we introduce a global yet efficient aggregation scheme into both self-attention and feed-forward network (FFN) of ViTs, where additional learnable tokens are introduced to capture global dependencies; and bi-dimensional channel and spatial attentions are imposed over token embeddings. Experiments show that our model achieves significant improvements on image classification, object detection, and semantic segmentation tasks. For example, our LightViT-T achieves 78.7% accuracy on ImageNet with only 0.7G FLOPs, outperforming PVTv2-B0 by 8.2% while 11% faster on GPU. Code is available at https://github.com/hunto/LightViT.

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

↑