VSA: Learning Varied-Size Window Attention in Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Attention within windows has been widely explored in vision transformers to balance the performance, computation complexity, and memory footprint. However, current models adopt a hand-crafted fixed-size window design, which restricts their capacity of modeling long-term dependencies and adapting to objects of different sizes. To address this drawback, we propose Varied-Size Window Attention (VSA) to learn adaptive window configurations from data. Specifically, based on the tokens within each default window, VSA employs a window regression module to predict the size and location of the target window, i.e., the attention area where the key and value tokens are sampled. By adopting VSA independently for each attention head, it can model long-term dependencies, capture rich context from diverse windows, and promote information exchange among overlapped windows. VSA is an easy-to-implement module that can replace the window attention in state-of-the-art representative models with minor modifications and negligible extra computational cost while improving their performance by a large margin, e.g., 1.1% for Swin-T on ImageNet classification. In addition, the performance gain increases when using larger images for training and test. Experimental results on more downstream tasks, including object detection, instance segmentation, and semantic segmentation, further demonstrate the superiority of VSA over the vanilla window attention in dealing with objects of different sizes. The code will be released https://github.com/ViTAE-Transformer/ViTAE-VSA.
Key facts. Cited by 43 papers in the map (data through 13 Oct 2026). Builds on 48 of its 56 references that are in the map. First posted on arXiv 18 Apr 2022.
Builds on
48 of 56 references.
References · 48
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2014Microsoft COCO: Common Objects in Contextcited by 17,550
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,111
- 2017Mask R-CNNcited by 7,266
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,170
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,574
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,435
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,417
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,882
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,961
- 2017Deformable Convolutional Networkscited by 1,486
36 more
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,383
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,268
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,219
- 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,129
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 750
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
- 2018Deformable ConvNets v2: More Deformable, Better Resultscited by 669
- 2021Transformer in Transformercited by 633
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 517
- 2019Cascade R-CNN: High Quality Object Detection and Instance Segmentationcited by 428
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021XCiT: Cross-Covariance Image Transformerscited by 337
- 2020Are we done with ImageNet?cited by 331
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2022Vision Transformer with Deformable Attentioncited by 294
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2021CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 139
- 2021RegionViT: Regional-to-Local Attention for Vision Transformerscited by 127
- 2022ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and Beyondcited by 117
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2019Dynamic Instance Normalization for Arbitrary Style Transfercited by 83
- 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
- 2021KVT: k-NN Attention for Boosting Vision Transformerscited by 65
- 2021MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokenscited by 46
- 2021DPT: Deformable Patch-based Transformer for Visual Recognitioncited by 43
- 2019Online Hyper-parameter Learning for Auto-Augmentation Strategycited by 38
- 2021ConTNet: Why not use convolution and transformer at the same time?cited by 38
- 2021Pale Transformer: A General Vision Transformer Backbone with Pale-Shaped Attentioncited by 36
- 2021Dynamic Token Normalization Improves Vision Transformerscited by 10
Built on by
Citing papers per year: 2022: 14; 2023: 14; 2024: 7; 2025: 5; 2026: 3.
43 papers.
Sort:
By area:
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 452
- 2022Advancing Plain Vision Transformer Towards Remote Sensing Foundation Modelcited by 149
- 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
- 2022Fast Vision Transformers with HiLo Attentioncited by 78
- 2022DeepSolo: Let Transformer Decoder with Explicit Points Solo for Text Spottingcited by 74
- 2024HyperSIGMA: Hyperspectral Intelligence Comprehension Foundation Modelcited by 72
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2024MTP: Advancing Remote Sensing Foundation Model via Multi-Task Pretrainingcited by 66
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
- 2022DPText-DETR: Towards Better Scene Text Detection with Dynamic Points in Transformercited by 50
- 2022N-Gram in Swin Transformers for Efficient Lightweight Image Super-Resolutioncited by 46
- 2023Vision Transformer with Quadrangle Attentioncited by 46
31 more
- 2022Multi-Task Learning with Multi-Query Transformer for Dense Predictioncited by 34
- 2022Learning Graph Neural Networks for Image Style Transfercited by 29
- 2022GLT-T: Global-Local Transformer Voting for 3D Single Object Tracking in Point Cloudscited by 23
- 2023ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolutioncited by 23
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
- 2023OSP2B: One-Stage Point-to-Box Network for 3D Siamese Trackingcited by 16
- 20221st Workshop on Maritime Computer Vision (MaCVi) 2023: Challenge Resultscited by 14
- 2023Minimalist and High-Quality Panoramic Imaging with PSF-aware Transformerscited by 13
- 2023DCN-T: Dual Context Network with Transformer for Hyperspectral Image Classificationcited by 12
- 2023Spatial Transform Decoupling for Oriented Object Detectioncited by 12
- 2024HIRI-ViT: Scaling Vision Transformer with High Resolution Inputscited by 12
- 2024Locality-aware Cross-modal Correspondence Learning for Dense Audio-Visual Events Localizationcited by 10
- 2024LeMeViT: Efficient Vision Transformer with Learnable Meta Tokens for Remote Sensing Image Interpretationcited by 9
- 2026CoPE-VideoLM: Leveraging Codec Primitives For Efficient Video Language Modelingcited by 9
- 2022DQnet: Cross-Model Detail Querying for Camouflaged Object Detectioncited by 6
- 2023Reciprocal Attention Mixing Transformer for Lightweight Image Restorationcited by 6
- 2022Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detectioncited by 5
- 2023Factorization Vision Transformer: Modeling Long Range Dependency with Local Window Costcited by 5
- 2024Enhancing Efficiency in Vision Transformer Networks: Design Techniques and Insightscited by 4
- 2025A Genealogy of Foundation Models in Remote Sensingcited by 4
- 2023Cross-level Attention with Overlapped Windows for Camouflaged Object Detectioncited by 2
- 2025QLIP: A Dynamic Quadtree Vision Prior Enhances MLLM Performance Without Retrainingcited by 2
- 2026Don't let the information slip awaycited by 2
- 2022Rethinking Hierarchies in Pre-trained Plain Vision Transformercited by 1
- 2023RFR-WWANet: Weighted Window Attention-Based Recovery Feature Resolution Network for Unsupervised Image Registrationcited by 1
- 2023OAFuser: Towards Omni-Aperture Fusion for Light Field Semantic Segmentationcited by 1
- 2024Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numberscited by 1
- 2025Dynamic Double Space Towercited by 0
- 2025Two-flow Feedback Multi-scale Progressive Generative Adversarial Networkcited by 0
- 2025DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streamscited by 0
- 2026R'enyi Entropy: A New Token Pruning Metric for Vision Transformerscited by 0
- 2026R'enyi Entropy: A New Token Pruning Metric for Vision Transformers29 Mar 2026
- 2026Don't let the information slip away26 Feb 2026
- 2026CoPE-VideoLM: Leveraging Codec Primitives For Efficient Video Language Modeling13 Feb 2026
- 2025DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streams21 Nov 2025
- 2025Two-flow Feedback Multi-scale Progressive Generative Adversarial Network22 Aug 2025
- 2025Dynamic Double Space Tower13 Jun 2025
- 2025QLIP: A Dynamic Quadtree Vision Prior Enhances MLLM Performance Without Retraining29 May 2025
- 2025A Genealogy of Foundation Models in Remote Sensing24 Apr 2025
- 2024Locality-aware Cross-modal Correspondence Learning for Dense Audio-Visual Events Localization12 Sep 2024
- 2024HyperSIGMA: Hyperspectral Intelligence Comprehension Foundation Model17 Jun 2024
- 2024LeMeViT: Efficient Vision Transformer with Learnable Meta Tokens for Remote Sensing Image Interpretation16 May 2024
- 2024Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numbers6 May 2024
31 more
- 2024Enhancing Efficiency in Vision Transformer Networks: Design Techniques and Insights28 Mar 2024
- 2024MTP: Advancing Remote Sensing Foundation Model via Multi-Task Pretraining20 Mar 2024
- 2024HIRI-ViT: Scaling Vision Transformer with High Resolution Inputs18 Mar 2024
- 2023Factorization Vision Transformer: Modeling Long Range Dependency with Local Window Cost14 Dec 2023
- 2023Cross-level Attention with Overlapped Windows for Camouflaged Object Detection28 Nov 2023
- 2023RMT: Retentive Networks Meet Vision Transformers20 Sep 2023
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attention4 Sep 2023
- 2023Spatial Transform Decoupling for Oriented Object Detection21 Aug 2023
- 2023OAFuser: Towards Omni-Aperture Fusion for Light Field Semantic Segmentation28 Jul 2023
- 2023ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolution26 Jul 2023
- 2023Minimalist and High-Quality Panoramic Imaging with PSF-aware Transformers22 Jun 2023
- 2023Reciprocal Attention Mixing Transformer for Lightweight Image Restoration19 May 2023
- 2023RFR-WWANet: Weighted Window Attention-Based Recovery Feature Resolution Network for Unsupervised Image Registration7 May 2023
- 2023OSP2B: One-Stage Point-to-Box Network for 3D Siamese Tracking23 Apr 2023
- 2023DCN-T: Dual Context Network with Transformer for Hyperspectral Image Classification19 Apr 2023
- 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understanding14 Apr 2023
- 2023Vision Transformer with Quadrangle Attention27 Mar 2023
- 2022DQnet: Cross-Model Detail Querying for Camouflaged Object Detection16 Dec 2022
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimation7 Dec 2022
- 20221st Workshop on Maritime Computer Vision (MaCVi) 2023: Challenge Results24 Nov 2022
- 2022N-Gram in Swin Transformers for Efficient Lightweight Image Super-Resolution21 Nov 2022
- 2022GLT-T: Global-Local Transformer Voting for 3D Single Object Tracking in Point Clouds20 Nov 2022
- 2022DeepSolo: Let Transformer Decoder with Explicit Points Solo for Text Spotting19 Nov 2022
- 2022Rethinking Hierarchies in Pre-trained Plain Vision Transformer3 Nov 2022
- 2022Advancing Plain Vision Transformer Towards Remote Sensing Foundation Model8 Aug 2022
- 2022Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detection24 Jul 2022
- 2022Learning Graph Neural Networks for Image Style Transfer24 Jul 2022
- 2022DPText-DETR: Towards Better Scene Text Detection with Dynamic Points in Transformer10 Jul 2022
- 2022Multi-Task Learning with Multi-Query Transformer for Dense Prediction28 May 2022
- 2022Fast Vision Transformers with HiLo Attention26 May 2022
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimation26 Apr 2022
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 452
- 2022Advancing Plain Vision Transformer Towards Remote Sensing Foundation Modelcited by 149
- 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
- 2022Fast Vision Transformers with HiLo Attentioncited by 78
- 2022DeepSolo: Let Transformer Decoder with Explicit Points Solo for Text Spottingcited by 74
- 2024HyperSIGMA: Hyperspectral Intelligence Comprehension Foundation Modelcited by 72
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2024MTP: Advancing Remote Sensing Foundation Model via Multi-Task Pretrainingcited by 66
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
- 2022DPText-DETR: Towards Better Scene Text Detection with Dynamic Points in Transformercited by 50
- 2022N-Gram in Swin Transformers for Efficient Lightweight Image Super-Resolutioncited by 46
- 2023Vision Transformer with Quadrangle Attentioncited by 46
12 most cited of 40 All 40 (JSON)
- 2026Don't let the information slip away26 Feb 2026
- 2026CoPE-VideoLM: Leveraging Codec Primitives For Efficient Video Language Modeling13 Feb 2026
- 2025DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streams21 Nov 2025
- 2025Dynamic Double Space Tower13 Jun 2025
- 2025A Genealogy of Foundation Models in Remote Sensing24 Apr 2025
- 2024Locality-aware Cross-modal Correspondence Learning for Dense Audio-Visual Events Localization12 Sep 2024
- 2024HyperSIGMA: Hyperspectral Intelligence Comprehension Foundation Model17 Jun 2024
- 2024LeMeViT: Efficient Vision Transformer with Learnable Meta Tokens for Remote Sensing Image Interpretation16 May 2024
- 2024Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numbers6 May 2024
- 2024Enhancing Efficiency in Vision Transformer Networks: Design Techniques and Insights28 Mar 2024
- 2024MTP: Advancing Remote Sensing Foundation Model via Multi-Task Pretraining20 Mar 2024
- 2024HIRI-ViT: Scaling Vision Transformer with High Resolution Inputs18 Mar 2024
12 newest of 40 All 40 (JSON)