[Paper Review] Scalable Visual Transformers with Hierarchical Pooling
This paper proposes Hierarchical Visual Transformers (HVT), a scalable vision transformer architecture that progressively pools visual tokens to reduce sequence length and computational cost, mimicking CNNs' hierarchical feature learning. By maintaining high model capacity without increasing FLOPs, HVT achieves state-of-the-art performance on ImageNet and CIFAR-100 with comparable FLOPs to baselines.
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.
Motivation & Objective
- To address the inefficiency of standard ViT models that maintain full-length patch sequences during inference, leading to redundant computation.
- To enable scalable model growth in depth, width, resolution, and patch size without increasing computational complexity.
- To improve feature representation by replacing or augmenting the single class token with more discriminative pooled visual tokens.
- To demonstrate that hierarchical pooling in ViT can achieve better performance with comparable FLOPs compared to existing methods.
Proposed method
- Introduces hierarchical pooling layers that progressively reduce the sequence length of visual tokens, analogous to downsampling in CNNs.
- Applies average pooling across spatial dimensions to compress the sequence, reducing computational cost while preserving discriminative features.
- Replaces or supplements the class token with pooled visual tokens that empirically contain more discriminative information than the single class token.
- Designs a hierarchical architecture where multiple stages of pooling are applied at different resolutions to build multi-scale representations.
- Maintains high model capacity by scaling depth, width, and resolution, while the reduced sequence length prevents FLOP growth.
Experimental results
Research questions
- RQ1Can hierarchical pooling in vision transformers reduce sequence length and computational cost without sacrificing performance?
- RQ2Does replacing or augmenting the class token with pooled visual tokens improve feature discriminability?
- RQ3Can model capacity be scaled across depth, width, resolution, and patch size without increasing FLOPs?
- RQ4How does the proposed HVT compare to SOTA ViT and CNN baselines in terms of accuracy and FLOPs on standard benchmarks?
Key findings
- With comparable FLOPs, HVT outperforms competitive baselines on the ImageNet dataset, demonstrating improved scalability and accuracy.
- HVT achieves state-of-the-art performance on CIFAR-100 with comparable FLOPs, confirming its effectiveness on smaller-scale datasets.
- Empirically, average pooled visual tokens contain more discriminative information than the single class token, supporting the design choice.
- The hierarchical pooling mechanism enables model scaling across dimensions without increasing computational cost, due to reduced sequence length.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.