Class-Discriminative Attention Maps for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Importance estimators are explainability methods that quantify feature importance for deep neural networks (DNN). In vision transformers (ViT), the self-attention mechanism naturally leads to attention maps, which are sometimes interpreted as importance scores that indicate which input features ViT models are focusing on. However, attention maps do not account for signals from downstream tasks. To generate explanations that are sensitive to downstream tasks, we have developed class-discriminative attention maps (CDAM), a gradient-based extension that estimates feature importance with respect to a known class or a latent concept. CDAM scales attention scores by how relevant the corresponding tokens are for the predictions of a classifier head. In addition to targeting the supervised classifier, CDAM can explain an arbitrary concept shared by selected samples by measuring similarity in the latent space of ViT. Additionally, we introduce Smooth CDAM and Integrated CDAM, which average a series of CDAMs with slightly altered tokens. Our quantitative benchmarks include correctness, compactness, and class sensitivity, in comparison to 7 other importance estimators. Vanilla, Smooth, and Integrated CDAM excel across all three benchmarks. In particular, our results suggest that existing importance estimators may not provide sufficient class-sensitivity. We demonstrate the utility of CDAM in medical images by training and explaining malignancy and biomarker prediction models based on lung Computed Tomography (CT) scans. Overall, CDAM is shown to be highly class-discriminative and semantically relevant, while providing compact explanations.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 46 of its 61 references that are in the map. First posted on arXiv 4 Dec 2023.
Builds on
46 of 61 references.
References · 46
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2013Visualizing and Understanding Convolutional Networkscited by 2,290
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,319
- 2018Sanity Checks for Saliency Mapscited by 1,156
34 more
- 2017SmoothGrad: removing noise by adding noisecited by 1,109
- 2020Concept Bottleneck Modelscited by 1,032
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2019Attention is not Explanationcited by 929
- 2023Vision Transformers Need Registerscited by 871
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 838
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2019Attention is not not Explanationcited by 636
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 612
- 2018A Benchmark for Interpretability Methods in Deep Neural Networkscited by 476
- 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 419
- 2019Is Attention Interpretable?cited by 389
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
- 2020Are we done with ImageNet?cited by 333
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
- 2022From Anecdotal Evidence to Quantitative Evaluation Methods: A Systematic Review on Evaluating Explainable AIcited by 302
- 2016Not Just a Black Box: Learning Important Features Through Propagating Activation Differencescited by 297
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2017Real Time Image Saliency for Black Box Classifierscited by 246
- 2018Explainable Prediction of Medical Codes from Clinical Textcited by 234
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
- 2022Revisiting Weakly Supervised Pre-Training of Visual Perception Modelscited by 116
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2017Learning how to explain neural networks: PatternNet and PatternAttributioncited by 84
- 2023The Meta-Evaluation Problem in Explainable AI: Identifying Reliable Estimators with MetaQuantuscited by 37
- 2019Generating Token-Level Explanations for Natural Language Inferencecited by 28
- 2019Concept Saliency Maps to Visualize Relevant Features in Deep Generative Modelscited by 11
- 2023Feature Perturbation Augmentation for Reliable Evaluation of Importance Estimators in Neural Networkscited by 9
- 2022Fidelity of Interpretability Methods and Perturbation Artifacts in Neural Networkscited by 7
- 2023Integration of Radiomics and Tumor Biomarkers in Interpretable Machine Learning Modelscited by 2
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 4.
10 papers.
- 2025Register and [CLS] tokens yield a decoupling of local and global features in large ViTscited by 9
- 2024Faithful and Accurate Self-Attention Attribution for Message Passing Neural Networks via the Computation Tree Viewpointcited by 5
- 2025DINO-MX: A Modular & Flexible Framework for Self-Supervised Learningcited by 2
- 2025Enhancing Vision Transformer Explainability Using Artificial Astrocytescited by 1
- 2025GViT: Representing Images as Gaussians for Visual Recognitioncited by 1
- 2024Adapting Visualization Techniques for Time-Series Anomaly Detection: From Convolutional Neural Networks to Convolutional-Recurrent Neural Networkscited by 0
- 2026What Helps---and What Hurts: Bidirectional Explanations for Vision Transformerscited by 0
- 2026Regularizing Attention Scores with Bootstrappingcited by 0
- 2026DINO-QPM: Adapting Visual Foundation Models for Globally Interpretable Image Classificationcited by 0
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainabilitycited by 0
- 2026Decision-Aware Attention Propagation for Vision Transformer Explainability20 Apr 2026
- 2026DINO-QPM: Adapting Visual Foundation Models for Globally Interpretable Image Classification8 Apr 2026
- 2026Regularizing Attention Scores with Bootstrapping1 Apr 2026
- 2026What Helps---and What Hurts: Bidirectional Explanations for Vision Transformers2 Mar 2026
- 2025DINO-MX: A Modular & Flexible Framework for Self-Supervised Learning3 Nov 2025
- 2025GViT: Representing Images as Gaussians for Visual Recognition30 Jun 2025
- 2025Enhancing Vision Transformer Explainability Using Artificial Astrocytes20 May 2025
- 2025Register and [CLS] tokens yield a decoupling of local and global features in large ViTs9 May 2025
- 2024Adapting Visualization Techniques for Time-Series Anomaly Detection: From Convolutional Neural Networks to Convolutional-Recurrent Neural Networks7 Nov 2024
- 2024Faithful and Accurate Self-Attention Attribution for Message Passing Neural Networks via the Computation Tree Viewpoint7 Jun 2024