arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.13840cs.CVcs.AIcs.LG
收藏

Twins:重新审视视觉Transformer中的空间注意设计

Twins: Revisiting the Design of Spatial Attention in Vision Transformers

Meituan Inc.(美团公司);The University of Adelaide(阿德莱德大学)

Xiangxiang Chu, Zhi Tian, Yuqing Wang, Bo Zhang, Haibing Ren, Xiaolin Wei, Huaxia Xia, Chunhua Shen

摘要:

最近,各种各样的视觉Transformer架构密集的预测任务已经提出,他们表明,空间注意力的设计是至关重要的,他们在这些任务中的成功。在这项工作中,我们重新审视了空间注意力的设计,并证明了一个精心设计的,但简单的空间注意力机制表现良好,对国家的最先进的计划。因此,我们提出了两个视觉Transformer架构,即双PCPVT和双SVT。我们提出的架构高效且易于实现,仅涉及在现代深度学习框架中高度优化的矩阵乘法。更重要的是,所提出的架构在广泛的视觉任务上实现了出色的性能,包括图像级分类以及密集检测和分割。简单性和强大的性能表明,我们提出的架构可以作为许多视觉任务的更强大的骨干。我们的代码发布在https://github.com/Meituan-AutoML/Twins。

英文摘要:

Very recently, a variety of vision transformer architectures for dense prediction tasks have been proposed and they show that the design of spatial attention is critical to their success in these tasks. In this work, we revisit the design of the spatial attention and demonstrate that a carefully-devised yet simple spatial attention mechanism performs favourably against the state-of-the-art schemes. As a result, we propose two vision transformer architectures, namely, Twins-PCPVT and Twins-SVT. Our proposed architectures are highly-efficient and easy to implement, only involving matrix multiplications that are highly optimized in modern deep learning frameworks. More importantly, the proposed architectures achieve excellent performance on a wide range of visual tasks, including image level classification as well as dense detection and segmentation. The simplicity and strong performance suggest that our proposed architectures may serve as stronger backbones for many vision tasks. Our code is released at https://github.com/Meituan-AutoML/Twins .

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

↑