Robustifying Token Attention for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Despite the success of vision transformers (ViTs), they still suffer from significant drops in accuracy in the presence of common corruptions, such as noise or blur. Interestingly, we observe that the attention mechanism of ViTs tends to rely on few important tokens, a phenomenon we call token overfocusing. More critically, these tokens are not robust to corruptions, often leading to highly diverging attention patterns. In this paper, we intend to alleviate this overfocusing issue and make attention more stable through two general techniques: First, our Token-aware Average Pooling (TAP) module encourages the local neighborhood of each token to take part in the attention mechanism. Specifically, TAP learns average pooling schemes for each token such that the information of potentially important tokens in the neighborhood can adaptively be taken into account. Second, we force the output tokens to aggregate information from a diverse set of input tokens rather than focusing on just a few by using our Attention Diversification Loss (ADL). We achieve this by penalizing high cosine similarity between the attention vectors of different tokens. In experiments, we apply our methods to a wide range of transformer architectures and improve robustness significantly. For example, we improve corruption robustness on ImageNet-C by 2.4% while improving accuracy by 0.4% based on state-of-the-art robust architecture FAN. Also, when fine-tuning on semantic segmentation tasks, we improve robustness on CityScapes-C by 2.4% and ACDC by 3.0%. Our code is available at https://github.com/guoyongcs/TAPADL.
Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Builds on 65 of its 74 references that are in the map. First posted on arXiv 20 Mar 2023.
Builds on
65 of 74 references.
References · 65
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,859
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2022A ConvNet for the 2020scited by 3,579
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2016Pyramid Scene Parsing Networkcited by 2,479
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,161
38 more
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,133
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2021Transformers in Vision: A Surveycited by 1,013
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
- 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
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2021Early Convolutions Help Transformers See Bettercited by 396
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021XCiT: Cross-Covariance Image Transformerscited by 338
- 2019Benchmarking Robustness in Object Detection: Autonomous Driving when Winter is Comingcited by 336
- 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 300
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2021DeepViT: Towards Deeper Vision Transformercited by 289
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
- 2017ICNet for Real-Time Semantic Segmentation on High-Resolution Imagescited by 261
- 2021Understanding Robustness of Transformers for Image Classificationcited by 249
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021Vision Transformers are Robust Learnerscited by 207
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2017Generating Natural Adversarial Examplescited by 183
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
- 2022Understanding The Robustness in Vision Transformerscited by 144
- 2021Towards Robust Vision Transformercited by 137
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2023: 2; 2024: 7; 2025: 7; 2026: 3.
19 papers.
Sort:
By area:
- 2025One Diffusion Step to Real-World Super-Resolution via Flow Trajectory Distillationcited by 41
- 2023Adaptive Sharpness-Aware Pruning for Robust Sparse Networkscited by 17
- 2024RoDLA: Benchmarking the Robustness of Document Layout Analysis Modelscited by 13
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
- 2025ReME: A Data-Centric Framework for Training-Free Open-Vocabulary Segmentationcited by 9
- 2024Towards Adaptive Neighborhood for Advancing Temporal Interaction Graph Modelingcited by 8
- 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustnesscited by 8
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?cited by 5
- 2024AdaNCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformercited by 4
- 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transportcited by 4
- 2025Enhancing Layer Attention Efficiency through Pruning Redundant Retrievalscited by 3
- 2023Robustifying Point Cloud Networks by Refocusingcited by 2
7 more
- 2024A Manifold Representation of the Key in Vision Transformerscited by 2
- 2024SATA: Spatial Autocorrelation Token Analysis for Enhancing the Robustness of Vision Transformerscited by 2
- 2025Enhancing Self-Supervised Visual Representation Learning via Low-Rank Adapted LLMscited by 1
- 2025VisMoDAl: Visual Analytics for Evaluating and Improving Corruption Robustness of Vision-Language Modelscited by 1
- 2026Spike-NVPT: Learning Robust Visual Prompts via Bio-Inspired Temporal Filtering and Discretizationcited by 0
- 2026REDI: Corpus Aware Patch Ranking for DINOv3 Token Reductioncited by 0
- 2026What Does Attention Transfer Transfer? Attention Structure and Robustness in Vision Transformerscited by 0
- 2026What Does Attention Transfer Transfer? Attention Structure and Robustness in Vision Transformers19 Aug 2026
- 2026REDI: Corpus Aware Patch Ranking for DINOv3 Token Reduction30 Jun 2026
- 2026Spike-NVPT: Learning Robust Visual Prompts via Bio-Inspired Temporal Filtering and Discretization20 Apr 2026
- 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transport27 Sep 2025
- 2025VisMoDAl: Visual Analytics for Evaluating and Improving Corruption Robustness of Vision-Language Models18 Sep 2025
- 2025Enhancing Self-Supervised Visual Representation Learning via Low-Rank Adapted LLMs1 Jul 2025
- 2025ReME: A Data-Centric Framework for Training-Free Open-Vocabulary Segmentation26 Jun 2025
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?7 May 2025
- 2025Enhancing Layer Attention Efficiency through Pruning Redundant Retrievals9 Mar 2025
- 2025One Diffusion Step to Real-World Super-Resolution via Flow Trajectory Distillation4 Feb 2025
- 2024SATA: Spatial Autocorrelation Token Analysis for Enhancing the Robustness of Vision Transformers30 Sep 2024
- 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustness12 Jul 2024
7 more
- 2024Towards Adaptive Neighborhood for Advancing Temporal Interaction Graph Modeling14 Jun 2024
- 2024AdaNCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformer12 Jun 2024
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptions29 Mar 2024
- 2024RoDLA: Benchmarking the Robustness of Document Layout Analysis Models21 Mar 2024
- 2024A Manifold Representation of the Key in Vision Transformers1 Feb 2024
- 2023Robustifying Point Cloud Networks by Refocusing10 Aug 2023
- 2023Adaptive Sharpness-Aware Pruning for Robust Sparse Networks25 Jun 2023
- 2023Adaptive Sharpness-Aware Pruning for Robust Sparse Networkscited by 17
- 2024RoDLA: Benchmarking the Robustness of Document Layout Analysis Modelscited by 13
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
- 2025ReME: A Data-Centric Framework for Training-Free Open-Vocabulary Segmentationcited by 9
- 2024Towards Adaptive Neighborhood for Advancing Temporal Interaction Graph Modelingcited by 8
- 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustnesscited by 8
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?cited by 5
- 2024AdaNCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformercited by 4
- 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transportcited by 4
- 2025Enhancing Layer Attention Efficiency through Pruning Redundant Retrievalscited by 3
- 2023Robustifying Point Cloud Networks by Refocusingcited by 2
- 2024A Manifold Representation of the Key in Vision Transformerscited by 2
12 most cited of 16 All 16 (JSON)
- 2026What Does Attention Transfer Transfer? Attention Structure and Robustness in Vision Transformers19 Aug 2026
- 2026REDI: Corpus Aware Patch Ranking for DINOv3 Token Reduction30 Jun 2026
- 2026Spike-NVPT: Learning Robust Visual Prompts via Bio-Inspired Temporal Filtering and Discretization20 Apr 2026
- 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transport27 Sep 2025
- 2025ReME: A Data-Centric Framework for Training-Free Open-Vocabulary Segmentation26 Jun 2025
- 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?7 May 2025
- 2025Enhancing Layer Attention Efficiency through Pruning Redundant Retrievals9 Mar 2025
- 2024SATA: Spatial Autocorrelation Token Analysis for Enhancing the Robustness of Vision Transformers30 Sep 2024
- 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustness12 Jul 2024
- 2024Towards Adaptive Neighborhood for Advancing Temporal Interaction Graph Modeling14 Jun 2024
- 2024AdaNCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformer12 Jun 2024
- 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptions29 Mar 2024
12 newest of 16 All 16 (JSON)