mlsanityData to 7 Oct 2026

Focal Self-attention for Local-Global Interactions in Vision Transformers

arXiv 2107.00641 ↗First posted 1 Jul 2021cs.CV cs.AI cs.LGcited by 286

Not on the map. Why?

Abstract (arXiv)

Recently, Vision Transformer and its variants have shown great promise on various computer vision tasks. The ability of capturing short- and long-range visual dependencies through self-attention is arguably the main source for the success. But it also brings challenges due to quadratic computational overhead, especially for the high-resolution vision tasks (e.g., object detection). In this paper, we present focal self-attention, a new mechanism that incorporates both fine-grained local and coarse-grained global interactions. Using this new mechanism, each token attends the closest surrounding tokens at fine granularity but the tokens far away at coarse granularity, and thus can capture both short- and long-range visual dependencies efficiently and effectively. With focal self-attention, we propose a new variant of Vision Transformer models, called Focal Transformer, which achieves superior performance over the state-of-the-art vision Transformers on a range of public image classification and object detection benchmarks. In particular, our Focal Transformer models with a moderate size of 51.1M and a larger size of 89.8M achieve 83.5 and 83.8 Top-1 accuracy, respectively, on ImageNet classification at 224x224 resolution. Using Focal Transformers as the backbones, we obtain consistent and substantial improvements over the current state-of-the-art Swin Transformers for 6 different object detection methods trained with standard 1x and 3x schedules. Our largest Focal Transformer yields 58.7/58.9 box mAPs and 50.9/51.3 mask mAPs on COCO mini-val/test-dev, and 55.4 mIoU on ADE20K for semantic segmentation, creating new SoTA on three of the most challenging computer vision tasks.

Key facts. Cited by 286 papers in the map (data through 7 Oct 2026). Builds on 78 of its 95 references that are in the map. First posted on arXiv 1 Jul 2021.

Builds on

78 of 95 references.

References · 78

  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. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2020End-to-End Object Detection with Transformerscited by 7,384
  9. 2017Mask R-CNNcited by 7,259
  10. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  11. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  12. 2017Squeeze-and-Excitation Networkscited by 4,763
38 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  3. 2020Longformer: The Long-Document Transformercited by 3,362
  4. 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
  5. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  6. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  7. 2018CBAM: Convolutional Block Attention Modulecited by 2,463
  8. 2017Non-local Neural Networkscited by 2,290
  9. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  11. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  12. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  13. 2019Deep High-Resolution Representation Learning for Human Pose Estimationcited by 1,339
  14. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
  15. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  16. 2017Random Erasing Data Augmentationcited by 1,235
  17. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  18. 2021Transformers in Vision: A Surveycited by 1,009
  19. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  20. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  21. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  22. 2018Image Transformercited by 770
  23. 2021Going deeper with Image Transformerscited by 759
  24. 2017Focal Loss for Dense Object Detectioncited by 749
  25. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  26. 2021Transformer in Transformercited by 632
  27. 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 595
  28. 2019Segmentation Transformer: Object-Contextual Representations for Semantic Segmentationcited by 573
  29. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  30. 2019Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selectioncited by 539
  31. 2020Sparse R-CNN: End-to-End Object Detection with Learnable Proposalscited by 494
  32. 2019Hybrid Task Cascade for Instance Segmentationcited by 479
  33. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  34. 2020ResNeSt: Split-Attention Networkscited by 445
  35. 2020End-to-End Video Instance Segmentation with Transformerscited by 443
  36. 2021Transformer Trackingcited by 412
  37. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  38. 2017Soft-NMS -- Improving Object Detection With One Line of Codecited by 380

50 most cited of 78 All 78 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 22; 2022: 104; 2023: 64; 2024: 53; 2025: 23; 2026: 20.

286 papers.

Sort:

By area:

  1. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
  2. 2021Grounded Language-Image Pre-trainingcited by 1,147
  3. 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,051
  4. 2024VMamba: Visual State Space Modelcited by 955
  5. 2021Florence: A New Foundation Model for Computer Visioncited by 802
  6. 2022Vision Transformer Adapter for Dense Predictionscited by 564
  7. 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 479
  8. 2022MaxViT: Multi-Axis Vision Transformercited by 476
  9. 2023Florence-2: Advancing a Unified Representation for a Variety of Vision Taskscited by 403
  10. 2022ActionFormer: Localizing Moments of Actions with Transformerscited by 308
  11. 2022Vision Transformer with Deformable Attentioncited by 293
  12. 2022SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentationcited by 252
38 more
  1. 2022CoBEVT: Cooperative Bird's Eye View Semantic Segmentation with Sparse Transformerscited by 227
  2. 2022Visual Attention Networkcited by 210
  3. 2022UniFormer: Unifying Convolution and Self-attention for Visual Recognitioncited by 206
  4. 2022MaskCLIP: Masked Self-Distillation Advances Contrastive Language-Image Pretrainingcited by 187
  5. 2022Focal Modulation Networkscited by 186
  6. 2022DaViT: Dual Attention Vision Transformerscited by 174
  7. 2022Stratified Transformer for 3D Point Cloud Segmentationcited by 166
  8. 2023Large-scale Multi-Modal Pre-trained Models: A Comprehensive Surveycited by 153
  9. 2022Earthformer: Exploring Space-Time Transformers for Earth System Forecastingcited by 146
  10. 2024PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognitioncited by 141
  11. 2022QuadTree Attention for Vision Transformerscited by 129
  12. 2023Spherical Transformer for LiDAR-based 3D Recognitioncited by 124
  13. 2021MPViT: Multi-Path Vision Transformer for Dense Predictioncited by 122
  14. 2021A Survey of Visual Transformerscited by 117
  15. 2022ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and Beyondcited by 117
  16. 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
  17. 2023OctFormer: Octree-based Transformers for 3D Point Cloudscited by 105
  18. 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
  19. 2022Inception Transformercited by 99
  20. 2022CenterFormer: Center-based Transformer for 3D Object Detectioncited by 99
  21. 2022Cross Aggregation Transformer for Image Restorationcited by 92
  22. 2021Shunted Self-Attention via Multi-Scale Token Aggregationcited by 90
  23. 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
  24. 2022InvPT: Inverted Pyramid Multi-task Transformer for Dense Scene Understandingcited by 89
  25. 2023Dual Memory Units with Uncertainty Regulation for Weakly Supervised Video Anomaly Detectioncited by 88
  26. 2023InceptionNeXt: When Inception Meets ConvNeXtcited by 84
  27. 2025Describe Anything: Detailed Localized Image and Video Captioningcited by 84
  28. 2022Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognitioncited by 81
  29. 2022Fast Vision Transformers with HiLo Attentioncited by 78
  30. 2022Wave-ViT: Unifying Wavelet and Transformers for Visual Representation Learningcited by 78
  31. 2022Boosting Crowd Counting via Multifaceted Attentioncited by 73
  32. 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
  33. 2022LargeKernel3D: Scaling up Kernels in 3D Sparse CNNscited by 71
  34. 2022SwinTextSpotter: Scene Text Spotting via Better Synergy between Text Detection and Text Recognitioncited by 70
  35. 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
  36. 2022Coarse-to-Fine Sparse Transformer for Hyperspectral Image Reconstructioncited by 67
  37. 2024ViT-CoMer: Vision Transformer with Convolutional Multi-scale Feature Interaction for Dense Predictionscited by 65
  38. 2023TransNeXt: Robust Foveal Visual Perception for Vision Transformerscited by 61

50 most cited of 286 All 286 (JSON)