GMAR: Gradient-Driven Multi-Head Attention Rollout for Vision Transformer Interpretability
Not on the map. Why?
Abstract (arXiv)
The Vision Transformer (ViT) has made significant advancements in computer vision, utilizing self-attention mechanisms to achieve state-of-the-art performance across various tasks, including image classification, object detection, and segmentation. Its architectural flexibility and capabilities have made it a preferred choice among researchers and practitioners. However, the intricate multi-head attention mechanism of ViT presents significant challenges to interpretability, as the underlying prediction process remains opaque. A critical limitation arises from an observation commonly noted in transformer architectures: "Not all attention heads are equally meaningful." Overlooking the relative importance of specific heads highlights the limitations of existing interpretability methods. To address these challenges, we introduce Gradient-Driven Multi-Head Attention Rollout (GMAR), a novel method that quantifies the importance of each attention head using gradient-based scores. These scores are normalized to derive a weighted aggregate attention score, effectively capturing the relative contributions of individual heads. GMAR clarifies the role of each head in the prediction process, enabling more precise interpretability at the head level. Experimental results demonstrate that GMAR consistently outperforms traditional attention rollout techniques. This work provides a practical contribution to transformer-based architectures, establishing a robust framework for enhancing the interpretability of Vision Transformer models.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 21 of its 27 references that are in the map. First posted on arXiv 28 Apr 2025.
Builds on
21 of 27 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
9 more
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2024MoH: Multi-Head Attention as Mixture-of-Head Attentioncited by 44
- 2023How Does Attention Work in Vision Transformers? A Visual Analytics Attemptcited by 30
- 2022ViT-CX: Causal Explanation of Vision Transformerscited by 28
- 2024FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networkscited by 1
Built on by
Citing papers per year: 2025: 2; 2026: 9.
11 papers.
- 2026How Vision Becomes Language: A Layer-wise Information-Theoretic Analysis of Multimodal Reasoningcited by 8
- 2025FairViT-GAN: A Hybrid Vision Transformer with Adversarial Debiasing for Fair and Explainable Facial Beauty Predictioncited by 1
- 2026Central Dogma Transformer: Towards Mechanism-Oriented AI for Cellular Understandingcited by 1
- 2025Modeling Day-Long ECG Signals to Predict Heart Failure Risk with Explainable AIcited by 0
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainabilitycited by 0
- 2026Revealing the Gap in Human and VLM Scene Perception through Counterfactual Semantic Saliencycited by 0
- 2026KANEx: Translating Kolmogorov-Arnold Networks' Interpretability to Medical Explainabilitycited by 0
- 2026Faithful Faithfulness Evaluations: Challenges & Pitfalls Learned from a Breast MRI Case Studycited by 0
- 2026Scaling Attention Head Analysis via Gradient-Based Attribution in Context-Aware Machine Translationcited by 0
- 2026Data-Adaptive Mahalanobis Metric Learning for Cross-Head Attention in Transformerscited by 0
- 2026When, Where, and Why: Hierarchical Causal Explainability for Video Face Understanding with MLLMscited by 0
- 2026When, Where, and Why: Hierarchical Causal Explainability for Video Face Understanding with MLLMs13 Oct 2026
- 2026Data-Adaptive Mahalanobis Metric Learning for Cross-Head Attention in Transformers9 Oct 2026
- 2026Scaling Attention Head Analysis via Gradient-Based Attribution in Context-Aware Machine Translation23 Sep 2026
- 2026Faithful Faithfulness Evaluations: Challenges & Pitfalls Learned from a Breast MRI Case Study22 Sep 2026
- 2026KANEx: Translating Kolmogorov-Arnold Networks' Interpretability to Medical Explainability27 Jul 2026
- 2026Revealing the Gap in Human and VLM Scene Perception through Counterfactual Semantic Saliency13 May 2026
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainability20 Apr 2026
- 2026How Vision Becomes Language: A Layer-wise Information-Theoretic Analysis of Multimodal Reasoning17 Feb 2026
- 2026Central Dogma Transformer: Towards Mechanism-Oriented AI for Cellular Understanding3 Jan 2026
- 2025Modeling Day-Long ECG Signals to Predict Heart Failure Risk with Explainable AI20 Dec 2025
- 2025FairViT-GAN: A Hybrid Vision Transformer with Adversarial Debiasing for Fair and Explainable Facial Beauty Prediction28 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2023Interpretability-Aware Vision Transformer
- 2026Interpretable Vision Transformers in Image Classification via SVDA
- 2024TAB: Transformer Attention Bottlenecks enable User Intervention and Debugging in Vision-Language Models
- 2026ViT-5: Vision Transformers for The Mid-2020s
- 2025Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Video
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution
- 2026SpIn-ViT: Designing a Sparsity-Induced Vision Transformer That Is Mechanistically Interpretable
- 2026ViT-Explainer: An Interactive Walkthrough of the Vision Transformer Pipeline