[Paper Review] Explaining YOLO: Leveraging Grad-CAM to Explain Object Detections
This paper integrates Grad-CAM into YOLO for explainable object detection, generating attribution maps for both objectness and class probability scores. It demonstrates that normalization strategy critically affects interpretation, with dataset-level normalization enabling cross-image comparison and revealing low-confidence false positives that detection-level normalization obscures.
We investigate the problem of explainability for visual object detectors. Specifically, we demonstrate on the example of the YOLO object detector how to integrate Grad-CAM into the model architecture and analyze the results. We show how to compute attribution-based explanations for individual detections and find that the normalization of the results has a great impact on their interpretation.
Motivation & Objective
- Address the lack of explainability methods for visual object detectors, particularly YOLO.
- Enable attribution-based explanations for individual object detections by applying Grad-CAM to YOLO’s detection heads.
- Investigate how normalization of Grad-CAM heatmaps affects interpretability across detections and images.
- Compare explanations for true and false detections to assess model confidence and decision reliability.
- Provide a practical, efficient method for visualizing internal decision scores in YOLO using backpropagated gradients.
Proposed method
- Adapt Grad-CAM to YOLO by identifying neurons in the final convolutional layer of each detection head corresponding to objectness and class probability of a detected bounding box.
- Backpropagate gradients from these neurons to the last feature map of the convolutional filter stack to compute class activation maps.
- Average the weighted activation maps across channels and upsample them to the input image resolution (416×416px) using interpolation.
- Overlay the upsampled heatmaps on the input image with color coding to visualize regions contributing to detection decisions.
- Implement three normalization strategies: detection-level (default), image-level, and dataset-level to enable comparability across detections and images.
- Use non-maximum suppression (NMS) and confidence thresholds to identify and isolate individual detections for explanation.
Experimental results
Research questions
- RQ1How can Grad-CAM be effectively integrated into the YOLO object detection architecture to generate meaningful attribution maps for individual detections?
- RQ2How do different normalization strategies (detection-level, image-level, dataset-level) affect the interpretability and comparability of Grad-CAM explanations across detections?
- RQ3To what extent do Grad-CAM explanations for objectness and class probability differ in their spatial localization and semantic relevance?
- RQ4Can normalized Grad-CAM maps reveal whether a false positive detection arises from high model confidence or uncertainty?
- RQ5How do explanations for true and false detections differ in terms of activation patterns and strength under varying normalization schemes?
Key findings
- Detection-level normalization produces the most visually distinct heatmaps but leads to incomparable activation strengths across different detections and images.
- Image-level normalization enables meaningful comparison of explanations within a single image, revealing relative confidence across multiple detections.
- Dataset-level normalization allows direct comparison of activation strengths across all images in a dataset, making it possible to assess model-wide confidence patterns.
- For a true positive detection of a person, class probability maps activate primarily on the person, while objectness maps activate on all potential object regions, indicating distinct roles in detection.
- For a false positive detection of a truck (misclassified from a red poster), detection-level normalization suggests high confidence, but dataset-level normalization reveals low activation strength, indicating low model confidence.
- The proposed method generates one explanation in approximately half a second, demonstrating efficiency suitable for real-time explainability in applications like autonomous driving.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.