Paper commentary
Methods for Interpreting and Understanding Deep Neural Networks
Interpretation methods reveal which features drive deep network predictions
- Problem High test accuracy does not show that a deep network relies on the right features, since it may exploit artifacts in the data. Validation therefore needs tools that explain what the network has learned.
- Method Post-hoc methods use prototype search and per-feature relevance scores.
- Results On max(x1, x2), deep Taylor LRP gives a smooth relevance transition across x1 = x2, where sensitivity analysis and simple Taylor decomposition break down.
Why accuracy alone doesn't settle what a network learned
Deep networks now reach near human performance on tasks such as image classification and speech recognition. High accuracy, however, doesn't show that the network relies on the right features, since it may be exploiting artifacts in the data. That is why interpretation tools have become part of validation, especially in medicine and self-driving cars.
The authors restrict the tutorial to post-hoc interpretability, where the model is already trained and only its black-box behavior is characterized. They separate interpreting a concept, which maps an abstract class into a domain a human can read, from explaining a decision, which names the features that contributed to one output.
Prototypes that show what a class looks like
The key idea is to search the input space for the pattern that makes the class output as strong as possible. The base objective subtracts a squared-norm penalty on the input from the log class probability. \[ \max_x \log p(\omega_c|x) - \lambda\|x\|^2 \] Because the class probabilities are differentiable, the search runs by gradient ascent, and the penalty leaves prototypes that look mostly gray with a few edge and color patterns.
Such prototypes score high but often look unnatural.
To move the search toward likely inputs, the authors replace the norm penalty with a data density model p(x), called the expert. The objective becomes log p(ωc|x) plus log p(x), which by Bayes' rule matches the class-conditioned density p(x|ωc) up to modeling errors and a constant. A Gaussian RBM can serve as the expert, while convolutional RBM/DBMs or pixel-RNNs are needed for natural image classes.
A coarse expert leaves the search close to plain class maximization, whereas an overfitted expert makes the search mostly maximize the expert itself. For model validation the overfitted case must be avoided, because it can hide failure modes, while for a correctly predicted concept the priority is preventing underfitting.
When the density is hard to learn, the authors can optimize a latent code z sampled from a simple distribution and decode it with a function g. The objective is log p(ωc|g(z)) minus λ times the squared norm of z, and the prototype is x⋆ = g(z⋆). \[ \max_{z\in Z} \log p(\omega_c|g(z)) - \lambda\|z\|^2 \] In this setting the code-space penalty favors codes with high probability, but high probability codes don't necessarily sit in high density regions of the input space.
A single global prototype can miss multimodal concepts, so the authors use several local prototypes instead. Locality is added with a term η‖x − x0‖² around a reference point x0, and as η grows the prototype converges to x0 and loses its information content.
What the MNIST prototypes show
The authors compare three variants on MNIST classes modeled by a three-layer DNN. The variants are a simple l2 regularizer around the data mean, a Gaussian RBM expert, and a generative model with a two-layer decoder with a code-space regularizer. Every prototype is classified with full certainty by the DNN, so classifier confidence alone doesn't separate the variants.
Only the expert and decoder versions become sharp and realistic-looking, which points to the density term or the decoder as the source of visual quality. The comparison is qualitative, so it shows the visual difference but no measured score.
Attributing one decision to input features
For one input, the question shifts from what the class looks like to which features made this input count toward the class. The authors view the input as features x_i and assign each a relevance score R_i for the output f(x).
Sensitivity analysis sets each relevance to the squared partial derivative of the output with respect to that feature. \[ R_i(x) = \left(\frac{\partial f}{\partial x_i}\right)^2 \] These scores decompose the squared gradient norm of f, so they describe the local variation of the output rather than f(x) itself. The question answered is what makes the image more or less a car, not what makes it a car.
Simple Taylor decomposition expands f around a root point where f is zero and keeps the first-order terms as relevances. For piecewise linear, positively homogeneous functions such as deep ReLU networks without biases, the higher-order terms vanish, so the decomposition is exact. \[ R_i(x) = \frac{\partial f}{\partial x_i}\, x_i \] The score can be read as sensitivity multiplied by the input value, so a feature counts only when it is present and the model reacts to it.
Relevance propagation instead starts at the output and moves backward through the feed-forward graph. Between two layers, the shares R_j←k sent from each neuron k must sum back to R_k, so relevance is conserved locally. \[ \sum_j R_{j\leftarrow k} = R_k, \qquad R_j = \sum_k R_{j\leftarrow k} \] Chained over all layers, the input relevances add up to the network output.
How LRP rules are chosen and derived
The αβ-rule splits each contribution into positive and negative parts and weights them by α and β. The parameters obey α − β = 1 and β ≥ 0, so positive relevance is scaled by α and negative relevance by β. Under the naming convention, LRP-α2β1 means α = 2 and β = 1. A non-zero β was shown empirically to sparsify the explanation.
The choice of rule depends on the network, since LRP-α2β1 worked well on the BVLC CaffeNet while LRP-α1β0 was more stable on the deeper GoogleNet. With α = 1 and β = 0 the rule keeps only the positive weights, giving a simpler form. \[ R_j = \sum_k \frac{a_j w^+_{jk}}{\sum_j a_j w^+_{jk}} R_k \]
For ReLU neurons with non-positive biases, applying LRP-α1β0 at one layer equals a Taylor decomposition of that layer's relevance onto the layer below. This works if the relevance of each neuron is a product of its activation and a positive, constant term. Repeating the step from the top layer down to the input gives a deep Taylor decomposition.
The authors note that the constant term is only approximately constant in lower layers, because its dependence on the activation is diluted by nested sums.
Input layers need their own rules, and the authors derive these by searching for root points on different segments. For real-valued inputs the rule weights each input by squared weights, R_i = Σ_j w_ij² / Σ_i w_ij² · R_j.
Practical rules for running LRP
The authors advise keeping the number of fully connected layers low, since LRP spreads relevance over too many lower-layer neurons there. Negative biases further sparsify the activations, which helps separate relevance across layers. The default choice is the deep Taylor LRP rules, and if heatmaps are too diffuse or negative relevance is needed, the hidden layers switch from α1β0 to α2β1.
LRP-α1β0 can be computed in four steps: a forward pass with positive weights, an elementwise division by that output, a backward pass, and an elementwise product with the activations. The authors give a code sketch that uses the layer's forward and backward methods, so the implementation reuses optimized library primitives. Averaging heatmaps over slightly translated copies of the image, after undoing each translation, reduces noise from noisy first-layer filters or large strides.
Checking continuity and selectivity
Continuity asks whether nearly equal inputs receive nearly equal explanations. It is measured as the largest ratio of explanation change to input change. \[ \max_{x\neq x'} \frac{\|R(x)-R(x')\|_1}{\|x-x'\|_2} \]
On f(x) = max(x1, x2) in the positive quadrant, implemented by a two-layer ReLU network, sensitivity analysis and simple Taylor decomposition are discontinuous on the line x1 = x2. Deep Taylor LRP gives a smooth transition across that line. The authors expect gradient-based methods to score poorly on continuity because they inherit the derivative noise of complex models.
On a convolutional DNN trained on MNIST the function varies little, yet sensitivity analysis and simple Taylor decomposition show strong variations in their explanations. Only deep Taylor LRP stays reasonably continuous in that case.
Selectivity asks whether removing the most relevant features makes the function value fall quickly. The pixel-flipping procedure removes the highest-relevance feature at each step, records the function value, and reports the area under the curve, where a low AUC means relevant features were found. In the illustration each step blacks out a 4 × 4 patch, and deep Taylor LRP is more selective there than sensitivity analysis and simple Taylor decomposition.
The result depends on the removal strategy, which should keep the image on the data manifold so the DNN keeps working reliably.
Validation and scientific uses
Arras et al. compared a CNN on word2vec inputs with an SVM on bag-of-words documents, and both produced a similar test error. The CNN assigned most relevance to a small number of keywords, while the SVM relied on word count regularities.
The DNN looked at the contour of the horse, while the Fisher vector model relied mostly on a copyright tag. The authors expect that removing the tag from test images would lower the Fisher vector model's accuracy but leave the DNN unaffected.
In atomistic simulations, Schütt et al. used a test-charge perturbation to produce three-dimensional response maps for molecules. For EEG, LRP heatmaps can be pooled over time, and temporal pooling preserves the total function value. Alipanahi et al. measured nucleotide relevance by mutating each position and observing the change in prediction.
Arbabzadah et al. applied LRP to face images to find pixels responsible for age and gender attributes.
Limits of the evidence
Simple Taylor decomposition gives only a partial explanation when higher-order terms are non-zero. The deep Taylor result relies on ReLU networks with non-positive biases, which is a stated condition.
The continuity comparisons are qualitative figures on one toy function and one MNIST network. The MNIST prototype comparison is also qualitative and reports no measured score.
The pixel-flipping ranking depends on the removal strategy, and only one illustrated case is shown. The application results are summarized from cited works, each with its own setup.
Paper info
- Authors
- Grégoire Montavon, Wojciech Samek, Klaus-Robert Müller
- Venue
- arXiv · Preprint
- First published
- 2017-6-24
- Added
- 2026-11-12
- Updated
- 2017-6-24
- Version
- v1
- arXiv
- 1706.07979
- DOI
- 10.1016/j.dsp.2017.10.011
- Category
- cs.LG · 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
Grégoire Montavon, Wojciech Samek, Klaus-Robert Müller (2017). Methods for Interpreting and Understanding Deep Neural Networks. arXiv:1706.07979v1. https://doi.org/10.1016/j.dsp.2017.10.011
BibTeX
@article{montavon2017methods,
title = {{Methods for Interpreting and Understanding Deep Neural Networks}},
author = {Grégoire Montavon and Wojciech Samek and Klaus-Robert Müller},
year = {2017},
eprint = {1706.07979},
archivePrefix = {arXiv},
doi = {10.1016/j.dsp.2017.10.011},
url = {https://arxiv.org/abs/1706.07979v1}
}