LeGrad: An Explainability Method for Vision Transformers via Feature Formation Sensitivity
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs), with their ability to model long-range dependencies through self-attention mechanisms, have become a standard architecture in computer vision. However, the interpretability of these models remains a challenge. To address this, we propose LeGrad, an explainability method specifically designed for ViTs. LeGrad computes the gradient with respect to the attention maps of ViT layers, considering the gradient itself as the explainability signal. We aggregate the signal over all layers, combining the activations of the last as well as intermediate tokens to produce the merged explainability map. This makes LeGrad a conceptually simple and an easy-to-implement tool for enhancing the transparency of ViTs. We evaluate LeGrad in challenging segmentation, perturbation, and open-vocabulary settings, showcasing its versatility compared to other SotA explainability methods demonstrating its superior spatial fidelity and robustness to perturbations. A demo and the code is available at https://github.com/WalBouss/LeGrad.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 52 of its 59 references that are in the map. First posted on arXiv 4 Apr 2024.
Builds on
52 of 59 references.
References · 52
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2022Scalable Diffusion Models with Transformerscited by 5,931
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,048
38 more
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
- 2023ImageBind: One Embedding Space To Bind Them Allcited by 1,162
- 2018Sanity Checks for Saliency Mapscited by 1,149
- 2017SmoothGrad: removing noise by adding noisecited by 1,097
- 2014Striving for Simplicity: The All Convolutional Netcited by 983
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2023Vision Transformers Need Registerscited by 844
- 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 825
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2018A Benchmark for Interpretability Methods in Deep Neural Networkscited by 467
- 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 416
- 2017The (Un)reliability of saliency methodscited by 331
- 2016Top-down Neural Attention by Excitation Backpropcited by 318
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
- 2018On the Robustness of Interpretability Methodscited by 310
- 2019On the (In)fidelity and Sensitivity for Explanationscited by 309
- 2022From Anecdotal Evidence to Quantitative Evaluation Methods: A Systematic Review on Evaluating Explainable AIcited by 299
- 2023Demystifying CLIP Datacited by 265
- 2023Interpreting CLIP's Image Representation via Text-Based Decompositioncited by 189
- 2022Contrastive Audio-Visual Masked Autoencodercited by 142
- 2022Natural Language Descriptions of Deep Visual Featurescited by 136
- 2019Sanity Checks for Saliency Metricscited by 119
- 2019XRAI: Better Attributions Through Regionscited by 116
- 2021Large-scale Unsupervised Semantic Segmentationcited by 98
- 2023Grounding Everything: Emerging Localization Properties in Vision-Language Transformerscited by 89
- 2018Jointly Discovering Visual Objects and Spoken Words from Raw Sensory Inputcited by 81
- 2023FunnyBirds: A Synthetic Vision Dataset for a Part-Based Analysis of Explainable AI Methodscited by 49
- 2022Metrics for saliency map evaluation of deep learning explanation methodscited by 40
- 2018What made you do this? Understanding black-box decisions with sufficient input subsetscited by 31
- 2021Shared Interest: Measuring Human-AI Alignment to Identify Recurring Patterns in Model Behaviorcited by 29
- 2020Overinterpretation reveals image classification model pathologiescited by 28
- 2022From colouring-in to pointillism: revisiting semantic segmentation supervisioncited by 22
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2024: 9; 2025: 8; 2026: 15.
32 papers.
Sort:
By area:
- 2024B-cosification: Transforming Deep Neural Networks to be Inherently Interpretablecited by 12
- 2025Attention (as Discrete-Time Markov) Chainscited by 11
- 2024Visual Prompt Engineering for Vision Language Models in Radiologycited by 6
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributionscited by 3
- 2025Symbolic Rule Extraction from Attention-Guided Sparse Representations in Vision Transformerscited by 3
- 2026DAVE: Distribution-aware Attribution via ViT Gradient Decompositioncited by 3
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Mapscited by 2
- 2026On the Explainability of Vision-Language Models in Art Historycited by 2
- 2024LoRA-PT: Low-Rank Adapting UNETR for Hippocampus Segmentation Using Principal Tensor Singular Values and Vectorscited by 1
- 2024VISTA: A Visual and Textual Attention Dataset for Interpreting Multimodal Modelscited by 1
- 2024Explainability in AI Based Applications: A Framework for Comparing Different Techniquescited by 1
- 2024ULTra: Unveiling Latent Token Interpretability in Transformer-Based Understanding and Segmentationcited by 1
20 more
- 2025Find your Needle: Small Object Image Retrieval via Multi-Object Attention Optimizationcited by 1
- 2026Focal Guidance: Unlocking Controllability from Semantic-Weak Layers in Video Diffusion Modelscited by 1
- 2026DEX-AR: A Dynamic Explainability Method for Autoregressive Vision-Language Modelscited by 1
- 2026Disentangling Hallucinations: Orthogonal Semantic Projection for Robust Interpretabilitycited by 1
- 2024Advancing Histopathology-Based Breast Cancer Diagnosis: Insights into Multi-Modality and Explainabilitycited by 0
- 2025Pose Matters: Evaluating Vision Transformers and CNNs for Human Action Recognition on Small COCO Subsetscited by 0
- 2025Leveraging Vision-Language Pre-training for Human Activity Recognition in Still Imagescited by 0
- 2025Turning Adversaries into Allies: Reversing Typographic Attacks for Multimodal E-Commerce Product Retrievalcited by 0
- 2025Application of Graph Based Vision Transformers Architectures for Accurate Temperature Prediction in Fiber Specklegram Sensorscited by 0
- 2025TRANSPORTER: Transferring Visual Semantics from VLM Manifoldscited by 0
- 2026Learn to Rank: Visual Attribution by Learning Importance Rankingcited by 0
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainabilitycited by 0
- 2026Interpretability Without Tradeoffs: Disentangling Polysemanticity At Equal Predictive Performancecited by 0
- 2026Does Aurora Encode Atmospheric Structure? Latent Regime Analysis and Attributioncited by 0
- 2026What Pixels Are Enough? SEAMS: Sufficiency Saliency via MSE-Preservation Soft-Maskscited by 0
- 2026Explaining AI-Image Detection: What the Heatmap Actually Showscited by 0
- 2026SPICE: Simple Polysemantic Feature Interpretation via Clustering-based Explanationcited by 0
- 2026ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformerscited by 0
- 2026MorphoSHAP: Rethinking the Unit of Attribution in Explanation for Deep Visual Modelscited by 0
- 2026Diverse by Design: Architectural Constraints for Prototype-Based Interpretabilitycited by 0
- 2026Diverse by Design: Architectural Constraints for Prototype-Based Interpretability23 Sep 2026
- 2026MorphoSHAP: Rethinking the Unit of Attribution in Explanation for Deep Visual Models22 Sep 2026
- 2026ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformers15 Sep 2026
- 2026SPICE: Simple Polysemantic Feature Interpretation via Clustering-based Explanation14 Aug 2026
- 2026Explaining AI-Image Detection: What the Heatmap Actually Shows31 Jul 2026
- 2026What Pixels Are Enough? SEAMS: Sufficiency Saliency via MSE-Preservation Soft-Masks10 Jul 2026
- 2026Does Aurora Encode Atmospheric Structure? Latent Regime Analysis and Attribution24 Jun 2026
- 2026Disentangling Hallucinations: Orthogonal Semantic Projection for Robust Interpretability8 Jun 2026
- 2026Interpretability Without Tradeoffs: Disentangling Polysemanticity At Equal Predictive Performance29 May 2026
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainability20 Apr 2026
- 2026Learn to Rank: Visual Attribution by Learning Importance Ranking7 Apr 2026
- 2026DEX-AR: A Dynamic Explainability Method for Autoregressive Vision-Language Models6 Mar 2026
20 more
- 2026On the Explainability of Vision-Language Models in Art History24 Feb 2026
- 2026DAVE: Distribution-aware Attribution via ViT Gradient Decomposition6 Feb 2026
- 2026Focal Guidance: Unlocking Controllability from Semantic-Weak Layers in Video Diffusion Models12 Jan 2026
- 2025TRANSPORTER: Transferring Visual Semantics from VLM Manifolds23 Nov 2025
- 2025Application of Graph Based Vision Transformers Architectures for Accurate Temperature Prediction in Fiber Specklegram Sensors15 Nov 2025
- 2025Turning Adversaries into Allies: Reversing Typographic Attacks for Multimodal E-Commerce Product Retrieval7 Nov 2025
- 2025Attention (as Discrete-Time Markov) Chains23 Jul 2025
- 2025Leveraging Vision-Language Pre-training for Human Activity Recognition in Still Images16 Jun 2025
- 2025Pose Matters: Evaluating Vision Transformers and CNNs for Human Action Recognition on Small COCO Subsets13 Jun 2025
- 2025Symbolic Rule Extraction from Attention-Guided Sparse Representations in Vision Transformers10 May 2025
- 2025Find your Needle: Small Object Image Retrieval via Multi-Object Attention Optimization10 Mar 2025
- 2024ULTra: Unveiling Latent Token Interpretability in Transformer-Based Understanding and Segmentation15 Nov 2024
- 2024B-cosification: Transforming Deep Neural Networks to be Inherently Interpretable1 Nov 2024
- 2024Explainability in AI Based Applications: A Framework for Comparing Different Techniques28 Oct 2024
- 2024VISTA: A Visual and Textual Attention Dataset for Interpreting Multimodal Models6 Oct 2024
- 2024Visual Prompt Engineering for Vision Language Models in Radiology28 Aug 2024
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributions26 Aug 2024
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Maps29 Jul 2024
- 2024LoRA-PT: Low-Rank Adapting UNETR for Hippocampus Segmentation Using Principal Tensor Singular Values and Vectors16 Jul 2024
- 2024Advancing Histopathology-Based Breast Cancer Diagnosis: Insights into Multi-Modality and Explainability7 Jun 2024
- 2024Visual Prompt Engineering for Vision Language Models in Radiologycited by 6
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Mapscited by 2
- 2026On the Explainability of Vision-Language Models in Art Historycited by 2
- 2026DEX-AR: A Dynamic Explainability Method for Autoregressive Vision-Language Modelscited by 1
- 2026Disentangling Hallucinations: Orthogonal Semantic Projection for Robust Interpretabilitycited by 1
- 2025Leveraging Vision-Language Pre-training for Human Activity Recognition in Still Imagescited by 0
- 2026Disentangling Hallucinations: Orthogonal Semantic Projection for Robust Interpretability8 Jun 2026
- 2026DEX-AR: A Dynamic Explainability Method for Autoregressive Vision-Language Models6 Mar 2026
- 2026On the Explainability of Vision-Language Models in Art History24 Feb 2026
- 2025Leveraging Vision-Language Pre-training for Human Activity Recognition in Still Images16 Jun 2025
- 2024Visual Prompt Engineering for Vision Language Models in Radiology28 Aug 2024
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Maps29 Jul 2024
- 2024B-cosification: Transforming Deep Neural Networks to be Inherently Interpretablecited by 12
- 2025Attention (as Discrete-Time Markov) Chainscited by 11
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributionscited by 3
- 2025Symbolic Rule Extraction from Attention-Guided Sparse Representations in Vision Transformerscited by 3
- 2026DAVE: Distribution-aware Attribution via ViT Gradient Decompositioncited by 3
- 2024LoRA-PT: Low-Rank Adapting UNETR for Hippocampus Segmentation Using Principal Tensor Singular Values and Vectorscited by 1
- 2024VISTA: A Visual and Textual Attention Dataset for Interpreting Multimodal Modelscited by 1
- 2024Explainability in AI Based Applications: A Framework for Comparing Different Techniquescited by 1
- 2024ULTra: Unveiling Latent Token Interpretability in Transformer-Based Understanding and Segmentationcited by 1
- 2025Find your Needle: Small Object Image Retrieval via Multi-Object Attention Optimizationcited by 1
- 2024Advancing Histopathology-Based Breast Cancer Diagnosis: Insights into Multi-Modality and Explainabilitycited by 0
- 2025Pose Matters: Evaluating Vision Transformers and CNNs for Human Action Recognition on Small COCO Subsetscited by 0
12 most cited of 25 All 25 (JSON)
- 2026Diverse by Design: Architectural Constraints for Prototype-Based Interpretability23 Sep 2026
- 2026MorphoSHAP: Rethinking the Unit of Attribution in Explanation for Deep Visual Models22 Sep 2026
- 2026ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformers15 Sep 2026
- 2026SPICE: Simple Polysemantic Feature Interpretation via Clustering-based Explanation14 Aug 2026
- 2026Explaining AI-Image Detection: What the Heatmap Actually Shows31 Jul 2026
- 2026What Pixels Are Enough? SEAMS: Sufficiency Saliency via MSE-Preservation Soft-Masks10 Jul 2026
- 2026Does Aurora Encode Atmospheric Structure? Latent Regime Analysis and Attribution24 Jun 2026
- 2026Interpretability Without Tradeoffs: Disentangling Polysemanticity At Equal Predictive Performance29 May 2026
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainability20 Apr 2026
- 2026Learn to Rank: Visual Attribution by Learning Importance Ranking7 Apr 2026
- 2026DAVE: Distribution-aware Attribution via ViT Gradient Decomposition6 Feb 2026
- 2025TRANSPORTER: Transferring Visual Semantics from VLM Manifolds23 Nov 2025
12 newest of 25 All 25 (JSON)