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

DualToken-ViT:具有双令牌融合的位置感知高效视觉Transformer

DualToken-ViT: Position-aware Efficient Vision Transformer with Dual Token Fusion

East China Normal University(华东师范大学);Alibaba Group(阿里巴巴集团)

Zhenzhen Chu, Jiayu Chen, Cen Chen, Chengyu Wang, Ziheng Wu, Jun Huang, Weining Qian

AI总结:

本文提出轻量高效的DualToken-ViT,通过融合卷积局部令牌与自注意力全局令牌并引入位置感知全局令牌,在ImageNet-1K上以0.5G/1.0G FLOPs达到75.4%/79.4%准确率,优于LightViT-T。

摘要:

基于自注意力的视觉Transformer(ViTs)已成为计算机视觉中极具竞争力的架构。与卷积神经网络(CNNs)不同,ViTs能够实现全局信息共享。随着各种ViTs结构的发展,ViTs在许多视觉任务中日益展现出优势。然而,自注意力的二次复杂度使ViTs计算密集,且其缺乏局部性和平移等变性的归纳偏置,导致与CNNs相比需要更大的模型规模才能有效学习视觉特征。本文提出了一种轻量且高效的视觉Transformer模型,称为DualToken-ViT,它利用了CNNs和ViTs的优势。DualToken-ViT有效地融合了由基于卷积的结构获得的具有局部信息的令牌和由基于自注意力的结构获得的具有全局信息的令牌,以实现高效的注意力结构。此外,我们在所有阶段使用位置感知全局令牌来丰富全局信息,进一步增强了DualToken-ViT的效果。位置感知全局令牌还包含图像的位置信息,使我们的模型更适合视觉任务。我们在图像分类、目标检测和语义分割任务上进行了大量实验,以证明DualToken-ViT的有效性。在ImageNet-1K数据集上,我们不同规模的模型分别以仅0.5G和1.0G FLOPs的计算量达到了75.4%和79.4%的准确率,并且我们具有1.0G FLOPs的模型在使用全局令牌的情况下比LightViT-T高出0.7%。

英文摘要:

Self-attention-based vision transformers (ViTs) have emerged as a highly competitive architecture in computer vision. Unlike convolutional neural networks (CNNs), ViTs are capable of global information sharing. With the development of various structures of ViTs, ViTs are increasingly advantageous for many vision tasks. However, the quadratic complexity of self-attention renders ViTs computationally intensive, and their lack of inductive biases of locality and translation equivariance demands larger model sizes compared to CNNs to effectively learn visual features. In this paper, we propose a light-weight and efficient vision transformer model called DualToken-ViT that leverages the advantages of CNNs and ViTs. DualToken-ViT effectively fuses the token with local information obtained by convolution-based structure and the token with global information obtained by self-attention-based structure to achieve an efficient attention structure. In addition, we use position-aware global tokens throughout all stages to enrich the global information, which further strengthening the effect of DualToken-ViT. Position-aware global tokens also contain the position information of the image, which makes our model better for vision tasks. We conducted extensive experiments on image classification, object detection and semantic segmentation tasks to demonstrate the effectiveness of DualToken-ViT. On the ImageNet-1K dataset, our models of different scales achieve accuracies of 75.4% and 79.4% with only 0.5G and 1.0G FLOPs, respectively, and our model with 1.0G FLOPs outperforms LightViT-T using global tokens by 0.7%.

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

↑