mlsanityData to 7 Oct 2026

Prompt-CAM: Making Vision Transformers Interpretable for Fine-Grained Analysis

arXiv 2501.09333 ↗First posted 16 Jan 2025cs.CV cs.AIcited by 12

Not on the map. Why?

Abstract (arXiv)

We present a simple approach to make pre-trained Vision Transformers (ViTs) interpretable for fine-grained analysis, aiming to identify and localize the traits that distinguish visually similar categories, such as bird species. Pre-trained ViTs, such as DINO, have demonstrated remarkable capabilities in extracting localized, discriminative features. However, saliency maps like Grad-CAM often fail to identify these traits, producing blurred, coarse heatmaps that highlight entire objects instead. We propose a novel approach, Prompt Class Attention Map (Prompt-CAM), to address this limitation. Prompt-CAM learns class-specific prompts for a pre-trained ViT and uses the corresponding outputs for classification. To correctly classify an image, the true-class prompt must attend to unique image patches not present in other classes' images (i.e., traits). As a result, the true class's multi-head attention maps reveal traits and their locations. Implementation-wise, Prompt-CAM is almost a ``free lunch,'' requiring only a modification to the prediction head of Visual Prompt Tuning (VPT). This makes Prompt-CAM easy to train and apply, in stark contrast to other interpretable methods that require designing specific models and training processes. Extensive empirical studies on a dozen datasets from various domains (e.g., birds, fishes, insects, fungi, flowers, food, and cars) validate the superior interpretation capability of Prompt-CAM. The source code and demo are available at https://github.com/Imageomics/Prompt_CAM.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 36 of its 50 references that are in the map. First posted on arXiv 16 Jan 2025.

Builds on

36 of 50 references.

References · 36

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2023Visual Instruction Tuningcited by 7,792
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  7. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  8. 2015Learning Deep Features for Discriminative Localizationcited by 2,430
  9. 2021Learning to Prompt for Vision-Language Modelscited by 2,269
  10. 2022Visual Prompt Tuningcited by 1,674
  11. 2023Vision Transformers Need Registerscited by 844
  12. 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 825
24 more
  1. 2020Quantifying Attention Flow in Transformerscited by 759
  2. 2018This Looks Like That: Deep Learning for Interpretable Image Recognitioncited by 731
  3. 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
  4. 2019Score-CAM: Score-Weighted Visual Explanations for Convolutional Neural Networkscited by 575
  5. 2023Emergent Correspondence from Image Diffusioncited by 437
  6. 2023RemoteCLIP: A Vision Language Foundation Model for Remote Sensingcited by 357
  7. 2020Neural Prototype Trees for Interpretable Fine-grained Image Recognitioncited by 213
  8. 2020Eigen-CAM: Class Activation Map using Principal Componentscited by 188
  9. 2021Benchmarking Representation Learning for Natural World Image Collectionscited by 167
  10. 2023BioCLIP: A Vision Foundation Model for the Tree of Lifecited by 159
  11. 2022Multi-class Token Transformer for Weakly Supervised Semantic Segmentationcited by 138
  12. 2021TransFG: A Transformer Architecture for Fine-grained Recognitioncited by 131
  13. 2021Query2Label: A Simple Transformer Way to Multi-Label Classificationcited by 126
  14. 2022Dual Cross-Attention Learning for Fine-Grained Visual Categorization and Object Re-Identificationcited by 78
  15. 2022ProtoPFormer: Concentrating on Prototypical Parts in Vision Transformers for Interpretable Image Recognitioncited by 63
  16. 2022Visual Query Tuning: Towards Effective Usage of Intermediate Representations for Parameter and Memory Efficient Transfer Learningcited by 57
  17. 2023Robust Learning with Progressive Data Expansion Against Spurious Correlationcited by 39
  18. 2023This Looks Like Those: Illuminating Prototypical Concepts Using Multiple Visualizationscited by 36
  19. 2022TransCAM: Transformer Attention-based CAM Refinement for Weakly Supervised Semantic Segmentationcited by 26
  20. 2024Fine-Tuning is Fine, if Calibratedcited by 24
  21. 2023A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysiscited by 15
  22. 2023Explainability of Vision Transformers: A Comprehensive Review and New Perspectivescited by 12
  23. 2024Fish-Vista: A Multi-Purpose Dataset for Understanding & Identification of Traits from Imagescited by 9
  24. 2023DreamCreature: Crafting Photorealistic Virtual Creatures from Imaginationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 6.

12 papers.