Prompt-CAM: Making Vision Transformers Interpretable for Fine-Grained Analysis
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2023Visual Instruction Tuningcited by 7,792
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2015Learning Deep Features for Discriminative Localizationcited by 2,430
- 2021Learning to Prompt for Vision-Language Modelscited by 2,269
- 2022Visual Prompt Tuningcited by 1,674
- 2023Vision Transformers Need Registerscited by 844
- 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 825
24 more
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2018This Looks Like That: Deep Learning for Interpretable Image Recognitioncited by 731
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2019Score-CAM: Score-Weighted Visual Explanations for Convolutional Neural Networkscited by 575
- 2023Emergent Correspondence from Image Diffusioncited by 437
- 2023RemoteCLIP: A Vision Language Foundation Model for Remote Sensingcited by 357
- 2020Neural Prototype Trees for Interpretable Fine-grained Image Recognitioncited by 213
- 2020Eigen-CAM: Class Activation Map using Principal Componentscited by 188
- 2021Benchmarking Representation Learning for Natural World Image Collectionscited by 167
- 2023BioCLIP: A Vision Foundation Model for the Tree of Lifecited by 159
- 2022Multi-class Token Transformer for Weakly Supervised Semantic Segmentationcited by 138
- 2021TransFG: A Transformer Architecture for Fine-grained Recognitioncited by 131
- 2021Query2Label: A Simple Transformer Way to Multi-Label Classificationcited by 126
- 2022Dual Cross-Attention Learning for Fine-Grained Visual Categorization and Object Re-Identificationcited by 78
- 2022ProtoPFormer: Concentrating on Prototypical Parts in Vision Transformers for Interpretable Image Recognitioncited by 63
- 2022Visual Query Tuning: Towards Effective Usage of Intermediate Representations for Parameter and Memory Efficient Transfer Learningcited by 57
- 2023Robust Learning with Progressive Data Expansion Against Spurious Correlationcited by 39
- 2023This Looks Like Those: Illuminating Prototypical Concepts Using Multiple Visualizationscited by 36
- 2022TransCAM: Transformer Attention-based CAM Refinement for Weakly Supervised Semantic Segmentationcited by 26
- 2024Fine-Tuning is Fine, if Calibratedcited by 24
- 2023A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysiscited by 15
- 2023Explainability of Vision Transformers: A Comprehensive Review and New Perspectivescited by 12
- 2024Fish-Vista: A Multi-Purpose Dataset for Understanding & Identification of Traits from Imagescited by 9
- 2023DreamCreature: Crafting Photorealistic Virtual Creatures from Imaginationcited by 5
Built on by
Citing papers per year: 2025: 6; 2026: 6.
12 papers.
- 2025Visual Instance-aware Prompt Tuningcited by 29
- 2025Communication Efficient Split Learning of ViTs with Attention-based Double Compressioncited by 2
- 2026ERA: Entropy-Guided Visual Token Pruning with Rectified Attention for Efficient MLLMscited by 2
- 2025UI-Styler: Ultrasound Image Style Transfer with Class-Aware Prompts for Cross-Device Diagnosis Using a Frozen Black-Box Inference Networkcited by 1
- 2025Multimodal Attention-Aware Fusion for Diagnosing Distal Myopathy: Evaluating Model Interpretability and Clinician Trustcited by 0
- 2025DPTrack:Directional Kernel-Guided Prompt Learning for Robust Nighttime Aerial Trackingcited by 0
- 2025Supervised Contrastive Machine Unlearning of Background Bias in Sonar Image Classification with Fine-Grained Explainable AIcited by 0
- 2026AVION: Aerial Vision-Language Instruction from Offline Teacher to Prompt-Tuned Networkcited by 0
- 2026Self-supervised pretraining for an iterative image size agnostic vision transformercited by 0
- 2026Subtoken Vision Transformer for Fine-grained Recognitioncited by 0
- 2026Grad-CAM for Vision Transformers: A Systematic Taxonomy and Audit of Methodological Ambiguity in Explainable AIcited by 0
- 2026Class Activation Mapping in Explainable Computer Vision: A Method-Centered Review of CNN, Transformer, and Foundation-Model-Era Visual Explanationscited by 0
- 2026Class Activation Mapping in Explainable Computer Vision: A Method-Centered Review of CNN, Transformer, and Foundation-Model-Era Visual Explanations12 Aug 2026
- 2026Grad-CAM for Vision Transformers: A Systematic Taxonomy and Audit of Methodological Ambiguity in Explainable AI5 Aug 2026
- 2026Subtoken Vision Transformer for Fine-grained Recognition10 Jul 2026
- 2026ERA: Entropy-Guided Visual Token Pruning with Rectified Attention for Efficient MLLMs30 Jun 2026
- 2026Self-supervised pretraining for an iterative image size agnostic vision transformer22 Apr 2026
- 2026AVION: Aerial Vision-Language Instruction from Offline Teacher to Prompt-Tuned Network13 Mar 2026
- 2025Supervised Contrastive Machine Unlearning of Background Bias in Sonar Image Classification with Fine-Grained Explainable AI1 Dec 2025
- 2025UI-Styler: Ultrasound Image Style Transfer with Class-Aware Prompts for Cross-Device Diagnosis Using a Frozen Black-Box Inference Network21 Nov 2025
- 2025DPTrack:Directional Kernel-Guided Prompt Learning for Robust Nighttime Aerial Tracking17 Oct 2025
- 2025Communication Efficient Split Learning of ViTs with Attention-based Double Compression18 Sep 2025
- 2025Multimodal Attention-Aware Fusion for Diagnosing Distal Myopathy: Evaluating Model Interpretability and Clinician Trust2 Aug 2025
- 2025Visual Instance-aware Prompt Tuning10 Jul 2025