厘清ViT模型中Grad-CAM方法的多种实现方式及其潜在问题
Grad-CAM for Vision Transformers: A Systematic Taxonomy and Audit of Methodological Ambiguity in Explainable AI

- 构建ViT Grad-CAM的分类体系,明确特征位置与梯度目标选择
- 分析550篇论文发现175篇存在方法描述不完整的问题
- 提醒研究者注意可复现性与解释力,避免盲目套用传统方法
梯度加权类激活映射(Grad-CAM)广泛用于可视化模型决策,但其最初为卷积神经网络设计,依赖清晰的空间特征图与通道结构。视觉变换器(ViT)以标记、注意力、残差流和多模态交互表示图像,缺乏相同结构。本文对超过550篇论文进行系统检索,识别出175篇将Grad-CAM或相关方法应用于ViT的研究。发现多数论文未提供完整的数学推导或实现细节。为此,提出一个描述性分类体系,明确定义特征位置、梯度目标、空间重构步骤与聚合方式等关键选择。该分类不推荐单一方法,旨在揭示当前实践中存在的隐含假设。研究表明,将Grad-CAM直接推广至ViT常被视为理所当然,实则涉及非平凡选择,影响方法严谨性、可复现性与解释可信度。
原文摘要 · Abstract (English)
Gradient-weighted Class Activation Mapping (Grad-CAM) is widely used to visualize model decisions, but it was originally formulated for convolutional neural networks, where spatial feature maps and channel dimensions have clear architectural meanings. Vision Transformers (ViTs) do not provide the same structure, instead representing images through tokens, attention, residual streams, and multimodal interactions. This paper presents a systematic taxonomy and literature audit of how Grad-CAM and related methods are adapted, justified, and reported for ViT-based architectures. From an initial search of more than 550 papers, we identify 175 papers that apply Grad-CAM or Grad-CAM-adjacent methods to ViTs. We find that most papers do not provide a full mathematical or implementation-level account of how Grad-CAM is adapted to transformer representations. To characterize this gap, we introduce a descriptive taxonomy of ViT Grad-CAM adaptations that makes explicit the feature locations, gradient targets, spatial reconstruction steps, and aggregation choices that are often left implicit. This taxonomy is not intended to prescribe a single correct adaptation, but to clarify the range of methodological choices being made. The study shows that Grad-CAM on ViTs is often treated as a trivial extension of CNN-based Grad-CAM, despite requiring nontrivial choices that affect rigor, reproducibility, and interpretation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。