English

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

Computer Vision and Pattern Recognition 2022-05-30 v4

Abstract

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.

Keywords

Cite

@article{arxiv.2203.03937,
  title  = {Dynamic Group Transformer: A General Vision Transformer Backbone with Dynamic Group Attention},
  author = {Kai Liu and Tianyi Wu and Cong Liu and Guodong Guo},
  journal= {arXiv preprint arXiv:2203.03937},
  year   = {2022}
}

Comments

11 pages, 6 figures. Accepted by IJCAI 2022

R2 v1 2026-06-24T10:05:41.859Z