Skip to main content
QUICK REVIEW

[Paper Review] What You See is What You Classify: Black Box Attributions

Steven Stalder, Nathanaël Perraudin|arXiv (Cornell University)|May 23, 2022
Explainable Artificial Intelligence (XAI)Computer Science6 citations
TL;DR

This paper proposes a novel method for generating sharp, class-specific attribution masks for deep image classifiers by training a separate 'Explainer' network to predict saliency masks from a pre-trained, frozen 'Explanandum' classifier. Unlike gradient-based or perturbation-based methods, the Explainer produces precise, boundary-accurate masks in a single forward pass, achieving superior visual and quantitative performance on PASCAL VOC-2007 and COCO-2014 benchmarks.

ABSTRACT

An important step towards explaining deep image classifiers lies in the identification of image regions that contribute to individual class scores in the model's output. However, doing this accurately is a difficult task due to the black-box nature of such networks. Most existing approaches find such attributions either using activations and gradients or by repeatedly perturbing the input. We instead address this challenge by training a second deep network, the Explainer, to predict attributions for a pre-trained black-box classifier, the Explanandum. These attributions are provided in the form of masks that only show the classifier-relevant parts of an image, masking out the rest. Our approach produces sharper and more boundary-precise masks when compared to the saliency maps generated by other methods. Moreover, unlike most existing approaches, ours is capable of directly generating very distinct class-specific masks in a single forward pass. This makes the proposed method very efficient during inference. We show that our attributions are superior to established methods both visually and quantitatively with respect to the PASCAL VOC-2007 and Microsoft COCO-2014 datasets.

Motivation & Objective

  • To address the challenge of explaining black-box deep image classifiers by identifying image regions responsible for specific class predictions.
  • To overcome limitations of existing methods—such as blurry saliency maps from gradient-based approaches or high computational cost from perturbation-based methods.
  • To develop a model-agnostic, efficient, and precise attribution method that generates class-specific masks in a single forward pass.
  • To improve explainability for high-stakes applications like medical imaging and regulatory compliance by providing reliable, visually interpretable attributions.

Proposed method

  • Train a dedicated convolutional neural network, the 'Explainer', to predict dense, class-specific attribution masks for a pre-trained, frozen 'Explanandum' classifier.
  • Use the Explanandum’s output logits and feature maps as supervision signals during training to guide the Explainer in learning which image regions are most relevant for each class.
  • Formulate the attribution task as a supervised meta-learning problem, where the Explainer learns to balance information preservation and deletion based on the Explanandum’s response.
  • Generate masks in a single forward pass during inference, enabling orders-of-magnitude faster inference than perturbation-based methods.
  • Leverage ground truth segmentation maps from PASCAL VOC-2007 and COCO-2014 as supervision for training, with loss functions including IoU, MAE, and Saliency score.
  • Apply a multi-task learning objective that encourages the Explainer to produce masks that are both spatially precise and aligned with the Explanandum’s confidence in each class.

Experimental results

Research questions

  • RQ1Can a learned Explainer network generate sharper and more boundary-precise attribution masks than gradient-based methods like Grad-CAM?
  • RQ2Does the proposed method achieve better quantitative performance on standard benchmarks like PASCAL VOC-2007 and COCO-2014 compared to existing attribution techniques?
  • RQ3Can the Explainer generate distinct, class-specific masks efficiently in a single forward pass, without iterative perturbations?
  • RQ4How does the performance of the Explainer vary across different Explanandum architectures, such as VGG-16 and ResNet-50?
  • RQ5To what extent do the generated masks reflect classifier-relevant features rather than background biases or low-level patterns?

Key findings

  • The proposed method produces significantly sharper and more boundary-precise attribution masks than Grad-CAM and Extremal Perturbations (EP), as demonstrated in visual comparisons on VOC-2007.
  • On the PASCAL VOC-2007 dataset, the Explainer achieves a mean Intersection over Union (IoU) of 0.68 and a Saliency score of 0.82, outperforming baseline methods.
  • On the COCO-2014 dataset, the Explainer achieves a mean IoU of 0.59 and a Saliency score of 0.75, demonstrating strong generalization across datasets.
  • The method is computationally efficient, requiring only a single forward pass per test image, making it orders of magnitude faster than perturbation-based approaches.
  • The Explainer performs consistently well on VGG-16 and ResNet-50, though performance is slightly lower on COCO-2014 with ResNet-50, indicating some architecture-dependent generalization challenges.
  • Masks generated by the Explainer are highly parsimonious, retaining only essential features; when masked inputs are fed to the Explanandum, accuracy drops slightly, suggesting the removal of background-dependent biases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.