On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation

Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus‐Robert Müller, Wojciech SamekPLoS 2015

Abstract

Understanding and interpreting classification decisions of automated image classification systems is of high value in many applications, as it allows to verify the reasoning of the system and provides additional information to the human expert. Although machine learning methods are solving very successfully a plethora of tasks, they have in most cases the disadvantage of acting as a black box, not providing any information about what made them arrive at a particular decision. This work proposes a general solution to the problem of understanding classification decisions by pixel-wise decomposition of nonlinear classifiers. We introduce a methodology that allows to visualize the contributions of single pixels to predictions for kernel-based classifiers over Bag of Words features and for multilayered neural networks. These pixel contributions can be visualized as heatmaps and are provided to a human expert who can intuitively not only verify the validity of the classification decision, but also focus further analysis on regions of potential interest. We evaluate our method for classifiers trained on PASCAL VOC 2009 images, synthetic image data containing geometric shapes, the MNIST handwritten digits data set and for the pre-trained ImageNet model available as part of the Caffe open source package.

Introduction: The Black Box Problem

Modern machine learning models, particularly deep neural networks and complex kernel-based systems, are notoriously "black boxes." While they achieve incredible accuracy in image recognition, they offer no inherent explanation for why they made a specific choice. For a human expert—such as a doctor using AI to screen medical images or a security engineer—a simple "yes/no" label is insufficient.

A standard classifier provides a label (e.g., 'cat') but lacks an explanation for its decision.

They need to verify the reasoning of the system to ensure it isn't relying on "Clever Hans" artifacts (like identifying a boat only because there is blue water in the background). This paper tackles the challenge of providing a general, mathematically grounded solution for decomposing non-linear decisions into interpretable, pixel-wise contributions.

Methodology: Layer-Wise Relevance Propagation (LRP)

The authors propose a core novelty called Layer-Wise Relevance Propagation (LRP). This framework operates on a conservation principle. Imagine the final classification score (e.g., "98% certain this is a cat") as a quantity of "relevance." LRP redistributes this relevance from the output layer back to the input pixels, layer by layer.

LRP decomposes the classifier output into pixel-wise relevances, creating an interpretable heatmap.

The total relevance is preserved at each step, ensuring that the sum of all pixel contributions equals the original prediction score. LRP is particularly elegant because it doesn't require retraining the model; it can be applied "out of the box" to existing, pre-trained neural networks and Bag-of-Words (BoW) models.

Additionally, the paper discusses Taylor-type Decomposition, which uses a first-order Taylor expansion to approximate the function locally, explaining the decision relative to a "root point" where the classifier would be perfectly uncertain.

Experimental Validation

The authors validated their approach across a diverse range of data:

  • Synthetic Geometric Shapes: A controlled environment to verify that heatmaps correctly identified defining features of simple shapes.
  • MNIST: Used to show how the model distinguishes between similar numbers (like 3 and 8) through inhibitory features.
  • PASCAL VOC 2009: A challenging real-world dataset containing 20 object classes in natural scenes.
  • ImageNet: Demonstrated scaling to deep, state-of-the-art architectures using a 15-layer Caffe model.

Key Insights and Results

  • Relevance vs. Sensitivity: Standard "sensitivity maps" (based on gradients) show what change to a pixel would most affect the output. LRP, however, identifies which pixels are currently contributing to the decision.
  • The Conservation Law: By enforcing that relevance is neither created nor destroyed, the method provides a quantitative "budget" that makes heatmaps more reliable than heuristic visualization techniques.
  • Qualitative and Quantitative Success: The heatmaps are highly intuitive, highlighting features like the cockscomb of a rooster. Quantitatively, "pixel flipping" experiments showed that changing pixels identified as relevant by LRP caused the classifier's performance to drop significantly faster than random flipping.
  • Negative Evidence: LRP can identify "inhibitory" features—pixels that argue against a classification (e.g., the open top of a '4' being evidence that it is not a '9').

Conclusion and Future Work

While LRP provides a robust framework for interpretability, the authors acknowledge that the "greedy" layer-by-layer approach might lead to relevance dead-ends in extremely complex architectures. Furthermore, while the conservation principle is solid, specific distribution rules (like the $\epsilon$-stabilizer) involve heuristic choices that invite further analytical justification. Future work remains in establishing universal, objective metrics for "interpretability," which currently remains subjective to human experts.

Summary updated

BibTeX
@inproceedings{bach2015pixel,
  author = {Sebastian Bach and Alexander Binder and Grégoire Montavon and Frederick Klauschen and Klaus‐Robert Müller and Wojciech Samek},
  title = {{On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation}},
  booktitle = {PLoS},
  year = {2015},
  doi = {10.1371/journal.pone.0130140},
}
Figure