mlsanityData to 7 Oct 2026

Learned Queries for Efficient Local Attention

arXiv 2112.11435 ↗First posted 21 Dec 2021cs.CVcited by 27

Not on the map. Why?

Abstract (arXiv)

Vision Transformers (ViT) serve as powerful vision models. Unlike convolutional neural networks, which dominated vision research in previous years, vision transformers enjoy the ability to capture long-range dependencies in the data. Nonetheless, an integral part of any transformer architecture, the self-attention mechanism, suffers from high latency and inefficient memory utilization, making it less suitable for high-resolution input images. To alleviate these shortcomings, hierarchical vision models locally employ self-attention on non-interleaving windows. This relaxation reduces the complexity to be linear in the input size; however, it limits the cross-window interaction, hurting the model performance. In this paper, we propose a new shift-invariant local attention layer, called query and attend (QnA), that aggregates the input locally in an overlapping manner, much like convolutions. The key idea behind QnA is to introduce learned queries, which allow fast and efficient implementation. We verify the effectiveness of our layer by incorporating it into a hierarchical vision transformer model. We show improvements in speed and memory complexity while achieving comparable accuracy with state-of-the-art models. Finally, our layer scales especially well with window size, requiring up-to x10 less memory while being up-to x5 faster than existing methods. The code is publicly available at urlhttps://github.com/moabarar/qna.

Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 76 of its 91 references that are in the map. First posted on arXiv 21 Dec 2021.

Builds on

76 of 91 references.

References · 76

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  5. 2020Language Models are Few-Shot Learnerscited by 32,199
  6. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  7. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  8. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  9. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  10. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  11. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  12. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
38 more
  1. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  2. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  3. 2020End-to-End Object Detection with Transformerscited by 7,384
  4. 2016Densely Connected Convolutional Networkscited by 6,691
  5. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  6. 2016Layer Normalizationcited by 5,579
  7. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  8. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  9. 2017Squeeze-and-Excitation Networkscited by 4,763
  10. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  11. 2014Going Deeper with Convolutionscited by 4,231
  12. 2014Deep Learning Face Attributes in the Wildcited by 3,679
  13. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  14. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  15. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  16. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  17. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
  18. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  19. 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,187
  20. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  21. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  22. 2018Dual Attention Network for Scene Segmentationcited by 1,001
  23. 2016Deep Networks with Stochastic Depthcited by 973
  24. 2020Designing Network Design Spacescited by 954
  25. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  26. 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
  27. 2020On Layer Normalization in the Transformer Architecturecited by 906
  28. 2021Multiscale Vision Transformerscited by 896
  29. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  30. 2018Image Transformercited by 770
  31. 2021Going deeper with Image Transformerscited by 759
  32. 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
  33. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  34. 2021Transformer in Transformercited by 632
  35. 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
  36. 2013Network In Networkcited by 600
  37. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
  38. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565

50 most cited of 76 All 76 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 12; 2024: 5; 2025: 6; 2026: 1.

27 papers.

Sort:

By area:

  1. 2023InterDiff: Generating 3D Human-Object Interactions with Physics-Informed Diffusioncited by 181
  2. 2025Fast Video Generation with Sliding Tile Attentioncited by 123
  3. 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
  4. 2023Single Motion Diffusioncited by 65
  5. 2023TransNeXt: Robust Foveal Visual Perception for Vision Transformerscited by 61
  6. 2023Slide-Transformer: Hierarchical Vision Transformer with Local Self-Attentioncited by 38
  7. 2023Vision Transformers with Mixed-Resolution Tokenizationcited by 35
  8. 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
  9. 2024Multi-criteria Token Fusion with One-step-ahead Attention for Efficient Vision Transformerscited by 26
  10. 2023Lightweight Vision Transformer with Bidirectional Interactioncited by 25
  11. 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
  12. 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformercited by 15
15 more
  1. 2022Iterative Patch Selection for High-Resolution Image Recognitioncited by 13
  2. 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
  3. 2025MotionDreamer: One-to-Many Motion Synthesis with Localized Generative Masked Transformercited by 9
  4. 2024Vision Transformer with Sparse Scan Priorcited by 6
  5. 2023Rethinking Local Perception in Lightweight Vision Transformercited by 5
  6. 2023DESTINE: Dynamic Goal Queries with Temporal Transductive Alignment for Trajectory Predictioncited by 5
  7. 2024A Manifold Representation of the Key in Vision Transformerscited by 2
  8. 2024Towards Practical Single-shot Motion Synthesiscited by 1
  9. 2025A Retrospective Systematic Study on Hierarchical Sparse Query Transformer-assisted Ultrasound Screening for Early Hepatocellular Carcinomacited by 1
  10. 2025Controllable Single-shot Animation Blending with Temporal Conditioningcited by 1
  11. 2022Token Transformer: Can class token help window-based transformer build better long-range interactions?cited by 0
  12. 2023Recent Advances of Local Mechanisms in Computer Vision: A Survey and Outlook of Recent Workcited by 0
  13. 2025Block-based Symmetric Pruning and Fusion for Efficient Vision Transformerscited by 0
  14. 2025Through the PRISm: Importance-Aware Scene Graphs for Image Retrievalcited by 0
  15. 2026Advancing Vision Transformer with Enhanced Spatial Priorscited by 0