arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.02689cs.CV
收藏

RegionViT:从区域到地方关注视觉Transformer

RegionViT: Regional-to-Local Attention for Vision Transformers

MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Chun-Fu Chen, Rameswar Panda, Quanfu Fan

摘要:

视觉Transformer(ViT)最近在图像分类上显示出其强大的能力,可以实现与卷积神经网络(CNN)相当的结果。然而,vanilla ViT只是直接从自然语言处理继承了相同的架构,这通常不是针对视觉应用进行优化的。基于此,本文提出了一种新的架构,该架构采用金字塔结构,并在视觉Transformer中采用了一种新的区域到局部的注意力而不是全局的自注意力。更具体地说,我们的模型首先从具有不同补丁大小的图像生成区域令牌和本地令牌,其中每个区域令牌与基于空间位置的一组本地令牌相关联。区域到局部注意包括两个步骤:首先,区域自注意从所有区域标记中提取全局信息,然后局部自注意通过自注意在一个区域标记和关联的局部标记之间交换信息。因此,即使局部自我注意将范围限制在局部区域内,但它仍然可以接收全局信息。四个视觉任务,包括图像分类,对象和关键点检测,语义分割和动作识别,广泛的实验表明,我们的方法优于或等同于国家的最先进的ViT的变种,包括许多并发的作品。我们的源代码和模型可以在https://github.com/ibm/regionvit上找到。

英文摘要:

Vision transformer (ViT) has recently shown its strong capability in achieving comparable results to convolutional neural networks (CNNs) on image classification. However, vanilla ViT simply inherits the same architecture from the natural language processing directly, which is often not optimized for vision applications. Motivated by this, in this paper, we propose a new architecture that adopts the pyramid structure and employ a novel regional-to-local attention rather than global self-attention in vision transformers. More specifically, our model first generates regional tokens and local tokens from an image with different patch sizes, where each regional token is associated with a set of local tokens based on the spatial location. The regional-to-local attention includes two steps: first, the regional self-attention extract global information among all regional tokens and then the local self-attention exchanges the information among one regional token and the associated local tokens via self-attention. Therefore, even though local self-attention confines the scope in a local region but it can still receive global information. Extensive experiments on four vision tasks, including image classification, object and keypoint detection, semantics segmentation and action recognition, show that our approach outperforms or is on par with state-of-the-art ViT variants including many concurrent works. Our source codes and models are available at https://github.com/ibm/regionvit.

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

↑