What Makes for Hierarchical Vision Transformer?
Not on the map. Why?
Abstract (arXiv)
Recent studies indicate that hierarchical Vision Transformer with a macro architecture of interleaved non-overlapped window-based self-attention & shifted-window operation is able to achieve state-of-the-art performance in various visual recognition tasks, and challenges the ubiquitous convolutional neural networks (CNNs) using densely slid kernels. Most follow-up works attempt to replace the shifted-window operation with other kinds of cross-window communication paradigms, while treating self-attention as the de-facto standard for window-based information aggregation. In this manuscript, we question whether self-attention is the only choice for hierarchical Vision Transformer to attain strong performance, and the effects of different kinds of cross-window communication. To this end, we replace self-attention layers with embarrassingly simple linear mapping layers, and the resulting proof-of-concept architecture termed as LinMapper can achieve very strong performance in ImageNet-1k image recognition. Moreover, we find that LinMapper is able to better leverage the pre-trained representations from image recognition and demonstrates excellent transfer learning properties on downstream dense prediction tasks such as object detection and instance segmentation. We also experiment with other alternatives to self-attention for content aggregation inside each non-overlapped window under different cross-window communication approaches, which all give similar competitive results. Our study reveals that the macro architecture of Swin model families, other than specific aggregation layers or specific means of cross-window communication, may be more responsible for its strong performance and is the real challenger to the ubiquitous CNN's dense sliding window paradigm. Code and models will be publicly available to facilitate future research.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 39 of its 51 references that are in the map. First posted on arXiv 5 Jul 2021.
Builds on
39 of 51 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2017Mask R-CNNcited by 7,259
- 2016Layer Normalizationcited by 5,579
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
27 more
- 2016Wide Residual Networkscited by 3,057
- 2017Non-local Neural Networkscited by 2,290
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Multiscale Vision Transformerscited by 896
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
- 2021Transformer in Transformercited by 632
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
- 2021Pay Attention to MLPscited by 367
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
- 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
- 2021Global Filter Networks for Image Classificationcited by 257
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2021VOLO: Vision Outlooker for Visual Recognitioncited by 164
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2021Beyond Self-attention: External Attention using Two Linear Layers for Visual Taskscited by 109
- 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
- 2021Do You Even Need Attention? A Stack of Feed-Forward Layers Does Surprisingly Well on ImageNetcited by 61
- 2021On the Connection between Local Attention and Dynamic Depth-wise Convolutioncited by 61
- 2021MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokenscited by 46
- 2021Container: Context Aggregation Networkcited by 37
- 2021Multi-head or Single-head? An Empirical Comparison for Transformer Trainingcited by 15
Built on by
Citing papers per year: 2021: 3; 2022: 0; 2023: 0; 2024: 1.
4 papers.
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2021Hire-MLP: Vision MLP via Hierarchical Rearrangementcited by 66
- 2021ELSA: Enhanced Local Self-Attention for Vision Transformercited by 18
- 2024Demystify Mamba in Vision: A Linear Attention Perspective26 May 2024
- 2021ELSA: Enhanced Local Self-Attention for Vision Transformer23 Dec 2021
- 2021Hire-MLP: Vision MLP via Hierarchical Rearrangement30 Aug 2021
- 2021AS-MLP: An Axial Shifted MLP Architecture for Vision18 Jul 2021