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

扩张的邻居注意力Transformer

Dilated Neighborhood Attention Transformer

U of Oregon(俄勒冈大学);UIUC(伊利诺伊大学厄巴纳-香槟分校);Picsart AI Research (PAIR)(Picsart人工智能研究院(PAIR))

Ali Hassani, Humphrey Shi

摘要:

Transformers正在迅速成为跨模态、领域和任务应用最广泛的深度学习架构之一。在愿景中,除了正在进行的普通Transformers的努力之外,分层Transformers也受到了极大的关注,这要归功于它们的性能和易于集成到现有框架中。这些模型通常采用局部注意力机制,例如滑动窗口邻域注意(NA)或Swin Transformer的移位窗口自注意。虽然局部注意力有效地降低了自我注意力的二次复杂性,但它削弱了自我注意力的两个最理想的特性:长距离相互依赖模型和全局感受野。在本文中,我们介绍了扩张邻域注意力(DiNA),一个自然,灵活和有效的扩展NA,可以捕捉更多的全球范围内,并在没有额外的成本呈指数级扩大感受野。NA的局部注意力和DiNA的稀疏全局注意力相辅相成,因此我们引入了扩张邻域注意力Transformer(DiNAT),这是一种建立在两者之上的新的分层视觉Transformer。DiNAT变体比NAT、Swin和ConvNeXt等强基线有显著改进。我们的大型模型更快,在COCO目标检测中有1.6%的box AP,在COCO实例分割中有1.4%的mask AP,在ADE 20 K语义分割中有1.4%的mIoU。与新框架配对,我们的大型变体是COCO(58.5 PQ)和ADE 20 K(49.4 PQ)上最先进的新全景分割模型,以及Cityscapes(45.1 AP)和ADE 20 K(35.4 AP)上的实例分割模型(无额外数据)。它还与ADE 20 K上最先进的专用语义分割模型(58.1 mIoU)相匹配,在Cityscapes上排名第二(84.5 mIoU)(无额外数据)。

英文摘要:

Transformers are quickly becoming one of the most heavily applied deep learning architectures across modalities, domains, and tasks. In vision, on top of ongoing efforts into plain transformers, hierarchical transformers have also gained significant attention, thanks to their performance and easy integration into existing frameworks. These models typically employ localized attention mechanisms, such as the sliding-window Neighborhood Attention (NA) or Swin Transformer's Shifted Window Self Attention. While effective at reducing self attention's quadratic complexity, local attention weakens two of the most desirable properties of self attention: long range inter-dependency modeling, and global receptive field. In this paper, we introduce Dilated Neighborhood Attention (DiNA), a natural, flexible and efficient extension to NA that can capture more global context and expand receptive fields exponentially at no additional cost. NA's local attention and DiNA's sparse global attention complement each other, and therefore we introduce Dilated Neighborhood Attention Transformer (DiNAT), a new hierarchical vision transformer built upon both. DiNAT variants enjoy significant improvements over strong baselines such as NAT, Swin, and ConvNeXt. Our large model is faster and ahead of its Swin counterpart by 1.6% box AP in COCO object detection, 1.4% mask AP in COCO instance segmentation, and 1.4% mIoU in ADE20K semantic segmentation. Paired with new frameworks, our large variant is the new state of the art panoptic segmentation model on COCO (58.5 PQ) and ADE20K (49.4 PQ), and instance segmentation model on Cityscapes (45.1 AP) and ADE20K (35.4 AP) (no extra data). It also matches the state of the art specialized semantic segmentation models on ADE20K (58.1 mIoU), and ranks second on Cityscapes (84.5 mIoU) (no extra data).

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

↑