Explaining NonLinear Classification Decisions with Deep Taylor Decomposition

Grégoire Montavon, Sebastian Bach, Alexander Binder, Wojciech Samek, Klaus-Robert MüllerPattern Recognition 2015 · DOI

TL;DR

Deep neural networks (DNNs) are powerful but opaque. This paper introduces Deep Taylor Decomposition (DTD), a novel method to explain DNN decisions by attributing contributions to individual input features (like pixels). DTD offers a principled way to understand "why" a DNN makes a specific prediction, bridging the gap between performance and interpretability.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved state-of-the-art performance in many fields, especially image classification. However, their complex, multi-layered, non-linear structure makes them "black boxes." It's difficult to understand why a DNN makes a particular decision, which limits trust, debugging, and application in critical domains. While linear models offer clear explanations based on input features, they lack the expressive power for complex tasks. This paper aims to bridge this gap by providing interpretable explanations for complex DNN decisions.

Methods

The core contribution is Deep Taylor Decomposition (DTD). This method extends traditional Taylor decomposition to the layered structure of DNNs. Instead of a single, intractable decomposition of the entire network, DTD breaks down the explanation process layer by layer.

Here's how it works:

  • Layer-wise Relevance Propagation: DTD treats the DNN as a series of interconnected functions. It starts by assigning the network's output score (e.g., the probability of a class) as "relevance" to the output neuron.
  • Taylor Decomposition per Neuron: For each layer, DTD applies a Taylor decomposition to the function that maps the activations of neurons in one layer to the relevance of neurons in the next layer. This allows relevance to be "backpropagated" from higher layers to lower ones.
  • Root Point Selection: A key aspect is choosing a "root point" for the Taylor expansion. The paper explores various strategies for selecting this root point, leading to different propagation rules (e.g., w²-rule, z-rules). These rules determine how relevance is distributed based on weights and activations.
  • Consistency Properties: The proposed methods are designed to satisfy desirable properties like conservativeness (total relevance at input equals output relevance) and positivity (relevance scores are non-negative), ensuring meaningful explanations.

Datasets

The paper uses the following datasets for evaluation:

  • MNIST: A standard dataset of handwritten digits, used for training and evaluating the proposed methods on shallow and deep network architectures.
  • ILSVRC: The ImageNet Large Scale Visual Recognition Challenge dataset, used to demonstrate the application of DTD to large, state-of-the-art convolutional neural networks (CaffeNet and GoogleNet).

Key Insights and Ideas

  • Principled Layer-wise Explanation: DTD provides a theoretically grounded way to decompose complex DNN decisions by leveraging their layered structure, avoiding a single, monolithic decomposition.
  • Bridging Functional and Rule-Based Approaches: The method unifies functional (Taylor decomposition) and rule-based (relevance propagation) perspectives, similar to how error backpropagation unifies functional and message-passing views.
  • Adaptability to Network Architectures: DTD is shown to be robust across different network architectures (shallow, deep, convolutional) and datasets, producing qualitatively similar and interpretable heatmaps.
  • Data-Dependent Explanations: Unlike methods that explain the model globally, DTD provides explanations for individual data points, highlighting which specific input features contributed to a particular prediction.
  • Relevance Models for Deep Networks: For very deep networks where direct decomposition is intractable, the paper introduces "relevance models" that learn to approximate the relevance propagation, allowing explanations without retraining the entire network.

Key Results

  • Qualitative Results: DTD generates "heatmaps" that visually highlight the pixels most responsible for a DNN's classification decision. These heatmaps are shown to be more complete and better aligned with the object of interest compared to simpler methods like sensitivity analysis.
  • Quantitative Results: The paper demonstrates that DTD methods are consistent (conservative and positive), meaning the sum of pixel relevances equals the output score, and all relevances are non-negative. This is validated through scatter plots and histograms comparing DTD to other methods.
  • Performance on Large Networks: DTD, particularly the "training-free" variant, successfully explains decisions of large, pre-trained networks like CaffeNet and GoogleNet on ILSVRC, producing coherent and informative heatmaps.

Limitations and Future Work

  • Computational Cost: While DTD is more efficient than traditional Taylor decomposition, applying it to very deep networks can still be computationally intensive, necessitating techniques like relevance models.
  • Root Point Selection: The choice of root point and propagation rule can influence the heatmap. While the paper proposes several principled rules, finding the "best" rule might still depend on the specific task and desired properties.
  • Approximation Error: For deep networks, the use of relevance models introduces an approximation error, although the paper shows this error can be small.
  • Future Work: The authors suggest exploring further refinements to the deep Taylor decomposition method, potentially incorporating desirable properties of other methods like LRP (e.g., sharper heatmaps, less sensitivity to stride artifacts in CNNs) while retaining DTD's stability and principled foundation. They also aim to investigate whether DTD can be further optimized for speed and applied to a wider range of tasks.

Summary updated

BibTeX
@article{montavon2015explaining,
  author = {Grégoire Montavon and Sebastian Bach and Alexander Binder and Wojciech Samek and Klaus-Robert Müller},
  title = {{Explaining NonLinear Classification Decisions with Deep Taylor Decomposition}},
  journal = {Pattern Recognition},
  year = {2015},
  doi = {10.1016/j.patcog.2016.11.008},
}
Figure