Papers › Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization
Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization
Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, Dhruv Batra
We propose a technique for producing "visual explanations" for decisions from a large class of CNN-based models, making them more transparent. Our approach - Gradient-weighted Class Activation Mapping (Grad-CAM), uses the gradients of any target concept, flowing into the final convolutional layer to produce a coarse localization map highlighting important regions in the image for predicting the concept. Grad-CAM is applicable to a wide variety of CNN model-families: (1) CNNs with fully-connected layers, (2) CNNs used for structured outputs, (3) CNNs used in tasks with multimodal inputs or reinforcement learning, without any architectural changes or re-training. We combine Grad-CAM with fine-grained visualizations to create a high-resolution class-discriminative visualization and apply it to off-the-shelf image classification, captioning, and visual question answering (VQA) models, including ResNet-based architectures. In the context of image classification models, our visualizations (a) lend insights into their failure modes, (b) are robust to adversarial images, (c) outperform previous methods on localization, (d) are more faithful to the underlying model and (e) help achieve generalization by identifying dataset bias. For captioning and VQA, we show that even non-attention based models can localize inputs. We devise a way to identify important neurons through Grad-CAM and combine it with neuron names to provide textual explanations for model decisions. Finally, we design and conduct human studies to measure if Grad-CAM helps users establish appropriate trust in predictions from models and show that Grad-CAM helps untrained users successfully discern a 'stronger' nodel from a 'weaker' one even when both make identical predictions. Our code is available at https://github.com/ramprs/grad-cam/, along with a demo at http://gradcam.cloudcv.org, and a video at youtu.be/COjUB9Izk6E.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1610.02391")
Code
Syntology Ran 79 of 141 code samples harvested from 62 repositories linked to this paper; 62 have no recorded run. Of those that ran: 5 ran · honoured contract; 4 ran · violated contract; 19 ran · our draft was wrong; 10 ran · fixture could not drive it; 41 ran with no contract checked.
By repository: community (archive-listed): 141 samples from 62 repositories, 79 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
126 repositories listed; official and paper-mentioned ones first.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
141 samples harvested; 79 ran; 5 honoured the contract we drafted; 62 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 68 of the 141 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 62 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
099574e8240176e2 · report
b40654fd28e4f6f7 · report
ccbf7e877ee30c75 · report
2c487f5bd7a8571c · report
8f0d006a8f574739 · report
ba9329f64192b8be · report
10d20b57109d9ae7 · report
89dd77c495cb7992 · report
07c7c47cddac61e9 · report
c1454f1aedec4ea7 · report
fea7face990c0028 · report
171107b0fabeabec · report
4485b0cfe81a119d · report
3c3330e2987470a0 · report
7b7f3def3eefc7ba · report
87c8a68573192f7d · report
79d43280865942df · report
8d916093e389e03d · report
ce5d79c87df1bb90 · report
adb4a049c6347e37 · report
c82843c1e2f6fb2d · report
c62735404ddccf93 · report
959290cf8e14b7e5 · report
fa8c8b570257fbdc · report
df5909def3af773a · report
6d284ca43a9b5dd9 · report
8fb5d356c50f1968 · report
ec189ee1d711ec6d · report
9184359e1be56200 · report
a38a20a9c992fde8 · report
1027db430e6c0383 · report
efd3cde45d4d1d95 · report
537d0382e6ee2d24 · report
f9557c99ffcc4fe4 · report
11b36dd0fac78bfe · report
66d0839a1bc10905 · report
163c1dfc0dabe49e · report
31e1dad8a599d167 · report
9a94fa7ebd53e4ca · report
91be23c9a93de964 · report
d07cabecb23b2d3d · report
76f79dc2ac020f54 · report
46de4ec745801979 · report
d9def42110729a85 · report
fac5364e2f53c6db · report
c7da5b997db565f5 · report
672d3d84a89bbafa · report
d62f440cb30418f7 · report
c7177db10d417c6e · report
949ba457479a122e · report
18f9737b8f4e080c · report
3cc30f5dcbd33349 · report
caa80e41718ce829 · report
16e63fbe599b4a75 · report
8d12957f8afb4dcb · report
0306bc110a8b2a03 · report
19a116255b06f8a1 · report
5b31bf1776aa901d · report
327e3b8861a53d4b · report
15481b1a0a8d245d · report
42e0d688dc9614a2 · report
dceb74c98321af3e · report
ad4a51630c813d4e · report
bc79f9c89fe2a0e8 · report
9ca23e2b37a9d568 · report
f78acd03909de588 · report
9e57fb139056545a · report
83420377e1e6044b · report
62a282ebcd0500de · report
d8a8cbb220a89d3b · report
0d65ade2caf5515e · report
8f036bac02d82603 · report
d222273917d57ea5 · report
b4ffc7174f63b5d9 · report
cd9e431963bd28ca · report
9a37dad461d6891c · report
8820bf3ad72eb31a · report
a4483e74644c312f · report
3e3e7c2d436361ca · report
f13b995ab6e30681 · report
24a31f835a319481 · report
9300fa71da6a03fa · report
e692d2cedf56216e · report
665f1520161112d2 · report
dc52d533c24ef628 · report
6f561af09324b8fb · report
382055e6ef0fedbf · report
e9de7a3289123f77 · report
679d8676d502e4de · report
9ce6cf59476c6c8b · report
44f7a72f5709196e · report
47815a66a7e160b3 · report
d537686b6402f796 · report
ab942d0723978a68 · report
57fee62c82c634d3 · report
825f917a5edf54ad · report
b34263130eb4f785 · report
fb71f90325544718 · report
2243d8bf49cc9500 · report
d1c15f6a6b61a478 · report
0880f9ea06216a02 · report
71daed23b5edccf2 · report
502d396d3da2b967 · report
34899edb396de8d6 · report
2b9e6b082f32f0e8 · report
14b78cd49b30e9b5 · report
a53cc09af05003e9 · report
4774c2dcc0381563 · report
f016cebab14589d7 · report
c183679e4cd0a619 · report
2fbccabf7ff27c05 · report
4320694e1b3e3241 · report
56c990d7068a497f · report
1a6f1f8de12c9f86 · report
bbc4862b732fda73 · report
354e2980d46c1282 · report
c7193bdfe13a5d2e · report
825c1306ca267588 · report
39b8f42b1189ea43 · report
626b0ba01a785805 · report
4c51e6a7cff5bc6b · report
b9c20be9032c318f · report
442717ce6358aea5 · report
57910e9462b8855d · report
320d1f9e6a5589c5 · report
74837100f214fb24 · report
63b6fe40629c7060 · report
81a6004e48cfe604 · report
04dd49bbb2ab37e1 · report
5e94751fb18d5b67 · report
059960c704be7137 · report
f404571968dabfc8 · report
b0915cad43040ebe · report
1f37f9d4f3c84757 · report
44462de175b9d5a3 · report
c4795a3ee3fc2052 · report
0ff28a091cfe971f · report
0443273057a21a98 · report
fdc705853f19b777 · report
84f8d38f0c5805fd · report
5d1eaa0429e5f67d · report
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Image Attribution | CUB-200-2011 | Grad-CAM | Deletion AUC score (ResNet-101) | 0.0810 | #2 of 8 | Archive leaderboard | report |
| Image Attribution | CUB-200-2011 | Grad-CAM | Insertion AUC score (ResNet-101) | 0.7224 | #2 of 8 | Archive leaderboard | report |
| Image Attribution | CelebA | Grad-CAM | Deletion AUC score (ArcFace ResNet-101) | 0.2865 | #7 of 8 | Archive leaderboard | report |
| Image Attribution | CelebA | Grad-CAM | Insertion AUC score (ArcFace ResNet-101) | 0.3721 | #7 of 8 | Archive leaderboard | report |
| Image Attribution | VGGFace2 | Grad-CAM | Deletion AUC score (ArcFace ResNet-101) | 0.3103 | #8 of 8 | Archive leaderboard | report |
| Image Attribution | VGGFace2 | Grad-CAM | Insertion AUC score (ArcFace ResNet-101) | 0.4733 | #8 of 8 | Archive leaderboard | report |
| Interpretability Techniques for Deep Learning | CelebA | Grad-CAM | Insertion AUC score | 0.3721 | #6 of 7 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections