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

DAT++:具有可变形注意力的空间动态视觉Transformer

DAT++: Spatially Dynamic Vision Transformer with Deformable Attention

Tsinghua University(清华大学);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院);Amazon(亚马逊)

Zhuofan Xia, Xuran Pan, Shiji Song, Li Erran Li, Gao Huang

AI总结:

针对现有视觉Transformer注意力机制在效率与长距离建模上的不足,提出可变形多头注意力模块及DAT++骨干网络,动态聚焦相关区域,在多个视觉基准上取得最先进结果。

摘要:

Transformer在各种视觉任务中表现出优越的性能。其较大的感受野赋予Transformer模型比CNN模型更高的表示能力。然而,简单地扩大感受野也引发了一些问题。一方面,在ViT中使用密集注意力会导致过高的内存和计算成本,且特征可能受到感兴趣区域之外无关部分的影响。另一方面,PVT或Swin Transformer中采用的手工设计注意力是数据无关的,可能限制了对长距离关系的建模能力。为解决这一困境,我们提出了一种新颖的可变形多头注意力模块,其中自注意力中键和值对的位置以数据相关的方式自适应分配。这种灵活的方案使得所提出的可变形注意力能够动态聚焦于相关区域,同时保持全局注意力的表示能力。在此基础上,我们提出了可变形注意力Transformer(DAT),一种高效且有效的通用视觉骨干网络,用于视觉识别。我们进一步构建了增强版本DAT++。大量实验表明,我们的DAT++在各种视觉识别基准上取得了最先进的结果,在ImageNet上达到85.9%的准确率,在MS-COCO实例分割上达到54.5和47.0的mAP,在ADE20K语义分割上达到51.5的mIoU。

英文摘要:

Transformers have shown superior performance on various vision tasks. Their large receptive field endows Transformer models with higher representation power than their CNN counterparts. Nevertheless, simply enlarging the receptive field also raises several concerns. On the one hand, using dense attention in ViT leads to excessive memory and computational cost, and features can be influenced by irrelevant parts that are beyond the region of interests. On the other hand, the handcrafted attention adopted in PVT or Swin Transformer is data agnostic and may limit the ability to model long-range relations. To solve this dilemma, we propose a novel deformable multi-head attention module, where the positions of key and value pairs in self-attention are adaptively allocated in a data-dependent way. This flexible scheme enables the proposed deformable attention to dynamically focus on relevant regions while maintains the representation power of global attention. On this basis, we present Deformable Attention Transformer (DAT), a general vision backbone efficient and effective for visual recognition. We further build an enhanced version DAT++. Extensive experiments show that our DAT++ achieves state-of-the-art results on various visual recognition benchmarks, with 85.9% ImageNet accuracy, 54.5 and 47.0 MS-COCO instance segmentation mAP, and 51.5 ADE20K semantic segmentation mIoU.

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

↑