Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

RegionViT: Regional-to-Local Attention for Vision Transformers

About

Vision transformer (ViT) has recently shown its strong capability in achieving comparable results to convolutional neural networks (CNNs) on image classification. However, vanilla ViT simply inherits the same architecture from the natural language processing directly, which is often not optimized for vision applications. Motivated by this, in this paper, we propose a new architecture that adopts the pyramid structure and employ a novel regional-to-local attention rather than global self-attention in vision transformers. More specifically, our model first generates regional tokens and local tokens from an image with different patch sizes, where each regional token is associated with a set of local tokens based on the spatial location. The regional-to-local attention includes two steps: first, the regional self-attention extract global information among all regional tokens and then the local self-attention exchanges the information among one regional token and the associated local tokens via self-attention. Therefore, even though local self-attention confines the scope in a local region but it can still receive global information. Extensive experiments on four vision tasks, including image classification, object and keypoint detection, semantics segmentation and action recognition, show that our approach outperforms or is on par with state-of-the-art ViT variants including many concurrent works. Our source codes and models are available at https://github.com/ibm/regionvit.

Chun-Fu Chen, Rameswar Panda, Quanfu Fan• 2021

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU47.5
2731
Object DetectionCOCO 2017 (val)
AP45.4
2454
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy83.8
1866
Image ClassificationImageNet (val)
Top-1 Acc83.3
1206
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)82.5
1155
Instance SegmentationCOCO 2017 (val)--
1144
Image ClassificationImageNet-1k (val)
Top-1 Accuracy82.6
840
Object DetectionCOCO (val)
mAP46.3
613
Instance SegmentationCOCO (val)
APmk42.4
472
Object DetectionCOCO 2017
AP (Box)44.6
279
Showing 10 of 15 rows

Other info

Follow for update