Assessing the impact of layer selection on CAM-based explainability for YOLOv8: a study on hand-sketched digital logic circuits
Noha ElMasry, Fahima A. Maghraby, Mohamed Waleed Fakhr
Misr International University · Arab Academy for Science, Technology, and Maritime Transport
Key points
From the paper's conclusion- This study presents a layer-wise ablation analysis of seven CAM techniques—Grad-CAM, Grad-CAM++, HiResCAM, XGrad-CAM, LayerCAM, EigenCAM, and EigenGradCAM—applied to a YOLOv8 detector of hand-sketched digital logic circuits.
Abstract
Abstract Class activation mapping (CAM) techniques improve the interpretability of deep neural networks by highlighting image regions that contribute to model predictions. However, the quality of CAM explanations can vary considerably according to the selected target layer. This study presents a layer-wise ablation analysis of seven CAM techniques—Grad-CAM, Grad-CAM++, HiResCAM, XGrad-CAM, LayerCAM, EigenCAM, and EigenGradCAM—applied to a YOLOv8 detector of hand-sketched digital logic circuits. Explanation quality was evaluated quantitatively using Focus Score, Pointing Game hit rate (PG-Hit), intersection over union (IoU), and Sharpness, supported by qualitative inspection of the generated saliency maps. The results demonstrate that explanation quality depends jointly on the CAM technique and target-layer depth. Within the evaluated dataset and experimental setting, LayerCAM and EigenGradCAM applied to the fused mid-deep configuration $$[9,12,15]$$ produced the most semantically meaningful explanations. Although deeper configurations generally incurred greater computational cost, the $$[9,12,15]$$ configuration achieved a mean latency of approximately 15.5 ms. Under the reported hardware and measurement conditions, this value was below the 33.3-ms processing-time requirement corresponding to 30 frames per second.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- HiRA-CAM: Preserving Fine-Grained Spatial Relevance in Gradient-Based Visual ExplanationsarXiv · 2026
- A comparative evaluation of explainability techniques for image dataScientific Reports · 2025
- How a Model's Architecture and Performance Influences Explainability: A Study of Grad-CAM and CRAFT in CNN-Based Image ClassificationarXiv · 2026
- Winsor-CAM: Human-Tunable Visual Explanations From Deep Networks via Layer-Wise WinsorizationIEEE Transactions on Pattern Analysis and Machine Intelligence · 2026
- DeepCSHAP: Utilizing Shapley Values to Explain Deep Complex-Valued Neural Networks.IEEE transactions on pattern analysis and machine intelligence · 2026
- One Size Doesn't Fit All: Input Adaptive Class Activation Mapping for Improved Visual ExplanationsarXiv · 2026