mlsanityData to 14 Oct 2026

Class-Discriminative Attention Maps for Vision Transformers

arXiv 2312.02364 ↗First posted 4 Dec 2023cs.CV cs.AI cs.LGcited by 10

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  4. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  5. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  6. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  7. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  8. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  9. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  10. 2013Visualizing and Understanding Convolutional Networkscited by 2,290
  11. 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,319
  12. 2018Sanity Checks for Saliency Mapscited by 1,156
34 more
  1. 2017SmoothGrad: removing noise by adding noisecited by 1,109
  2. 2020Concept Bottleneck Modelscited by 1,032
  3. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  4. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
  5. 2019Attention is not Explanationcited by 929
  6. 2023Vision Transformers Need Registerscited by 871
  7. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  8. 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 838
  9. 2020Quantifying Attention Flow in Transformerscited by 775
  10. 2019Attention is not not Explanationcited by 636
  11. 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
  12. 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 612
  13. 2018A Benchmark for Interpretability Methods in Deep Neural Networkscited by 476
  14. 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 419
  15. 2019Is Attention Interpretable?cited by 389
  16. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
  17. 2020Are we done with ImageNet?cited by 333
  18. 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
  19. 2022From Anecdotal Evidence to Quantitative Evaluation Methods: A Systematic Review on Evaluating Explainable AIcited by 302
  20. 2016Not Just a Black Box: Learning Important Features Through Propagating Activation Differencescited by 297
  21. 2021Incorporating Convolution Designs into Visual Transformerscited by 248
  22. 2017Real Time Image Saliency for Black Box Classifierscited by 246
  23. 2018Explainable Prediction of Medical Codes from Clinical Textcited by 234
  24. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
  25. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
  26. 2022Revisiting Weakly Supervised Pre-Training of Visual Perception Modelscited by 116
  27. 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
  28. 2017Learning how to explain neural networks: PatternNet and PatternAttributioncited by 84
  29. 2023The Meta-Evaluation Problem in Explainable AI: Identifying Reliable Estimators with MetaQuantuscited by 37
  30. 2019Generating Token-Level Explanations for Natural Language Inferencecited by 28
  31. 2019Concept Saliency Maps to Visualize Relevant Features in Deep Generative Modelscited by 11
  32. 2023Feature Perturbation Augmentation for Reliable Evaluation of Importance Estimators in Neural Networkscited by 9
  33. 2022Fidelity of Interpretability Methods and Perturbation Artifacts in Neural Networkscited by 7
  34. 2023Integration of Radiomics and Tumor Biomarkers in Interpretable Machine Learning Modelscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 4; 2026: 4.

10 papers.