Share your thoughts, 1 month free Claude Pro on usSee more
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
2643
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy81.9
1952
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)82
1163
Image ClassificationImageNet 1k (test)
Top-1 Accuracy82.4
848
Image ClassificationImageNet-1k (val)
Top-1 Accuracy79.9
844
Image ClassificationImageNet (val)
Top-1 Accuracy82
354
Semantic segmentationCityscapes (val)
mIoU76
297
Image ClassificationImageNet-1k (val)
Top-1 Acc72.4
188
Image ClassificationImageNet-A (test)
Top-1 Acc33.9
175
Image ClassificationImageNet-1K 1 (val)
Top-1 Accuracy80.9
119
Showing 10 of 24 rows

Other info

Code

Follow for update