NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Black-box Explanation of Object Detectors via Saliency Maps

Vitali Petsiuk, Rajiv Jain, Varun Manjunatha, Vlad I. Morariu, Ashutosh Mehra, Vicente Ordonez, Kate Saenko

Abstract We propose D-RISE, a method for generating visual explanations for the predictions of object detectors. Utilizing a similarity metric that accounts for both localization and categorization aspects of object detection allows our method to produce saliency maps that show image areas that most affect the prediction. D-RISE is a "black-box" approach, requiring only access to the inputs and outputs of an object detector. Compared to gradient-based methods, D-RISE is more general, agnostic to the detector architecture, and does not require knowledge of internal model weights. We demonstrate its application on one-stage (YOLOv3) and two-stage (Faster-RCNN) detectors, highlighting how it reveals context utilization and learned biases.

Introduction

Deep neural networks are notoriously opaque. While they excel at identifying objects in images, understanding why a model thinks a specific cluster of pixels is a "sink" or a "laptop" remains a challenge. This is especially true for object detectors, which must solve two problems simultaneously: classification (what is it?) and localization (where is it?).

Existing "explainability" tools, like Grad-CAM, were primarily designed for image classification and typically require access to internal gradients. These "white-box" methods often struggle with the dual nature of object detection. An object detector doesn't just provide a label; it provides a bounding box. Standard saliency methods often fail to explain why a box is shaped a certain way or how the model uses surrounding context to make a prediction. As models are increasingly served via APIs or kept proprietary, there is a growing need for "black-box" tools that operate solely on inputs and outputs.

Methodology: The D-RISE Approach

D-RISE (Detector Randomized Input Sampling for Explanation) builds on the concept of randomized input sampling to generate saliency maps. The process is model-agnostic and follows a clear pipeline:

The D-RISE pipeline: Random masks are applied to the input, similarity scores are calculated for detection proposals, and a weighted sum produces the final saliency map.
  1. Random Masking and Perturbation: Thousands of random, low-resolution binary masks are generated, upsampled, and applied to the input image. This creates a set of "perturbed" images where different spatial regions are occluded.
  2. Observation: The object detector processes all masked images.
  3. Similarity Scoring: For every masked image, D-RISE identifies the detection proposal most similar to the original "target" detection. The similarity score ($S$) is the product of three components: localization ($s_L$), categorization ($s_P$), and objectness ($s_O$).
  4. Weighted Sum: A final saliency map is produced by taking a weighted sum of all masks, using the similarity scores as weights. Pixels visible when the model was most accurate and confident receive the highest saliency.

Key Insights and Results

The researchers evaluated D-RISE using the MS-COCO dataset against YOLOv3 and Faster R-CNN. The resulting saliency maps provided several critical insights into detector behavior.

Visual explanations generated by D-RISE for various objects, highlighting the model's reliance on context (e.g., ski poles for 'skis') and discriminative features (e.g., logos for 'laptop').

Context and Discriminative Regions

D-RISE reveals that detectors often look outside the bounding box to confirm a detection. For example, to detect "skis," the model often focuses on the ski poles. To find a "sink," it looks for the faucet. Furthermore, the model often prioritizes specific sub-regions; for a "laptop," the model might focus almost entirely on a brand logo rather than the screen or keyboard.

Performance Metrics

D-RISE significantly outperformed traditional classification-based saliency methods on several benchmarks:

  • Pointing Game: This measures if the highest saliency point falls within the ground-truth mask. D-RISE achieved a score of 0.9656 on YOLOv3, compared to just 0.5232 for Grad-CAM.
  • Deletion/Insertion: These metrics track how model confidence changes as salient pixels are removed or added. D-RISE showed much sharper curves than baselines, indicating its heatmaps are more precisely aligned with the model's internal logic.

Debugging and Bias Detection

The method can also be used to audit models for "Clever Hans" effects. By introducing artificial biases (e.g., a blue dot associated with a specific class), the authors showed that D-RISE successfully highlights these spurious correlations. It can also explain failures by showing if a model "saw" the right features but failed during final filtering stages like non-maximum suppression.

Conclusion

D-RISE provides a robust, black-box framework for explaining object detection. While computationally intensive—requiring thousands of model passes per image—it offers a level of insight into context and localization that previous methods lacked. Future work aims to optimize mask generation to reduce the computational overhead, making these deep insights more accessible for real-time model auditing.

Summary updated

BibTeX
@inproceedings{petsiuk2021black,
  author = {Vitali Petsiuk and Rajiv Jain and Varun Manjunatha and Vlad I. Morariu and Ashutosh Mehra and Vicente Ordonez and Kate Saenko},
  title = {{Black-box Explanation of Object Detectors via Saliency Maps}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=pawEkTJ8dB},
}
Figure