mlsanityData to 14 Oct 2026

Robustifying Token Attention for Vision Transformers

arXiv 2303.11126 ↗First posted 20 Mar 2023cs.CVcited by 19

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  3. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
  4. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,859
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  6. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
  7. 2022A ConvNet for the 2020scited by 3,579
  8. 2020Longformer: The Long-Document Transformercited by 3,413
  9. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
  10. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  11. 2016Pyramid Scene Parsing Networkcited by 2,479
  12. 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,161
38 more
  1. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  2. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  3. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  4. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  5. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
  6. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  7. 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,133
  8. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
  9. 2021Transformers in Vision: A Surveycited by 1,013
  10. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
  11. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  12. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
  13. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  14. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
  15. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
  16. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  17. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  18. 2021Intriguing Properties of Vision Transformerscited by 446
  19. 2021Early Convolutions Help Transformers See Bettercited by 396
  20. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
  21. 2021XCiT: Cross-Covariance Image Transformerscited by 338
  22. 2019Benchmarking Robustness in Object Detection: Autonomous Driving when Winter is Comingcited by 336
  23. 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
  24. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 300
  25. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
  26. 2021DeepViT: Towards Deeper Vision Transformercited by 289
  27. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
  28. 2017ICNet for Real-Time Semantic Segmentation on High-Resolution Imagescited by 261
  29. 2021Understanding Robustness of Transformers for Image Classificationcited by 249
  30. 2021Incorporating Convolution Designs into Visual Transformerscited by 248
  31. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  32. 2021Vision Transformers are Robust Learnerscited by 207
  33. 2021Are Transformers More Robust Than CNNs?cited by 187
  34. 2017Generating Natural Adversarial Examplescited by 183
  35. 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
  36. 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
  37. 2022Understanding The Robustness in Vision Transformerscited by 144
  38. 2021Towards Robust Vision Transformercited by 137

50 most cited of 65 All 65 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 7; 2025: 7; 2026: 3.

19 papers.

Sort:

By area:

  1. 2025One Diffusion Step to Real-World Super-Resolution via Flow Trajectory Distillationcited by 41
  2. 2023Adaptive Sharpness-Aware Pruning for Robust Sparse Networkscited by 17
  3. 2024RoDLA: Benchmarking the Robustness of Document Layout Analysis Modelscited by 13
  4. 2024Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptionscited by 12
  5. 2025ReME: A Data-Centric Framework for Training-Free Open-Vocabulary Segmentationcited by 9
  6. 2024Towards Adaptive Neighborhood for Advancing Temporal Interaction Graph Modelingcited by 8
  7. 2024Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustnesscited by 8
  8. 2025Are Synthetic Corruptions A Reliable Proxy For Real-World Corruptions?cited by 5
  9. 2024AdaNCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformercited by 4
  10. 2025LOTFormer: Doubly-Stochastic Linear Attention via Low-Rank Optimal Transportcited by 4
  11. 2025Enhancing Layer Attention Efficiency through Pruning Redundant Retrievalscited by 3
  12. 2023Robustifying Point Cloud Networks by Refocusingcited by 2
7 more
  1. 2024A Manifold Representation of the Key in Vision Transformerscited by 2
  2. 2024SATA: Spatial Autocorrelation Token Analysis for Enhancing the Robustness of Vision Transformerscited by 2
  3. 2025Enhancing Self-Supervised Visual Representation Learning via Low-Rank Adapted LLMscited by 1
  4. 2025VisMoDAl: Visual Analytics for Evaluating and Improving Corruption Robustness of Vision-Language Modelscited by 1
  5. 2026Spike-NVPT: Learning Robust Visual Prompts via Bio-Inspired Temporal Filtering and Discretizationcited by 0
  6. 2026REDI: Corpus Aware Patch Ranking for DINOv3 Token Reductioncited by 0
  7. 2026What Does Attention Transfer Transfer? Attention Structure and Robustness in Vision Transformerscited by 0