Rethinking Spatial Dimensions of Vision Transformers
Authors:
Top Cited Papers
- 1 October 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 11916-11925
Abstract
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.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Searching for MobileNetV32019
- Bag of Tricks for Image Classification with Convolutional Neural Networks2019
- Analyzing the Structure of Attention in a Transformer Language Model2019
- Fine-Tuning CNN Image Retrieval with No Human AnnotationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- MobileNetV2: Inverted Residuals and Linear Bottlenecks2018
- Non-local Neural Networks2018
- Deep Pyramidal Residual Networks2017
- Deep Residual Learning for Image Recognition2016
- Going deeper with convolutions2015
- ImageNet: A large-scale hierarchical image database2009