Global Context Vision Transformers
About
We propose global context vision transformer (GC ViT), a novel architecture that enhances parameter and compute utilization for computer vision. Our method leverages global context self-attention modules, joint with standard local self-attention, to effectively and efficiently model both long and short-range spatial interactions, without the need for expensive operations such as computing attention masks or shifting local windows. In addition, we address the lack of the inductive bias in ViTs, and propose to leverage a modified fused inverted residual blocks in our architecture. Our proposed GC ViT achieves state-of-the-art results across image classification, object detection and semantic segmentation tasks. On ImageNet-1K dataset for classification, the variants of GC ViT with 51M, 90M and 201M parameters achieve 84.3%, 85.0% and 85.7% Top-1 accuracy, respectively, at 224 image resolution and without any pre-training, hence surpassing comparably-sized prior art such as CNN-based ConvNeXt and ViT-based MaxViT and Swin Transformer by a large margin. Pre-trained GC ViT backbones in downstream tasks of object detection, instance segmentation, and semantic segmentation using MS COCO and ADE20K datasets outperform prior work consistently. Specifically, GC ViT with a 4-scale DINO detection head achieves a box AP of 58.3 on MS COCO dataset.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Semantic segmentation | ADE20K (val) | mIoU49.2 | 2731 | |
| Object Detection | COCO 2017 (val) | -- | 2454 | |
| Instance Segmentation | COCO 2017 (val) | APm0.454 | 1144 | |
| Image Classification | ImageNet 1k (test) | Top-1 Accuracy85.7 | 798 | |
| Image Classification | ImageNet V2 (test) | -- | 181 | |
| Object Detection | MS-COCO | AP58.3 | 77 | |
| Aerial Image Classification | AIDER v2 (test) | F1 Score0.932 | 41 | |
| Image Classification | ImageNet-1K 1 (val) | Top-1 Acc82 | 37 | |
| Instance Segmentation | MS COCO 2014 2017 (val) | AP Mask @ IoU=0.7549.8 | 25 | |
| Object Detection | MS COCO 2014 2017 (val) | AP (Box)52.9 | 16 |