mlsanityData to 14 Oct 2026

Demystify Self-Attention in Vision Transformers from a Semantic Perspective: Analysis and Application

arXiv 2211.08543 ↗First posted 13 Nov 2022cs.CV cs.AI cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Self-attention mechanisms, especially multi-head self-attention (MSA), have achieved great success in many fields such as computer vision and natural language processing. However, many existing vision transformer (ViT) works simply inherent transformer designs from NLP to adapt vision tasks, while ignoring the fundamental difference between ``how MSA works in image and language settings''. Language naturally contains highly semantic structures that are directly interpretable by humans. Its basic unit (word) is discrete without redundant information, which readily supports interpretable studies on MSA mechanisms of language transformer. In contrast, visual data exhibits a fundamentally different structure: Its basic unit (pixel) is a natural low-level representation with significant redundancies in the neighbourhood, which poses obvious challenges to the interpretability of MSA mechanism in ViT. In this paper, we introduce a typical image processing technique, i.e., scale-invariant feature transforms (SIFTs), which maps low-level representations into mid-level spaces, and annotates extensive discrete keypoints with semantically rich information. Next, we construct a weighted patch interrelation analysis based on SIFT keypoints to capture the attention patterns hidden in patches with different semantic concentrations Interestingly, we find this quantitative analysis is not only an effective complement to the interpretability of MSA mechanisms in ViT, but can also be applied to 1) spurious correlation discovery and ``prompting'' during model inference, 2) and guided model pre-training acceleration. Experimental results on both applications show significant advantages over baselines, demonstrating the efficacy of our method.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 28 of its 33 references that are in the map. First posted on arXiv 13 Nov 2022.

Builds on

28 of 33 references.

References · 28

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  6. 2017Squeeze-and-Excitation Networkscited by 4,789
  7. 2018CBAM: Convolutional Block Attention Modulecited by 2,477
  8. 2021Learning to Prompt for Vision-Language Modelscited by 2,281
  9. 2019Language Models as Knowledge Bases?cited by 1,936
  10. 2022Visual Prompt Tuningcited by 1,681
  11. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  12. 2019How Can We Know What Language Models Know?cited by 959
16 more
  1. 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 903
  2. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  3. 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
  4. 2021Masked Feature Prediction for Self-Supervised Visual Pre-Trainingcited by 576
  5. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  6. 2021Intriguing Properties of Vision Transformerscited by 446
  7. 2021Deep ViT Features as Dense Visual Descriptorscited by 330
  8. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 300
  9. 2021DeepViT: Towards Deeper Vision Transformercited by 289
  10. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  11. 2021VOLO: Vision Outlooker for Visual Recognitioncited by 165
  12. 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
  13. 2022Domino: Discovering Systematic Errors with Cross-Modal Embeddingscited by 156
  14. 2021Towards Robust Vision Transformercited by 137
  15. 2020Understanding Failures of Deep Networks via Robust Feature Extractioncited by 56
  16. 2022Visualizing and Understanding Patch Interactions in Vision Transformercited by 26

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 0; 2025: 1.

2 papers.