BSED: Baseline Shapley-Based Explainable Detector

Michihiro Kuroki, Toshihiko Yamasaki · DOI

Abstract

Object detection models often function as "black boxes," making it difficult to understand the reasoning behind their classification and localization decisions. This paper introduces BSED (Baseline Shapley-based Explainable Detector), a novel framework that applies game-theoretic rigor to object detection explanations. By utilizing Baseline Shapley values and a multi-layer approximation technique, BSED generates saliency maps that are theoretically valid, model-agnostic, and robust to hyperparameter variations. Experimental results on MS COCO and PASCAL VOC demonstrate that BSED outperforms existing methods like D-RISE and Grad-CAM in both quantitative metrics and human interpretability.

Introduction

While Explainable AI (XAI) has seen significant progress in image classification, object detection presents a unique challenge: an explanation must account for both what an object is and where it is located. Existing saliency-based methods often lack theoretical grounding, failing to satisfy mathematical axioms that ensure an explanation is truly representative of a model's output. Furthermore, many current techniques are highly sensitive to hyperparameters, such as masking probabilities, which can lead to inconsistent or misleading results.

BSED addresses these issues by grounding explanations in the concept of Shapley values—a method from game theory designed to fairly distribute a total "payout" (the model's confidence score) among "players" (individual pixels).

Methodology

BSED is built upon Baseline Shapley values, which calculate a pixel's contribution by comparing the original image against a neutral "baseline" (e.g., a black image). Because calculating exact Shapley values is computationally prohibitive ($O(2^N)$), BSED employs a Multi-Layer Approximation. This approach groups subsets into $K$ layers based on the number of active pixels and uses Monte-Carlo sampling within those layers to capture features at multiple scales.

Comparison of BSED with other XAI methods like E2X, CRP, D-RISE, and Grad-CAM.

To remain model-agnostic, BSED utilizes a score function that combines classification confidence with the Intersection over Union (IoU) of the predicted bounding box. This ensures the method can be applied to any detector architecture, including YOLO and Faster R-CNN.

Key Insights and Results

Axiomatic Validity and Debugging

By satisfying the Efficiency and Dummy axioms, BSED ensures that the sum of all pixel importance scores equals the total prediction score and that non-contributing pixels receive zero attribution. A unique advantage of BSED is its ability to identify negative attribution—pixels that actively confuse the model. The authors demonstrated that masking these negative-attribution pixels can actually correct model misclassifications.

Parameter Robustness

A significant drawback of existing methods like D-RISE is their sensitivity to the masking probability parameter ($p$). As shown in the comparative analysis, BSED's multi-layer sampling provides a "set-and-forget" solution that remains consistent across different objects and detectors, whereas D-RISE's output can vary wildly depending on the chosen $p$ value.

Visualizing the impact of masking probability (p) on saliency maps; BSED maintains consistency where others fluctuate.

Performance Benchmarks

BSED was evaluated on 10% of the validation splits for MS COCO and PASCAL VOC. It achieved superior scores in the Energy-based Pointing Game (EPG) (0.244 vs. 0.205 for D-RISE on COCO) and showed significantly lower efficiency errors. In a user study involving 20 participants, 54.8% preferred BSED’s explanations for their clarity and lack of noise, compared to 25.4% for D-RISE.

Conclusion

BSED provides a mathematically rigorous and robust framework for explaining object detection. While the computational cost remains higher than simpler gradient-based methods—taking approximately 174 seconds per saliency map on a V100 GPU—its reliability and theoretical consistency make it a powerful tool for model auditing. Future work will focus on optimizing processing speeds and extending the framework to 3D point cloud detection.

Summary updated

BibTeX
@article{kuroki2024bsed,
  author = {Michihiro Kuroki and Toshihiko Yamasaki},
  title = {{BSED: Baseline Shapley-Based Explainable Detector}},
  journal = {IEEE Access},
  year = {2024},
  doi = {10.1109/access.2024.3391424},
}
Figure