Abstract
The recently proposed Visual image Transformers (ViT) with pure attention have achieved promising performance on image recognition tasks, such as image classification. However, the routine of the current ViT model is to maintain a full-length patch sequence during inference, which is redundant and lacks hierarchical representation. To this end, we propose a Hierarchical Visual Transformer (HVT) which progressively pools visual tokens to shrink the sequence length and hence reduces the computational cost, analogous to the feature maps downsampling in Convolutional Neural Networks (CNNs). It brings a great benefit that we can increase the model capacity by scaling dimensions of depth/width/resolution/patch size without introducing extra computational complexity due to the reduced sequence length. Moreover, we empirically find that the average pooled visual tokens contain more discriminative information than the single class token. To demonstrate the improved scalability of our HVT, we conduct extensive experiments on the image classification task. With comparable FLOPs, our HVT outperforms the competitive baselines on ImageNet and CIFAR-100 datasets. Code is available at https://github.com/MonashAI/HVT.
Original language | English |
---|---|
Title of host publication | Proceedings - 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021 |
Editors | Dima Damen, Tal Hassner, Chris Pal, Yoichi Sato |
Place of Publication | Piscataway NJ USA |
Publisher | IEEE, Institute of Electrical and Electronics Engineers |
Pages | 367-376 |
Number of pages | 10 |
ISBN (Electronic) | 9781665428125 |
ISBN (Print) | 9781665428132 |
DOIs | |
Publication status | Published - 2021 |
Event | IEEE International Conference on Computer Vision 2021 - Online, United States of America Duration: 11 Oct 2021 → 17 Oct 2021 https://iccv2021.thecvf.com/home (Website) https://ieeexplore.ieee.org/xpl/conhome/9709627/proceeding (Proceedings) |
Publication series
Name | Proceedings of the IEEE International Conference on Computer Vision |
---|---|
Publisher | IEEE, Institute of Electrical and Electronics Engineers |
ISSN (Print) | 1550-5499 |
ISSN (Electronic) | 2380-7504 |
Conference
Conference | IEEE International Conference on Computer Vision 2021 |
---|---|
Abbreviated title | ICCV 2021 |
Country/Territory | United States of America |
City | Online |
Period | 11/10/21 → 17/10/21 |
Internet address |
|