mlsanityData to 13 Oct 2026

VSA: Learning Varied-Size Window Attention in Vision Transformers

arXiv 2204.08446 ↗First posted 18 Apr 2022cs.CVcited by 43

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,950
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,550
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,111
  5. 2017Mask R-CNNcited by 7,266
  6. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,170
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,574
  8. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,435
  9. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,417
  10. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,882
  11. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,961
  12. 2017Deformable Convolutional Networkscited by 1,486
36 more
  1. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,383
  2. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
  3. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,268
  4. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,219
  5. 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,129
  6. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
  7. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 750
  8. 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
  9. 2018Deformable ConvNets v2: More Deformable, Better Resultscited by 669
  10. 2021Transformer in Transformercited by 633
  11. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
  12. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  13. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
  14. 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 517
  15. 2019Cascade R-CNN: High Quality Object Detection and Instance Segmentationcited by 428
  16. 2021Conditional Positional Encodings for Vision Transformerscited by 406
  17. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
  18. 2021XCiT: Cross-Covariance Image Transformerscited by 337
  19. 2020Are we done with ImageNet?cited by 331
  20. 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
  21. 2022Vision Transformer with Deformable Attentioncited by 294
  22. 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
  23. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  24. 2021CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 139
  25. 2021RegionViT: Regional-to-Local Attention for Vision Transformerscited by 127
  26. 2022ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and Beyondcited by 117
  27. 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
  28. 2019Dynamic Instance Normalization for Arbitrary Style Transfercited by 83
  29. 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
  30. 2021KVT: k-NN Attention for Boosting Vision Transformerscited by 65
  31. 2021MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokenscited by 46
  32. 2021DPT: Deformable Patch-based Transformer for Visual Recognitioncited by 43
  33. 2019Online Hyper-parameter Learning for Auto-Augmentation Strategycited by 38
  34. 2021ConTNet: Why not use convolution and transformer at the same time?cited by 38
  35. 2021Pale Transformer: A General Vision Transformer Backbone with Pale-Shaped Attentioncited by 36
  36. 2021Dynamic Token Normalization Improves Vision Transformerscited by 10

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2022: 14; 2023: 14; 2024: 7; 2025: 5; 2026: 3.

43 papers.

Sort:

By area:

  1. 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 452
  2. 2022Advancing Plain Vision Transformer Towards Remote Sensing Foundation Modelcited by 149
  3. 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
  4. 2022Fast Vision Transformers with HiLo Attentioncited by 78
  5. 2022DeepSolo: Let Transformer Decoder with Explicit Points Solo for Text Spottingcited by 74
  6. 2024HyperSIGMA: Hyperspectral Intelligence Comprehension Foundation Modelcited by 72
  7. 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
  8. 2024MTP: Advancing Remote Sensing Foundation Model via Multi-Task Pretrainingcited by 66
  9. 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
  10. 2022DPText-DETR: Towards Better Scene Text Detection with Dynamic Points in Transformercited by 50
  11. 2022N-Gram in Swin Transformers for Efficient Lightweight Image Super-Resolutioncited by 46
  12. 2023Vision Transformer with Quadrangle Attentioncited by 46
31 more
  1. 2022Multi-Task Learning with Multi-Query Transformer for Dense Predictioncited by 34
  2. 2022Learning Graph Neural Networks for Image Style Transfercited by 29
  3. 2022GLT-T: Global-Local Transformer Voting for 3D Single Object Tracking in Point Cloudscited by 23
  4. 2023ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolutioncited by 23
  5. 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
  6. 2023OSP2B: One-Stage Point-to-Box Network for 3D Siamese Trackingcited by 16
  7. 20221st Workshop on Maritime Computer Vision (MaCVi) 2023: Challenge Resultscited by 14
  8. 2023Minimalist and High-Quality Panoramic Imaging with PSF-aware Transformerscited by 13
  9. 2023DCN-T: Dual Context Network with Transformer for Hyperspectral Image Classificationcited by 12
  10. 2023Spatial Transform Decoupling for Oriented Object Detectioncited by 12
  11. 2024HIRI-ViT: Scaling Vision Transformer with High Resolution Inputscited by 12
  12. 2024Locality-aware Cross-modal Correspondence Learning for Dense Audio-Visual Events Localizationcited by 10
  13. 2024LeMeViT: Efficient Vision Transformer with Learnable Meta Tokens for Remote Sensing Image Interpretationcited by 9
  14. 2026CoPE-VideoLM: Leveraging Codec Primitives For Efficient Video Language Modelingcited by 9
  15. 2022DQnet: Cross-Model Detail Querying for Camouflaged Object Detectioncited by 6
  16. 2023Reciprocal Attention Mixing Transformer for Lightweight Image Restorationcited by 6
  17. 2022Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detectioncited by 5
  18. 2023Factorization Vision Transformer: Modeling Long Range Dependency with Local Window Costcited by 5
  19. 2024Enhancing Efficiency in Vision Transformer Networks: Design Techniques and Insightscited by 4
  20. 2025A Genealogy of Foundation Models in Remote Sensingcited by 4
  21. 2023Cross-level Attention with Overlapped Windows for Camouflaged Object Detectioncited by 2
  22. 2025QLIP: A Dynamic Quadtree Vision Prior Enhances MLLM Performance Without Retrainingcited by 2
  23. 2026Don't let the information slip awaycited by 2
  24. 2022Rethinking Hierarchies in Pre-trained Plain Vision Transformercited by 1
  25. 2023RFR-WWANet: Weighted Window Attention-Based Recovery Feature Resolution Network for Unsupervised Image Registrationcited by 1
  26. 2023OAFuser: Towards Omni-Aperture Fusion for Light Field Semantic Segmentationcited by 1
  27. 2024Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numberscited by 1
  28. 2025Dynamic Double Space Towercited by 0
  29. 2025Two-flow Feedback Multi-scale Progressive Generative Adversarial Networkcited by 0
  30. 2025DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streamscited by 0
  31. 2026R'enyi Entropy: A New Token Pruning Metric for Vision Transformerscited by 0