Mitigating the Black-Box Problem with CAM in Classification, Detection, and Segmentation
Abstract
Deep visual models have achieved strong results in image classification, object detection, and image segmentation. Yet the basis of their internal decisions is still hard to observe directly. Background interference, reliance on local textures, and limited object coverage remain common problems. Class Activation Mapping (CAM) and related methods use heat maps to show class-related spatial responses. These methods can verify discriminative evidence in classification, generate location cues in detection, and build pseudo labels in segmentation. This paper examines relevant methods and representative results in these three tasks. Existing studies have improved faithfulness, object coverage, box-level localisation, and segmentation accuracy. Yet fragmented responses, limited object coverage, and blurred boundaries still remain. CAM has moved from visual explanation to localisation and segmentation pipelines. It therefore has practical value for mitigating the black-box problem in visual models. This paper aims to explore the development and application of interpretability methods in visual tasks, revealing their potential to improve model transparency and practicality by reviewing relevant research. Studies show that, despite certain limitations, these methods are of significant value in driving visual models towards greater reliability and understandability.
References
- J. R. Lee, S. Kim, I. Park, T. Eo, D. Hwang, Relevance-CAM: Your model already knows where to look, in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (2021)
- P.-T. Jiang, C.-B. Zhang, Q. Hou, M.-M. Cheng, Y. Wei, LayerCAM: Exploring hierarchical class activation maps for localization. IEEE Trans. Image Process. 30, 5875–5888 (2021)
- W. Gao, F. Wan, X. Pan, Z. Peng, Q. Tian, Z. Han, B. Zhou, Q. Ye, TS-CAM: Token Semantic Coupled Attention Map for Weakly Supervised Object Localization. CoRR abs/2103.14862 (2021)
- H. Jung, Y. Oh, Towards better explanations of class activation mapping. CoRR abs/2102.05228 (2021)
- T. F. Chowdhury, K. Liao, V. M. H. Phan, M.-S. To, Y. Xie, K. Hung, D. Ross, A. van den Hengel, J. W. Verjans, Z. Liao, CAPE: CAM as a probabilistic ensemble for enhanced DNN interpretation. CoRR abs/2404.02388 (2024)
- Y. Yoshikawa, T. Iwata, Explanation-based training with differentiable insertion/deletion metric-aware regularizers. CoRR abs/2310.12553 (2023)
- Z. Zhang, J. Gu, Z. Zhang, K. S. Mehrab, C. V. Stewart, T. Berger-Wolf, Y. Su, W.-L. Chao, Finer-CAM: Spotting the difference reveals finer details for visual explanation. CoRR abs/2501.11309 (2025)
- A. Chowdhury, D. Paul, Z. Mai, J. Gu, Z. Zhang, K. S. Mehrab, E. Campolongo, D. Rubenstein, C. Stewart, A. Karpatne, T. Berger-Wolf, Y. Su, W.-L. Chao, Prompt-CAM: Making vision transformers interpretable for fine-grained analysis. CoRR abs/2501.09333 (2025)
- Z. Chen, Q. Sun, Extracting class activation maps from non-discriminative features as well. CoRR abs/2303.10334 (2023)
- B. Dong, Z. Huang, Y. Guo, Q. Wang, Z. Niu, W. Zuo, Boosting weakly supervised object detection via learning bounding box adjusters. CoRR abs/2108.01499 (2021)
- L. Sui, C.-L. Zhang, J. Wu, Salvage of supervision in weakly supervised object detection and segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 45, 10394–10408 (2023)
- J. Xu, J. Hou, Y. Zhang, R. Feng, R.-W. Zhao, T. Zhang, X. Lu, S. Gao, CREAM: Weakly supervised object localization via class re-activation mapping. CoRR abs/2205.13922 (2022)
- J. Lee, E. Kim, S. Yoon, Anti-adversarially manipulated attributions for weakly and semi-supervised semantic segmentation. CoRR abs/2103.08896 (2021)
- L. Xu, W. Ouyang, M. Bennamoun, F. Boussaid, D. Xu, Multi-class token transformer for weakly supervised semantic segmentation. CoRR abs/2203.02891 (2022)
- F. Tang, Z. Xu, Z. Qu, W. Feng, X. Jiang, Z. Ge, Hunting attributes: Context prototype-aware learning for weakly supervised semantic segmentation. CoRR abs/2403.07630 (2024)