Score-CAM: Score-Weighted Visual Explanations for Convolutional Neural Networks
Haofan Wang, Zifan Wang, Mengnan Du, Fan Yang, Zijian Zhang, Sirui Ding, Piotr Mardziel, Xia Hu
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/haofanwang/Score-CAMOfficialIn paperpytorch★ 0
- github.com/jacobgil/pytorch-grad-campytorch★ 12,704
- github.com/frgfm/torch-campytorch★ 2,291
- github.com/windstormer/Cfd-CAMpytorch★ 3
- github.com/yiskw713/scorecampytorch★ 0
- github.com/matheushent/score-camtf★ 0
- github.com/tabayashi0117/Score-CAMtf★ 0
- github.com/Jupetus/ExplainableAIpytorch★ 0
- github.com/andreysorokin/scam-netnone★ 0
Abstract
Recently, increasing attention has been drawn to the internal mechanisms of convolutional neural networks, and the reason why the network makes specific decisions. In this paper, we develop a novel post-hoc visual explanation method called Score-CAM based on class activation mapping. Unlike previous class activation mapping based approaches, Score-CAM gets rid of the dependence on gradients by obtaining the weight of each activation map through its forward passing score on target class, the final result is obtained by a linear combination of weights and activation maps. We demonstrate that Score-CAM achieves better visual performance and fairness for interpreting the decision making process. Our approach outperforms previous methods on both recognition and localization tasks, it also passes the sanity check. We also indicate its application as debugging tools. Official code has been released.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| CUB-200-2011 | Score-CAM | Average highest confidence (ResNet-101) | 0.25 | — | Unverified |
| CUB-200-2011 (ResNet-101) | Score-CAM | Average highest confidence | 0.25 | — | Unverified |