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

Dynamic Group Transformer:一个具有动态群体注意力的通用视觉Transformer骨干

Dynamic Group Transformer: A General Vision Transformer Backbone with Dynamic Group Attention

Sun Yat-sen University(中山大学);Baidu Research(百度研究院);National Engineering Laboratory for Deep Learning Technology and Application(深度学习技术及应用国家工程实验室)

Kai Liu, Tianyi Wu, Cong Liu, Guodong Guo

摘要:

最近,Transformers在各种视觉任务中表现出了很好的性能。为了减少由每个查询涉及所有键/值所引起的二次计算复杂度,各种方法已经将注意力的范围限制在局部区域内,其中每个查询仅涉及手工制作的窗口内的键/值。然而,这些手工制作的窗口分区机制是数据不可知的,并且忽略了它们的输入内容,因此很可能一个查询可能涉及不相关的键/值。为了解决这个问题,我们提出了一个动态组注意力(DG-Attention),它动态地将所有查询分为多个组,并为每个组选择最相关的键/值。我们的DG-Attention可以灵活地建模更相关的依赖关系,而无需任何空间约束,这在手工制作的基于窗口的注意力中使用。在DG-Attention的基础上,我们开发了一个通用的视觉Transformer主干,称为动态组Transformer(DGT)。大量的实验表明,我们的模型可以在多个常见的视觉任务,包括图像分类,语义分割,目标检测和实例分割的国家的最先进的方法。

英文摘要:

Recently, Transformers have shown promising performance in various vision tasks. To reduce the quadratic computation complexity caused by each query attending to all keys/values, various methods have constrained the range of attention within local regions, where each query only attends to keys/values within a hand-crafted window. However, these hand-crafted window partition mechanisms are data-agnostic and ignore their input content, so it is likely that one query maybe attends to irrelevant keys/values. To address this issue, we propose a Dynamic Group Attention (DG-Attention), which dynamically divides all queries into multiple groups and selects the most relevant keys/values for each group. Our DG-Attention can flexibly model more relevant dependencies without any spatial constraint that is used in hand-crafted window based attention. Built on the DG-Attention, we develop a general vision transformer backbone named Dynamic Group Transformer (DGT). Extensive experiments show that our models can outperform the state-of-the-art methods on multiple common vision tasks, including image classification, semantic segmentation, object detection, and instance segmentation.

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

↑