arXiv:2608.12299cs.CVAug 2026

Manuscript Offprint

arXiv:2608.12299

Class Activation Mapping in Explainable Computer Vision: A Method-Centered Review of CNN, Transformer, and Foundation-Model-Era Visual Explanations

AmirHossein Eshghi, Hamid Saadatfar, Seyyed Ali Hoseini, AmirMohsen Eshghi, Siavash Arjomand Bigdel

Abstract

Class activation mapping (CAM) is one of the most widely used visual explanation families in explainable artificial intelligence. Its purpose is intuitive: it converts internal model evidence into a heatmap that highlights the image regions, convolutional channels, tokens, or patches that support a target class or concept. Since the first CAM formulation in 2016, the field has moved far beyond global-average-pooled CNN classifiers. CAM-style methods now include gradient-based post-hoc explanations, gradient-free score and ablation methods, high-resolution upscaling, weakly supervised localization and segmentation, transformer token attribution, causal and debiasing methods, and foundation-model-era approaches that use CLIP, DINO, SAM, or feature-distribution comparisons. This review synthesizes a strict corpus of 57 method-centered papers published from 2016 onward. The paper develops a taxonomy that separates methods by attribution mechanism, architectural dependence, and evaluation objective. It then reviews gradient-based CAMs, recent and hybrid CAM-style methods, and model-based or architecture-aware methods. Across the corpus, the main trend is clear: the field is shifting from explaining one class score in one low-resolution CNN layer toward comparative, multi-layer, probabilistic, token-aware, and foundation-model-aware explanations. At the same time, evaluation remains fragmented. Faithfulness, localization, robustness, computational cost, and human trust are often measured with different protocols. The review therefore emphasizes not only what each method contributes, but also which gap it leaves open and which later methods attempt to close that gap.

Keywords: Class activation map, explainable AI, visual explanation, CNN, Vision Transformer

1. Introduction

Deep visual models have become central to image classification, segmentation, medical imaging, autonomous perception, industrial inspection, and many other decision systems. Their success comes from the ability to learn layered visual representations, but the same layered representation makes their decisions hard to interpret. In high-stakes settings, a correct class label is not enough. A user also needs to know whether the model used meaningful evidence, whether it relied on a background shortcut, and whether its reasoning is stable under changes in the image. CAM-style methods address this problem by producing visual evidence maps. A heatmap is not a complete explanation of a neural network, but it gives a compact and human-readable view of where the model looked when it produced a target output.

The original CAM paper showed that a classification-trained CNN can be made localizable when global average pooling connects spatial feature maps to class scores [1]. Grad-CAM then made the idea more general by using target-class gradients, so that CAM-like maps could be generated for ordinary CNN classifiers and even CNN-based multimodal models [2]. This shift changed CAM from a special architectural property into a practical post-hoc explanation tool. The field then expanded in several directions. Some methods refined gradient weighting to improve object coverage [3], while others avoided gradients and measured channel importance through forward score changes or ablations [8], [9]. A separate stream used CAMs as seeds for weakly supervised localization and segmentation, where the goal is not only to explain a model but also to train a downstream dense predictor [4]-[7], [11]. More recent work extends CAM-style attribution to transformers, class tokens, patch tokens, visual prompts, CLIP prompts, DINO affinity graphs, and SAM-generated masks [30]-[33], [41]-[43], [47]-[50].

This review is method-centered. It does not include papers that merely use Grad-CAM as a visualization figure in an application study. Instead, a paper must generate, refine, evaluate, or theoretically analyze a CAM-style map. This scope is important because CAM is now used in many application papers, but application-only usage does not necessarily change the method. The contribution of this review is to organize the method literature into a coherent development story: from CNN-specific localization, to gradient and score-based attribution, to high-resolution and causal refinements, to transformer and foundation-model-era explanations.

The review has four goals. First, it defines a reproducible search and inclusion protocol for a strict corpus of 57 papers. Second, it clarifies the main technical terms and evaluation metrics used in CAM research. Third, it develops a taxonomy that separates gradient-based, gradient-free, hybrid, high-resolution, token-level, foundation-model-era, and architecture-aware methods. Fourth, it compares representative results where the corpus reports compatible metrics on common datasets. Because CAM evaluation is not standardized, the quantitative figures in this review are deliberately limited to values that are directly reported in the included papers and are interpreted with their protocol constraints.

References (57)