Fast Explanation Using Shapley Value for Object Detection

Michihiro Kuroki, Toshihiko YamasakiIEEE Access 2024 · DOI

Introduction

In the field of Explainable AI (XAI), saliency maps serve as a critical tool for interpreting model decisions by highlighting influential pixels. However, object detection introduces a layer of complexity absent in standard classification: the model must justify both the identity and the precise location of an object. Traditional methods typically fall into two categories: fast but imprecise gradient-based methods (e.g., Grad-CAM) or accurate but computationally prohibitive perturbation-based methods (e.g., D-RISE, KernelSHAP).

The FSOD (Fast explanation using Shapley value for Object Detection) framework addresses this trade-off. By training a dedicated explainer model to estimate Shapley values—the gold standard for fair feature attribution—FSOD delivers high-fidelity explanations at real-time speeds exceeding 60 FPS.

Methodology

The core of FSOD is the transition from per-image computation to amortized estimation. Instead of calculating Shapley values from scratch for every detection (an NP-hard problem), the authors train a UNet-style neural network to predict these values in a single forward pass.

Key Technical Components

  • Explainer Architecture: A UNet-style model that processes feature maps directly from the object detector’s backbone. This ensures the explainer utilizes the same internal representations as the primary model.
  • Detection-Specific Value Function: To account for localization, the value function incorporates a "detection score" derived from classification probability, objectness score, and the Intersection over Union (IoU) between the predicted and target bounding boxes.
  • Query Maps: To handle multi-object images, a binary mask of the target bounding box (a "Query Map") directs the explainer to justify a specific detection.

Experimental Evaluation

The framework was evaluated on the MS COCO and Pascal VOC datasets using YOLOv5s as the primary detector, with additional testing on YOLOv3 and Faster R-CNN.

Performance and Visual Fidelity

FSOD demonstrates a significant leap in both speed and accuracy. On a Tesla V100 GPU, it achieved 61.85 FPS on COCO, compared to the 0.02 FPS of D-RISE. Quantitatively, FSOD outperformed competitors on the Energy-based Pointing Game (EPG), scoring 0.791 (vs. 0.729 for SS-GradCAM).

Figure 1: Comparison of saliency maps and inference times across various XAI methods. FSOD provides high-quality heatmaps that align closely with object boundaries at significantly higher speeds than other game-theoretic methods.

As shown in Figure 1, FSOD produces heatmaps that tightly contour the target objects (such as cars or zebras), avoiding the blurry "blobs" characteristic of gradient-based methods while maintaining real-time performance.

Discussion and Future Work

The primary innovation of FSOD lies in moving the heavy computational burden of Shapley value estimation to a one-time training phase. While this introduces initial training overhead and requires a specific explainer for each detector architecture, the resulting real-time capability is essential for safety-critical applications like autonomous driving. Future research aims to extend this framework to 3D object detection in point clouds and other complex robotic perception tasks.

Summary updated

BibTeX
@article{kuroki2024fast,
  author = {Michihiro Kuroki and Toshihiko Yamasaki},
  title = {{Fast Explanation Using Shapley Value for Object Detection}},
  journal = {IEEE Access},
  year = {2024},
  doi = {10.1109/access.2024.3369890},
}
Figure