DaViT: Dual Attention Vision Transformers

By Mingyu Ding, Bin Xiao, Noel C. F. Codella, Ping Luo, Jingdong Wang, Lu Yuan. 2022

406 citations recorded by the source corpus.

In this work, we introduce Dual Attention Vision Transformers (DaViT), a simple yet effective vision transformer architecture that is able to capture global context while maintaining computational efficiency. We propose approaching the problem from an orthogonal angle: exploiting self-attention mechanisms with both"spatial tokens"and"channel tokens". With spatial tokens, the spatial dimension defines the token scope, and the channel dimension defines the token feature dimension. With channel tokens, we have the inverse: the channel dimension defines the token scope, and the spatial dimension defines the token feature dimension. We further group tokens along the sequence direction for both spatial and channel tokens to maintain the linear complexity of the entire model. We show that these two self-attentions complement each other: (i) since each channel token contains an abstract representation of the entire image, the channel attention naturally captures global interactions and representations by taking all spatial positions into account when computing attention scores between channels; (ii) the spatial attention refines the local representations by performing fine-grained interactions across spatial locations, which in turn helps the global information modeling in channel attention. Extensive experiments show our DaViT achieves state-of-the-art performance on four different tasks with efficient computations. Without extra data, DaViT-Tiny, DaViT-Small, and DaViT-Base achieve 82.8%, 84.2%, and 84.6% top-1 accuracy on ImageNet-1K with 28.3M, 49.7M, and 87.9M parameters, respectively. When we further scale up DaViT with 1.5B weakly supervised image and text pairs, DaViT-Gaint reaches 90.4% top-1 accuracy on ImageNet-1K. Code is available at https://github.com/dingmyu/davit.

Subfields: Computer Vision and Pattern Recognition, Neurology, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Xiaogang Wang
  4. Jianfeng Gao
  5. Ming-Hsuan Yang
  6. Yu Qiao
  7. Trevor Darrell
  8. Cordelia Schmid

In Neurology

  1. Jianwei Yang
  2. Yu Qiao
  3. Yong Jae Lee
  4. Lu Yuan
  5. Lewei Lu
  6. Qixiang Ye
  7. Hongpeng Liao
  8. Jianfeng Gao

In Model Architectures

  1. Jianwei Yang
  2. Jianfeng Gao
  3. Lu Yuan
  4. Bin Xiao
  5. Xiyang Dai
  6. Xiaogang Wang
  7. Ce Liu
  8. Hongpeng Liao

Citations in the corpus