Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

A Unified Approach to Interpreting Model Predictions

SHAP unifies six explanation methods under one additive importance measure

  • Problem Many methods now explain single predictions of complex models, but nobody had a clear picture of how they relate or when one beats another. Without a shared frame, practitioners cannot tell whether two explanations mean the same thing.
  • Method SHAP treats each explanation as a simple linear model over binary feature inputs. Among additive attribution methods, it picks the one unique attribution that satisfies local accuracy, missingness and consistency, which is the Shapley formula.
  • Results The authors prove that only one additive attribution satisfies local accuracy, missingness and consistency. Kernel SHAP reaches more accurate estimates than LIME and Shapley sampling values with fewer model evaluations.

Why explanations of complex models are hard to compare

The most accurate models on large datasets are often ensembles or deep networks that even experts find hard to read. Growing data availability makes these complex models more useful, which sharpens the trade-off between accuracy and interpretability. Many methods now explain individual predictions, but nobody had a clear picture of how they relate or when one beats another.

This matters because an explanation builds user trust, shows how a model could be improved, and supports understanding of the modeled process. Without a shared frame, a practitioner can't tell whether two explanations of the same prediction mean the same thing.

Treating the explanation itself as a model

The key move is to treat an explanation as a model in its own right, a simpler stand-in for the complex one. A complex model can't serve as its own explanation, so the authors use an interpretable approximation that is easier to read. The focus is local: the explanation should match the model near one input x, using simplified inputs z' that map back to x.

