Focal Self-attention for Local-Global Interactions in Vision Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017Squeeze-and-Excitation Networkscited by 4,763
38 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
- 2018CBAM: Convolutional Block Attention Modulecited by 2,463
- 2017Non-local Neural Networkscited by 2,290
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2019Deep High-Resolution Representation Learning for Human Pose Estimationcited by 1,339
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2017Random Erasing Data Augmentationcited by 1,235
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Transformers in Vision: A Surveycited by 1,009
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2018Image Transformercited by 770
- 2021Going deeper with Image Transformerscited by 759
- 2017Focal Loss for Dense Object Detectioncited by 749
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2021Transformer in Transformercited by 632
- 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 595
- 2019Segmentation Transformer: Object-Contextual Representations for Semantic Segmentationcited by 573
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2019Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selectioncited by 539
- 2020Sparse R-CNN: End-to-End Object Detection with Learnable Proposalscited by 494
- 2019Hybrid Task Cascade for Instance Segmentationcited by 479
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2020ResNeSt: Split-Attention Networkscited by 445
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2021Transformer Trackingcited by 412
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2017Soft-NMS -- Improving Object Detection With One Line of Codecited by 380
50 most cited of 78 All 78 (JSON)
Built on by
Citing papers per year: 2021: 22; 2022: 104; 2023: 64; 2024: 53; 2025: 23; 2026: 20.
286 papers.
Sort:
By area:
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021Grounded Language-Image Pre-trainingcited by 1,147
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,051
- 2024VMamba: Visual State Space Modelcited by 955
- 2021Florence: A New Foundation Model for Computer Visioncited by 802
- 2022Vision Transformer Adapter for Dense Predictionscited by 564
- 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 479
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2023Florence-2: Advancing a Unified Representation for a Variety of Vision Taskscited by 403
- 2022ActionFormer: Localizing Moments of Actions with Transformerscited by 308
- 2022Vision Transformer with Deformable Attentioncited by 293
- 2022SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentationcited by 252
38 more
- 2022CoBEVT: Cooperative Bird's Eye View Semantic Segmentation with Sparse Transformerscited by 227
- 2022Visual Attention Networkcited by 210
- 2022UniFormer: Unifying Convolution and Self-attention for Visual Recognitioncited by 206
- 2022MaskCLIP: Masked Self-Distillation Advances Contrastive Language-Image Pretrainingcited by 187
- 2022Focal Modulation Networkscited by 186
- 2022DaViT: Dual Attention Vision Transformerscited by 174
- 2022Stratified Transformer for 3D Point Cloud Segmentationcited by 166
- 2023Large-scale Multi-Modal Pre-trained Models: A Comprehensive Surveycited by 153
- 2022Earthformer: Exploring Space-Time Transformers for Earth System Forecastingcited by 146
- 2024PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognitioncited by 141
- 2022QuadTree Attention for Vision Transformerscited by 129
- 2023Spherical Transformer for LiDAR-based 3D Recognitioncited by 124
- 2021MPViT: Multi-Path Vision Transformer for Dense Predictioncited by 122
- 2021A Survey of Visual Transformerscited by 117
- 2022ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and Beyondcited by 117
- 2023Swin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understandingcited by 111
- 2023OctFormer: Octree-based Transformers for 3D Point Cloudscited by 105
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2022Inception Transformercited by 99
- 2022CenterFormer: Center-based Transformer for 3D Object Detectioncited by 99
- 2022Cross Aggregation Transformer for Image Restorationcited by 92
- 2021Shunted Self-Attention via Multi-Scale Token Aggregationcited by 90
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2022InvPT: Inverted Pyramid Multi-task Transformer for Dense Scene Understandingcited by 89
- 2023Dual Memory Units with Uncertainty Regulation for Weakly Supervised Video Anomaly Detectioncited by 88
- 2023InceptionNeXt: When Inception Meets ConvNeXtcited by 84
- 2025Describe Anything: Detailed Localized Image and Video Captioningcited by 84
- 2022Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognitioncited by 81
- 2022Fast Vision Transformers with HiLo Attentioncited by 78
- 2022Wave-ViT: Unifying Wavelet and Transformers for Visual Representation Learningcited by 78
- 2022Boosting Crowd Counting via Multifaceted Attentioncited by 73
- 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
- 2022LargeKernel3D: Scaling up Kernels in 3D Sparse CNNscited by 71
- 2022SwinTextSpotter: Scene Text Spotting via Better Synergy between Text Detection and Text Recognitioncited by 70
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2022Coarse-to-Fine Sparse Transformer for Hyperspectral Image Reconstructioncited by 67
- 2024ViT-CoMer: Vision Transformer with Convolutional Multi-scale Feature Interaction for Dense Predictionscited by 65
- 2023TransNeXt: Robust Foveal Visual Perception for Vision Transformerscited by 61
50 most cited of 286 All 286 (JSON)
- 2026Semantic Head Specialization Guides Hybrid ViT Attention for Multimodal LLMs28 Aug 2026
- 2026DiD It in 87 Minutes: A Label-Free Softmax-to-Linear Adaptation of Vision Transformers for Object Detection23 Aug 2026
- 2026LoSA-Net: A Localized and Scale-Adaptive Network for Boundary-Sensitive Prediction of Perineural Invasion in 3D MRI13 Jul 2026
- 2026MMA-Former: Multi-Window Mixture-of-Head Attention Transformer for Adaptive PNI Prediction in 3D MRI13 Jul 2026
- 2026Reload-Mamba: Hierarchical Anti-Dilution State-Space Modeling for Multi-Class Semantic Segmentation16 Jun 2026
- 2026Representative Attention For Vision Transformers14 May 2026
- 2026Can Graphs Help Vision SSMs See Better?11 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
- 2026MPDiT: Multi-Patch Global-to-Local Transformer Architecture For Efficient Flow Matching and Diffusion Model27 Mar 2026
- 2026MFil-Mamba: Multi-Filter Scanning for Spatial Redundancy-Aware Visual State Space Models20 Mar 2026
- 2026HAViT: Historical Attention Vision Transformer19 Mar 2026
38 more
- 2026CMHANet: A Cross-Modal Hybrid Attention Network for Point Cloud Registration13 Mar 2026
- 2026Locality-Attending Vision Transformer5 Mar 2026
- 2026Random Wins All: Rethinking Grouping Strategies for Vision Tokens28 Feb 2026
- 2026ViT-5: Vision Transformers for The Mid-2020s8 Feb 2026
- 2026Partial Ring Scan: Revisiting Scan Order in Vision State Space Models4 Feb 2026
- 2026Comparison of Image Processing Models in Quark Gluon Jet Classification29 Jan 2026
- 2026SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention16 Jan 2026
- 2026WaveFormer: Frequency-Time Decoupled Vision Modeling with Wave Equation13 Jan 2026
- 2025Item Region-based Style Classification Network (IRSN): A Fashion Style Classifier Based on Domain Knowledge of Fashion Experts23 Dec 2025
- 2025AMD-HookNet++: Evolution of AMD-HookNet with Hybrid CNN-Transformer Feature Enhancement for Glacier Calving Front Segmentation16 Dec 2025
- 2025ViT3: Unlocking Test-Time Training in Vision1 Dec 2025
- 2025Hilbert-Guided Sparse Local Attention8 Nov 2025
- 2025Attentive Convolution: Unifying the Expressivity of Self-Attention with Convolutional Efficiency23 Oct 2025
- 2025Region-Aware Deformable Convolutions18 Sep 2025
- 2025Vision encoders should be image size agnostic and task driven22 Aug 2025
- 2025Learning Spatial Decay for Vision Transformers13 Aug 2025
- 2025RelayFormer: A Unified Local-Global Attention Framework for Scalable Image and Video Manipulation Localization13 Aug 2025
- 2025UniConvNet: Expanding Effective Receptive Field while Maintaining Asymptotically Gaussian Distribution for ConvNets of Any Scale12 Aug 2025
- 2025Detection Transformers Under the Knife: A Neuroscience-Inspired Approach to Ablations29 Jul 2025
- 2025Resolving Token-Space Gradient Conflicts: Token Space Manipulation for Transformer-Based Multi-Task Learning10 Jul 2025
- 2025ViT-Split: Unleashing the Power of Vision Foundation Models via Efficient Splitting Heads3 Jun 2025
- 2025AnchorFormer: Differentiable Anchor Attention for Efficient Vision Transformer22 May 2025
- 2025Image Recognition with Online Lightweight Vision Transformer: A Survey6 May 2025
- 2025Describe Anything: Detailed Localized Image and Video Captioning22 Apr 2025
- 2025Crafting Query-Aware Selective Attention for Single Image Super-Resolution9 Apr 2025
- 2025DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation7 Apr 2025
- 2025Atlas: Multi-Scale Attention Improves Long Context Image Modeling16 Mar 2025
- 2025MaskAttn-UNet: A Mask Attention-Driven Framework for Universal Low-Resolution Image Segmentation11 Mar 2025
- 2025Selective Task Group Updates for Multi-Task Optimization17 Feb 2025
- 2025A Retrospective Systematic Study on Hierarchical Sparse Query Transformer-assisted Ultrasound Screening for Early Hepatocellular Carcinoma6 Feb 2025
- 2025Adjoint sharding for very long context training of state space models1 Jan 2025
- 2024STARFormer: A Novel Spatio-Temporal Aggregation Reorganization Transformer of FMRI for Brain Disorder Diagnosis31 Dec 2024
- 2024Can We Get Rid of Handcrafted Feature Extractors? SparseViT: Nonsemantics-Centered, Parameter-Efficient Image Manipulation Localization through Spare-Coding Transformer19 Dec 2024
- 2024Real Classification by Description: Extending CLIP's Limits of Part Attributes Recognition18 Dec 2024
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attention9 Dec 2024
- 2024MVFormer: Diversifying Feature Normalization and Token Mixing for Efficient Vision Transformers28 Nov 2024
- 2024Scaling Spike-driven Transformer with Efficient Spike Firing Approximation Training25 Nov 2024
- 2024Local-Global Attention: An Adaptive Mechanism for Multi-Scale Feature Integration14 Nov 2024
50 newest of 286 All 286 (JSON)
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,051
- 2024PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognitioncited by 141
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2024Heracles: A Hybrid SSM-Transformer Model for High-Resolution Image and Time-Series Analysiscited by 5
- 2026MFil-Mamba: Multi-Filter Scanning for Spatial Redundancy-Aware Visual State Space Modelscited by 0
- 2026Can Graphs Help Vision SSMs See Better?cited by 0
- 2026Reload-Mamba: Hierarchical Anti-Dilution State-Space Modeling for Multi-Class Semantic Segmentationcited by 0
- 2026Reload-Mamba: Hierarchical Anti-Dilution State-Space Modeling for Multi-Class Semantic Segmentation16 Jun 2026
- 2026Can Graphs Help Vision SSMs See Better?11 May 2026
- 2026MFil-Mamba: Multi-Filter Scanning for Spatial Redundancy-Aware Visual State Space Models20 Mar 2026
- 2024Demystify Mamba in Vision: A Linear Attention Perspective26 May 2024
- 2024Heracles: A Hybrid SSM-Transformer Model for High-Resolution Image and Time-Series Analysis26 Mar 2024
- 2024PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognition26 Mar 2024
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model17 Jan 2024
- 2026Representative Attention For Vision Transformerscited by 0
- 2026Representative Attention For Vision Transformers14 May 2026
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021Grounded Language-Image Pre-trainingcited by 1,147
- 2024VMamba: Visual State Space Modelcited by 955
- 2021Florence: A New Foundation Model for Computer Visioncited by 802
- 2022Vision Transformer Adapter for Dense Predictionscited by 564
- 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 479
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2023Florence-2: Advancing a Unified Representation for a Variety of Vision Taskscited by 403
- 2022ActionFormer: Localizing Moments of Actions with Transformerscited by 308
- 2022Vision Transformer with Deformable Attentioncited by 293
- 2022SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentationcited by 252
- 2022CoBEVT: Cooperative Bird's Eye View Semantic Segmentation with Sparse Transformerscited by 227
12 most cited of 271 All 271 (JSON)
- 2026DiD It in 87 Minutes: A Label-Free Softmax-to-Linear Adaptation of Vision Transformers for Object Detection23 Aug 2026
- 2026LoSA-Net: A Localized and Scale-Adaptive Network for Boundary-Sensitive Prediction of Perineural Invasion in 3D MRI13 Jul 2026
- 2026MMA-Former: Multi-Window Mixture-of-Head Attention Transformer for Adaptive PNI Prediction in 3D MRI13 Jul 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
- 2026HAViT: Historical Attention Vision Transformer19 Mar 2026
- 2026CMHANet: A Cross-Modal Hybrid Attention Network for Point Cloud Registration13 Mar 2026
- 2026Locality-Attending Vision Transformer5 Mar 2026
- 2026Random Wins All: Rethinking Grouping Strategies for Vision Tokens28 Feb 2026
- 2026ViT-5: Vision Transformers for The Mid-2020s8 Feb 2026
- 2026Partial Ring Scan: Revisiting Scan Order in Vision State Space Models4 Feb 2026
- 2026Comparison of Image Processing Models in Quark Gluon Jet Classification29 Jan 2026
12 newest of 271 All 271 (JSON)