Paper commentary
Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models
Layer-wise relevance propagation explains image predictions better than sensitivity analysis
- Problem Accurate deep networks do not show which inputs drove a given prediction. Their nested non-linear structure works as a black box, which is costly in medical diagnosis.
- Method Layer-wise relevance propagation (LRP) pushes the prediction backwards until each input gets a relevance score. Unlike sensitivity analysis, the scores sum to the prediction.
- Results On image perturbation tests with GoogleNet, LRP heatmaps made the score fall faster than sensitivity analysis heatmaps.
Why accurate models still get stuck
Deep networks reach high accuracy, but their nested non-linear structure hides what drives a given prediction. That gap matters most where a wrong answer is costly, such as medical diagnosis or self-driving cars. In the pneumonia case, a model learned that asthma patients with heart problems had a lower risk, a pattern that came from biased data rather than from medical fact.
A black box output would hide this kind of error, because nothing in the prediction shows which signal the model relied on. The same concern appears in law, where a right to explanation asks for the reasons behind an algorithmic decision.
Research on opening black boxes has grown along two lines, one showing what a model has learned and one explaining individual predictions. This paper focuses on the second line, explaining one prediction in terms of its input variables.
A relevance score for every input
The key idea is to attach a relevance score to every input variable, so the scores explain the prediction instead of only naming the class. The authors compare two ways to compute those scores. Sensitivity analysis (SA) uses the local gradient, while layer-wise relevance propagation (LRP) pushes the prediction backwards through the network.
Both produce a heatmap in which each pixel or word receives a score.
The running example is a rooster image that a trained network labels correctly, and the heatmap points to the rooster's red comb and wattle. The question left open is how far the two heatmaps can be trusted, which the later experiments test.
What sensitivity analysis measures
Sensitivity analysis takes the magnitude of the partial derivative of the output with respect to each input variable, so the relevance of input i is that magnitude. \[ R_i = \left| \frac{\partial}{\partial x_i} f(x) \right| \] This assumes the most relevant inputs are the ones the output is most sensitive to. The gradient therefore describes how the score would change under a small edit, not how much each input already contributed to it.
The drawback shows up in the rooster example, where the yellow flowers that occlude the bird would be flagged. Reconstructing the hidden parts of the rooster would raise the score, but the flowers are not evidence for a rooster.
How relevance flows backwards
LRP starts from the output f(x) and redistributes it backwards with local rules until every input variable holds a relevance score R_i. The rule that holds throughout is relevance conservation, written as follows. \[ \sum_i R_i = \cdots = \sum_j R_j = \sum_k R_k = \cdots = f(x) \] No relevance is added or removed at any layer, so the input scores sum to the prediction.
The simple LRP rule moves relevance from layer l + 1 to layer l, with x_j the activations at layer l, R_k the relevance at layer l + 1, and w_jk the weight from neuron j to neuron k. \[ R_j = \sum_k \frac{x_j w_{jk}}{\sum_j x_j w_{jk} + \epsilon} R_k \] Each lower neuron gets a share that grows with its activation and with the strength of its connection, and the small term epsilon keeps the division safe.
Conservation holds exactly only when epsilon is 0.
The alpha-beta rule and the toolbox
The alpha-beta rule splits each neuron's contributions into positive and negative parts and weights them with alpha and beta. Conservation is kept by the constraint that alpha minus beta equals 1. For alpha equal to 1, the cited work shows that this rule coincides with a deep Taylor decomposition of a ReLU network.
The LRP toolbox provides Python and Matlab code and connects to Caffe and TensorFlow, so other models can be explained without rebuilding them.
Scoring explanations by perturbation
The authors rank input variables by their relevance and perturb the top ones first. A method that finds the truly relevant inputs should see the prediction score fall more steeply as those inputs are removed. The average decline of the score, or of accuracy, serves as the quality measure. The perturbations are model-independent, such as uniform random values, so that the comparison isn't biased toward one method.
GoogleNet image results
GoogleNet classifies images from ILSVRC2012, and the volcano and coffee cup examples are explained with both methods. The LRP heatmap of the cup highlights its ellipsoidal shape, and the volcano heatmap highlights the mountain's outline. The SA heatmaps are noisier and give large values to pure sky background, so the authors judge LRP's explanations subjectively better.
In the perturbation test, a 9x9 patch is replaced by uniform random values at each step. The score falls much faster when patches follow LRP heatmaps than when they follow SA heatmaps. This averages over the first 5040 images, so the advantage is shown for this GoogleNet setup and patch size.
Word deletion on 20Newsgroup
A word-embedding based convolutional network classifies 20Newsgroup documents, and this document was labelled sci.med. Both methods mark words such as sickness, body and discomfort as the basis of that decision. LRP also marks words such as ride, astronaut and Shuttle as negative evidence, which shows the classifier sees counter-evidence in the text.
SA doesn't separate positive from negative evidence.
The quantitative test sets the most important words to 0, and the accuracy decrease is averaged over 4154 documents. Deleting the words ranked by LRP lowers accuracy more than deleting those ranked by SA.
Frames and blocks in action recognition
A Fisher Vector / SVM classifier is trained on block-wise motion vectors, not on individual pixels, to reduce computation. The evaluation uses HMDB51, and a sit-up video is correctly classified. The heatmaps concentrate on blocks around the upper body, where the up and down motion of a sit-up appears. The relevance over four consecutive frames is larger in the frames that show that movement.
So the heatmaps show both the place and the time of the action within a clip.
Limitations
The quantitative checks use one GoogleNet setup on images and one convolutional network on 20Newsgroup. The image test averages over the first 5040 images with 9x9 patches, and the text test deletes words instead of sampling random values. The video experiment reports relevance over frames and blocks, with no perturbation score. The alpha-beta link to deep Taylor decomposition is stated only for alpha equal to 1 and ReLU networks.
No user study is reported, so the paper doesn't test whether the heatmaps help people validate a model. The authors leave open the theory behind explainability and how post-hoc explanations relate to models built to be interpretable.
Paper info
- Authors
- Wojciech Samek, Thomas Wiegand, Klaus-Robert Müller
- Venue
- arXiv · Preprint
- First published
- 2017-8-28
- Added
- 2026-11-12
- Updated
- 2017-8-28
- Version
- v1
- arXiv
- 1708.08296
- Category
- cs.AI · cs.CY · cs.NE · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Wojciech Samek, Thomas Wiegand, Klaus-Robert Müller (2017). Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models. arXiv:1708.08296v1. https://arxiv.org/abs/1708.08296v1
BibTeX
@misc{samek2017explainable,
title = {{Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models}},
author = {Wojciech Samek and Thomas Wiegand and Klaus-Robert Müller},
year = {2017},
eprint = {1708.08296},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1708.08296v1}
}