Skip to main content
QUICK REVIEW

[Paper Review] Explaining Models by Propagating Shapley Values of Local Components

Hugh Chen, Scott Lundberg|arXiv (Cornell University)|Nov 27, 2019
Explainable Artificial Intelligence (XAI)Computer Science8 citations
TL;DR

This paper introduces DeepSHAP, a framework that extends Shapley value attribution to deep neural networks and mixed-model stacks by propagating values through layers, enabling fast, deterministic explanations with theoretical grounding in background distributions. It improves upon prior methods by providing a theoretically justified approach to background-based attributions and enhancing the RevealCancel rule for better approximation of SHAP values.

ABSTRACT

In healthcare, making the best possible predictions with complex models (e.g., neural networks, ensembles/stacks of different models) can impact patient welfare. In order to make these complex models explainable, we present DeepSHAP for mixed model types, a framework for layer wise propagation of Shapley values that builds upon DeepLIFT (an existing approach for explaining neural networks). We show that in addition to being able to explain neural networks, this new framework naturally enables attributions for stacks of mixed models (e.g., neural network feature extractor into a tree model) as well as attributions of the loss. Finally, we theoretically justify a method for obtaining attributions with respect to a background distribution (under a Shapley value framework).

Motivation & Objective

  • To develop a method for explaining complex, black-box models—especially deep neural networks and stacked ensembles—by attributing predictions to input features.
  • To provide a theoretically sound method for computing Shapley values with respect to a background distribution, overcoming limitations in prior formulations.
  • To extend Shapley value attribution beyond individual models to include stacks of heterogeneous model types (e.g., neural network + tree model).
  • To improve the accuracy of existing rule-based explanation methods like DeepLIFT by reinterpreting them in the context of Shapley values.
  • To reduce the variance and computational cost of model-agnostic SHAP approximation methods such as KernelSHAP and IME by enabling deterministic, backpropagation-style attribution.

Proposed method

  • Propagates Shapley values through deep networks using a layer-wise backward pass, treating non-linear and linear components separately.
  • Reinterprets DeepLIFT's Rescale and RevealCancel rules as approximations to exact Shapley values, ensuring local accuracy and computational efficiency.
  • Introduces a new background distribution-based formulation where attributions are computed relative to a reference distribution, not a single baseline sample.
  • Proposes RevealCancel^Mean, a modified rule that sets the split threshold at the mean of weighted feature contributions instead of zero, improving approximation quality.
  • Applies the framework to explain not only model outputs but also loss functions, extending its utility to training diagnostics.
  • Uses a path-based decomposition of contributions, where attributions are computed as weighted sums along activation paths from input to output.

Experimental results

Research questions

  • RQ1How can Shapley values be efficiently and accurately approximated for deep neural networks using backpropagation-style methods?
  • RQ2Can the connection between DeepLIFT rules and Shapley values be formalized to improve explanation fidelity?
  • RQ3How can Shapley value attributions be meaningfully computed with respect to a background distribution rather than a single reference sample?
  • RQ4To what extent does DeepSHAP outperform sampling-based model-agnostic methods like KernelSHAP and IME in terms of accuracy and variance?
  • RQ5Can the RevealCancel rule be improved by modifying its thresholding strategy to better approximate true Shapley values?

Key findings

  • DeepSHAP achieves deterministic attributions with no sampling variance, requiring a fixed number of model evaluations, unlike sampling-based methods such as KernelSHAP and IME.
  • The RevealCancel^Mean rule reduces approximation error compared to both the original RevealCancel and Rescale rules, with no additional computational cost.
  • In experiments on a correlated feature dataset, DeepSHAP outperformed IME Explainer and KernelSHAP in terms of feature importance recovery, especially in early stages of feature unmasking.
  • The ablation metric 'keep absolute (mask)' showed that DeepSHAP identifies the most important features faster and more consistently than sampling-based alternatives.
  • DeepSHAP successfully explains mixed-model stacks (e.g., neural network feature extractor into a tree model), demonstrating its generalization beyond single-model architectures.
  • Theoretical justification is provided for using a background distribution in Shapley value computation, resolving a key limitation in the original DeepSHAP formulation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.