Interpretable Explanations of Black Boxes by Meaningful Perturbation

Ruth C. Fong, Andrea Vedaldi

Abstract

As machine learning algorithms are increasingly applied to high impact yet high risk tasks, such as medical diagnosis or autonomous driving, it is critical that researchers can explain how such algorithms arrived at their predictions. In recent years, a number of image saliency methods have been developed to summarize where highly complex neural networks “look” in an image for evidence for their predictions. However, these techniques are limited by their heuristic nature and architectural constraints. In this paper, we make two main contributions: First, we propose a general framework for learning different kinds of explanations for any black box algorithm. Second, we specialise the framework to find the part of an image most responsible for a classifier decision. Unlike previous works, our method is model-agnostic and testable because it is grounded in explicit and interpretable image perturbations.

Introduction

Deep neural networks have achieved remarkable success in computer vision, yet they remain notoriously opaque. While a model might correctly classify an image as a "flute" or a "dog," understanding the underlying logic—the specific pixels or regions that drove that decision—is a significant challenge. Existing "saliency" methods typically rely on backpropagating gradients to highlight important pixels. However, these methods often suffer from two major flaws: they are heuristic visualizations that lack a formal link to the model's decision logic, and they are highly sensitive to artifacts. For instance, if a method "deletes" a pixel by turning it black, the network might react to the sharp edge of the black box itself rather than the absence of the object.

Methodology: The Deletion Game

The authors propose a novel framework called the "deletion game." To explain a specific classification, the method searches for the smallest possible mask that, when applied to the image, causes the model's confidence in the target class to drop significantly. This is framed as an optimization problem rather than a simple one-pass heuristic.

Meaningful Perturbations

A core innovation of this work is the use of "meaningful perturbations" to remove information. Instead of simply zeroing out pixels, the researchers experimented with three methods: replacing regions with a constant color, adding Gaussian noise, or applying a Gaussian blur.

Comparison of different perturbation types (blur, constant, noise) used to 'delete' information from an image of a rifle.

As seen in the figure above, Gaussian blur was found to be the most effective at removing information without introducing the "unnatural" sharp edges that often confuse neural networks. By blurring a region, the method effectively "hides" the high-frequency details necessary for recognition while maintaining the overall image structure.

The Optimization Framework

The explanation is generated by minimizing a loss function that balances three objectives:

  1. Score Suppression: Forcing the model's target class probability as low as possible.
  2. Mask Sparsity ($L_1$ penalty): Keeping the mask small to highlight only the most essential features.
  3. Smoothness (Total Variation penalty): Ensuring the mask is visually coherent and free of scattered noise.

Qualitative Comparison and Results

Because this method is model-agnostic and relies on iterative probing rather than internal architecture, it produces saliency maps that are often more localized and interpretable than traditional gradient-based methods.

Qualitative comparison of the proposed mask method against several baseline saliency techniques across diverse ImageNet classes.

In the comparison above, the proposed "mask" method consistently identifies the most relevant object parts (e.g., the face of the Pekingese or the unicycle wheel) with much higher precision than methods like Grad-CAM or simple Gradient saliency.

Key Insights

  • Dataset Bias Discovery: The method revealed that a model identified a "chocolate sauce" plate primarily because of the spoon. Manual perturbation confirmed the spoon was more "suppressive" than the sauce itself, exposing a bias where the model learned to associate spoons with chocolate sauce.
  • Adversarial Robustness: The masks for adversarial images (designed to fool networks) appear significantly more scattered than those for natural images. This allowed the researchers to detect adversarial attacks with 93.6% accuracy.
  • Label Recovery: By applying these learned masks to adversarial images, the researchers could recover the original "correct" label 40.64% of the time without any retraining.

Conclusion

This framework provides a mathematically grounded way to explain black-box classifiers. While computationally more expensive than one-shot methods—requiring roughly 300 iterations per image—it offers superior suppression and interpretability. By moving from heuristics to formal optimization, the "deletion game" provides a testable and robust tool for understanding the inner workings of complex machine learning models.

Summary updated

BibTeX
@inproceedings{fong2017interpretable,
  author = {Ruth C. Fong and Andrea Vedaldi},
  title = {{Interpretable Explanations of Black Boxes by Meaningful Perturbation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=BkZRmZG_bB},
}
Figure