The authors define additive feature attribution methods as those whose explanation model is linear in binary variables. The form is g(z') equals phi-zero plus the sum of phi-i times z'-i, with z' in {0, 1} to the power M. Each phi-i is the attribution of one feature, and phi-zero is a constant base term, so the attributions add up to the model output.

Six current methods from the literature fit this one form, which the authors present as a previously unappreciated unity.

How the existing methods fit the same form

LIME fits a locally weighted linear model around one prediction, and its mapping turns binary interpretable inputs back into the original input space. It finds the explanation by minimizing a weighted loss plus a complexity penalty, as in xi equals the arg min of L plus Omega. Because LIME's loss is squared and its model is linear, penalized linear regression solves this objective.

DeepLIFT attributes to each input the effect of replacing it with a reference value instead of its original value. Its summation-to-delta property makes the attributions add up to the difference between the model output and the reference output. Layer-wise relevance propagation is equivalent to DeepLIFT when all reference activations are fixed at zero, so it fits the same form.

Three earlier methods use classic Shapley equations: Shapley regression values, Shapley sampling values and Quantitative Input Influence. Shapley regression values retrain the model on every feature subset, which is costly, and they average the marginal differences with Shapley weights. Shapley sampling values avoid retraining by integrating over training samples, and Quantitative Input Influence proposes nearly the same sampling approximation.

Three properties that force a unique answer

The authors ask which attributions in the additive class satisfy three properties: local accuracy, missingness and consistency. Local accuracy requires the explanation to match the model output at the simplified input that corresponds to x. Missingness gives zero attribution to any feature whose simplified input is zero, as in x'-i equals zero implies phi-i equals zero.

Consistency says that if a model changes so a feature's contribution doesn't shrink, that feature's attribution shouldn't shrink either. Theorem 1 then states that only one explanation model fits Definition 1 and satisfies all three properties. Its attribution is the Shapley formula, summing the differences in model output over subsets weighted by factorials.

The authors say the theorem follows from Shapley's game theory results, with Young's axioms showing a further property is redundant here. Under a fixed simplified input mapping, the theorem leads to the conclusion that methods not based on Shapley values violate local accuracy and/or consistency. So the scope is fixed by the mapping h-x and the three properties, not by any particular model.

SHAP values and the approximations they need

SHAP values are the Shapley values of a conditional expectation function of the original model. In the formula, the model value at a simplified input is the expectation of f(z) conditioned on the features in S, the non-zero entries of z'. Since most models can't accept arbitrary patterns of missing inputs, the authors replace f(z_S) with the conditional expectation of f(z).

Two optional assumptions simplify the expectation: feature independence and model linearity. Conditioning on the other features is first dropped under independence, so the expectation runs over the remaining features only. If the model is also linear, the expectation can be replaced by evaluating the model at the feature values with expected values substituted for the missing features.

Because exact computation is hard, the authors approximate SHAP values with two model-agnostic methods and four model-type-specific methods. Shapley sampling values are the known model-agnostic route, and Kernel SHAP is the new one.

Kernel SHAP: turning Shapley values into a regression

Kernel SHAP starts from LIME's linear explanation model, and asks which loss and weights make that fit recover Shapley values. LIME's heuristic choices of loss, weighting kernel and regularization don't recover Shapley values, which violates local accuracy and/or consistency. So the authors choose the parameters analytically rather than heuristically.

Theorem 2 gives the parameter forms: no regularization, a weighting kernel that depends on M and on the number of present features, and a squared loss. The weight is infinite when no feature or every feature is present, which enforces the base value and the sum constraint. In practice the two infinite-weight variables are eliminated analytically, so the optimization stays finite.

Since the regression stays linear, Shapley values can be found with weighted linear regression, which gives better sample efficiency than classical Shapley equations. The authors note that Equation 8 is a difference of means, and least squares recovers means, which is why this kernel fits. Kernel SHAP reaches similar approximation accuracy with fewer evaluations of the original model than sampling does.

Model-specific shortcuts: linear, max and deep models

For a linear model under feature independence, SHAP values come straight from the weights. The base term is the intercept b, and each feature's attribution is its weight times how far its value sits from the expected value, as in phi-i equals w-j times (x-j minus E[x-j]). Linear regression on Theorem 2 costs grow with M, so the general route suits only a small number of features.

Max SHAP computes the probability that each input increases the maximum over every other input. Working on a sorted order of input values lets it compute Shapley values of a max function in O(M^2) time, instead of the cost of the direct formula.

Deep SHAP links DeepLIFT with Shapley values: if the reference is E[x], DeepLIFT approximates SHAP values under independence and a linear model. DeepLIFT's rules for linearizing components were chosen heuristically, which the authors identify as the weak point. Deep SHAP instead passes multipliers, defined from SHAP values of each component, backwards through the network with the chain rule.

Max pooling and single-input activations have analytic SHAP values, so the composition gives a fast approximation, and the max function is one case where the attributions improved.

Speed of Kernel SHAP against sampling and LIME

The authors compared Kernel SHAP with LIME and Shapley sampling values on a decision tree with 10 input features and on a sparse tree using only 3 of 100 features. Feature importance estimates are tracked as the number of model evaluations grows, with 10th and 90th percentiles over 200 replicate estimates. Kernel SHAP reached more accurate estimates with fewer evaluations, particularly when regularization was added to the linear model.

The comparison also shows that LIME values can differ significantly from SHAP values that satisfy local accuracy and consistency. So the gain comes from both sample efficiency and from matching the SHAP properties, not from sample efficiency alone.

Agreement with human explanations

The authors used Amazon Mechanical Turk to collect human explanations of two simple models, and compared them with LIME, DeepLIFT and SHAP. In the max setting, three men win money based on the largest number of questions any of them got right, and the profit was $5.

Human agreement with SHAP was much stronger than agreement with the other methods in both settings. The authors read the stronger result on max functions as progress on an open problem for max pooling in DeepLIFT. This fits the authors' argument that Theorem 1 gives an incentive for additive methods to use SHAP values.

Masking pixels in an MNIST convolutional network

SHAP and LIME were run with 50k samples, and LIME used single pixel segmentation over the digit pixels.

Masking removes 20% of pixels, chosen by each method's attribution, to switch the predicted class from 8 to 3. The change in log odds over 20 random images is the measure used to compare the methods. The authors report that this change supports using better estimates of SHAP values over the original DeepLIFT.

Limits of the evidence and open problems

Shapley sampling values compute a separate sampling estimate for each feature attribution, which the authors consider reasonable only for a small number of inputs. The Shapley kernel result depends on the specific weights in Theorem 2, so other kernels don't carry the same guarantee. The model-specific methods rest on assumptions, such as feature independence and a linear model, and the authors call the first two optional.

The user studies used one sickness setting and one max setting, with 30 and 52 individuals. The MNIST masking check used 20 random images and one convolutional network. The authors list faster model-type-specific methods with fewer assumptions, interaction effects and new explanation model classes as next steps.

Paper info

Authors
Lundberg, Scott, Lee, Su-In
Venue
arXiv · Preprint
First published
2017-5-22
Added
2026-11-11
Updated
2017-11-25
Version
v2
arXiv
1705.07874
Category
cs.AI · 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

Lundberg, Scott, Lee, Su-In (2017). A Unified Approach to Interpreting Model Predictions. arXiv:1705.07874v2. https://arxiv.org/abs/1705.07874v2

BibTeX
@misc{scott2017unified,
  title = {{A Unified Approach to Interpreting Model Predictions}},
  author = {Lundberg, Scott and Lee, Su-In},
  year = {2017},
  eprint = {1705.07874},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.07874v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up