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

Rethinking Spatial Dimensions of Vision Transformers

About

Vision Transformer (ViT) extends the application range of transformers from language processing to computer vision tasks as being an alternative architecture against the existing convolutional neural networks (CNN). Since the transformer-based architecture has been innovative for computer vision modeling, the design convention towards an effective architecture has been less studied yet. From the successful design principles of CNN, we investigate the role of spatial dimension conversion and its effectiveness on transformer-based architecture. We particularly attend to the dimension reduction principle of CNNs; as the depth increases, a conventional CNN increases channel dimension and decreases spatial dimensions. We empirically show that such a spatial dimension reduction is beneficial to a transformer architecture as well, and propose a novel Pooling-based Vision Transformer (PiT) upon the original ViT model. We show that PiT achieves the improved model capability and generalization performance against ViT. Throughout the extensive experiments, we further show PiT outperforms the baseline on several tasks such as image classification, object detection, and robustness evaluation. Source codes and ImageNet models are available at https://github.com/naver-ai/pit

Byeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun, Junsuk Choe, Seong Joon Oh• 2021

Related benchmarks

TaskDatasetResultRank
Object DetectionCOCO 2017 (val)
AP39.4
2454
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy81.9
1866
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)82
1155
Image ClassificationImageNet-1k (val)
Top-1 Accuracy79.9
840
Image ClassificationImageNet 1k (test)
Top-1 Accuracy82.4
798
Image ClassificationImageNet (val)
Top-1 Accuracy82
354
Semantic segmentationCityscapes (val)
mIoU76
287
Image ClassificationImageNet-1k (val)
Top-1 Acc72.4
188
Image ClassificationImageNet-A (test)
Top-1 Acc33.9
154
Image ClassificationImageNet-1K 1 (val)
Top-1 Accuracy80.9
119
Showing 10 of 23 rows

Other info

Code

Follow for update