Abstract
Deep learning object detectors are often treated as black boxes, making their decision-making processes difficult to interpret. While explainability tools exist for image classifiers, they are often too computationally expensive for multi-object detectors. This paper introduces ANON-ReX (Anonymous Responsibility eXplanations), a framework that explains all detected objects in an image simultaneously. By utilizing aggressive pruning and causal analysis, ANON-ReX achieves a 10x speedup over existing methods, enabling near real-time interpretability for models like YOLO, SSD, and Faster R-CNN.
Introduction
Object detectors, crucial for autonomous systems like self-driving cars, provide both classification and localization. However, understanding why a model places a bounding box around a specific area remains a challenge. Existing black-box tools typically explain one object at a time through repeated image perturbations, leading to prohibitive computational costs as the number of objects increases. ANON-ReX addresses this efficiency gap by shifting to a "single-pass" explanation philosophy, identifying the specific pixels responsible for a detector's output without requiring access to internal model gradients.
Methodology: Simultaneous Explanation
The core innovation of ANON-ReX is its ability to process multiple detections in parallel. Instead of isolating each bounding box as a separate problem, the algorithm masks and unmasks image regions and observes the collective impact on all detections at once.
Causal Responsibility and Pruning
ANON-ReX builds on the ReX causal reasoning framework. It partitions the image and calculates a "degree of responsibility" for each segment based on its necessity for the model's classification. To maintain efficiency, the algorithm employs aggressive pruning, quickly discarding regions that do not contribute to the model's decision. This "strongly rectilinear" approach ensures that explanations remain focused within the relevant bounding boxes, preventing "explanation bleed" from background elements.
Key Insights: Minimal Sufficiency
A significant finding from ANON-ReX is that object detectors often rely on a very small subset of features. For instance, the upper curve of an apple is frequently sufficient for the model to classify it correctly, regardless of other attributes like color or texture.
This insight allows for debugging misclassifications. In one case study, the tool revealed that a fish was misidentified as a person because the model focused on a red patch it interpreted as human hair. By highlighting these specific causal pixels, ANON-ReX acts as a powerful diagnostic tool for developers.
Experimental Results
The researchers evaluated ANON-ReX using the ImageNet-mini dataset across YOLOv8n, SSD, and Faster R-CNN architectures.
- Efficiency: ANON-ReX demonstrated a linear speedup relative to the number of objects. For an image with ten objects, it required 10x fewer queries than traditional methods (e.g., 271 queries vs. 2071 for the baseline ReX).
- Precision: Compared to white-box tools like EigenCam-YOLO, ANON-ReX produced more localized and relevant explanations. While white-box methods often highlighted irrelevant background sections, ANON-ReX consistently identified the specific driving features, such as a branch or a limb.
Conclusion and Future Work
ANON-ReX provides a scalable, model-agnostic solution for explaining object detectors. While its aggressive pruning may occasionally miss the absolute minimal pixel set, the trade-off for near real-time performance is significant. Future research will explore applying this simultaneous explanation logic to more complex tasks like instance segmentation and further refining the granularity of the generated masks.
Summary updated