Guide

Validating SHAP values: when you can trust the explanation of an AI model

SHAP values state, for a single prediction, the contribution that the SHAP method attributes to each feature. This page presents five checks you can use to validate such an explanation, and it names the cases in which an interpretable model is the better choice.

Terms

What SHAP Values and Feature Importance Tell You

An explanation describes which features an AI model draws on for its predictions. It is produced by a separate computational method that makes assumptions and uses approximations. An explanation can therefore itself be wrong, and it has to be checked in the same way as the model.

SHAP stands for Shapley Additive Explanations. The method assigns each feature a value for a single prediction [1]. Together, the values add up to the difference between that prediction and the base value, which is the result that would be expected if none of the features were known [1]. The values are usually computed with approximations, and some of these assume that the features are independent of one another [1].

Feature importance ranks the features by their contribution to the predictive performance of the model as a whole. One widely used method is permutation importance. It randomly shuffles the values of one feature and measures the resulting drop in the performance of the model [2].

Each of these methods describes the behavior of one particular model. According to the scikit-learn documentation, permutation importance indicates how important a feature is for that one model, not what predictive value the feature would have on its own [2].

To learn what explainable AI is and why companies need it, read the page Explainable AI: Making Model Decisions Traceable.
Checklist

Validating SHAP Values and Feature Importance: Five Checks for an Explanation

An explanation should pass five checks before you trust it.

CheckQuestionHow to recognize a problem
Stability Does the explanation stay the same when the data changes only slightly? After training on a different sample, the ranking of the most important features changes, or two nearly identical cases receive clearly different explanations.
Held-out data Does the explanation also apply to data the model did not see during training? A feature is important on the training data and unimportant on the held-out data. The scikit-learn documentation calls this finding a possible sign of overfitting [2].
Domain knowledge Does the explanation match what your domain experts know about the process? A feature with no connection to the subject matter ranks near the top. The original LIME paper gives the example of a patient ID that was closely related to the target variable [3].
Correlated features Are important features so closely related that their contributions cannot be separated? Two closely related features both receive a low importance even though they may be important. With permutation importance, this effect occurs because the model still receives the information through the other feature [2].
Causation Is the feature being treated as if it were the cause of the outcome? An action is derived from the importance of a feature even though no experiment or causal analysis has established the relationship.

A research paper on stability argues that similar inputs should not lead to clearly different explanations. In its experiments, LIME and SHAP produced substantially different explanations for a neural network on some neighboring inputs [4].

In addition, the explanation of a poor model says little about the process the model is meant to represent. Before the explanation is checked, the first question is therefore whether the model achieves the agreed performance on held-out data [2].

To see how a model is checked on held-out data, read the page Model Validation: CRISP-DM phase 5.
Single case

SHAP Values for a Single Case: The Local Explanation of a Model Score

A local explanation answers the question of why the model scored a particular case the way it did, for example a rejected application. A case handler who has to justify the result to a customer needs this explanation. SHAP and LIME are widely used methods for this purpose.

SHAP: one contribution per feature

SHAP breaks the prediction for one case down into the contributions of the features. A positive value raised the prediction, and a negative value lowered it [1].

LIME: an interpretable model for the neighborhood of the case

LIME generates slightly altered variants of the case and has the model score them. It then fits a simple, interpretable model to these results, and that model is meant to be valid only in the vicinity of the case [3].

A local explanation applies only locally

The authors of LIME note that a feature can be important for a single case without being important for the model as a whole, and vice versa [3]. A few individual cases therefore do not support any conclusion about the overall behavior of the model.

The following example is invented. A model estimates the default risk of a loan application at 32 percent, and the base value is 10 percent. SHAP distributes the difference of 22 percentage points across the features and attributes 15 points to two overdue payments, 10 points to the short account age, and minus 3 points to the steady income. The explanation of a single case also has to be checked. To do so, compare the explanations of two or three very similar cases. If they differ widely, the explanation of the case should not go to a customer unchecked.

Cause and effect

Feature Importance Does Not Prove Causation

The statement "the model uses this feature" is a different statement from "this feature causes the outcome." A predictive model learns which features occur together with the outcome in the data. It has not learned whether changing the feature changes the outcome.

The SHAP documentation itself warns against inferring causes from a predictive model. According to that documentation, SHAP makes transparent the correlations that a predictive model has picked up, and making correlations transparent does not make them causal [5].

The following example is invented. A model predicts customer cancellations, and the number of calls to customer service is the most important feature. It does not follow that fewer calls lead to fewer cancellations. A more plausible assumption is that dissatisfied customers call more often and cancel more often.

Only an experiment with a control group, or a causal analysis that discloses its assumptions, shows whether an action works.

Limits

When an Interpretable Model Is the Better Choice

An interpretable model can be read directly and shows how it arrives at its result. Examples include a linear regression with few features, a small decision tree, and a scoring table. A post-hoc explanation, by contrast, is an approximation of a model that cannot be read directly, and an approximation can deviate from the model.

The decision has major consequences for people

For decisions about a loan or a medical treatment, it should be possible to give reasons for every single score. Cynthia Rudin of Duke University argues that interpretable models should be designed for such decisions from the outset, because a post-hoc explanation never corresponds to the model completely [6].

The data consists of tables with understandable features

For structured data with features that are meaningful in the domain, the difference in performance between complex and simple models is often small, according to Rudin [6]. Only a direct comparison of the two types of model shows whether this observation applies to your data.

Deep learning: when it pays off on tabular data

The explanation does not pass the checklist

If the explanation of a complex model remains unstable or contradicts domain knowledge, an interpretable model with somewhat lower performance can be the better solution.

With large datasets, however, complex models often achieve higher accuracy [1]. In that case, the post-hoc explanation remains necessary, and it has to be validated with the checklist.

How we work

How We Handle Feature Importance and Explanations in Projects

We consider a model ready for acceptance only once metrics, generalization, and explanation have been checked together.

Unexpected influencing factors are a finding

During validation, we examine the influencing factors and whether the model has learned the right patterns. If a feature appears there that your domain experts do not expect, we treat it as a finding.

Feature engineering: checking features for data leakage

A report your business department can read

The results go into an evaluation report that your business department can read. The report includes a model transparency analysis.

Model card: documenting the validation metrics

The simple method comes first

We start with the simplest model that answers the question. If a simple, inherently explainable method is the right answer, we tell you so.

Exploratory data analysis: algorithm selection and baseline (CRISP-DM phase 4)

Three possible recommendations at the end

Validation ends with a decision paper that recommends release, return with a concrete brief, or stop. A model that does not meet the success criteria does not go into operation.

Model validation: the decision paper at the end (CRISP-DM phase 5)

Frequently Asked Questions About SHAP Values and Feature Importance

What are SHAP values?

SHAP values state, for a single prediction, the contribution that the SHAP method attributes to each feature. A positive value raised the prediction, and a negative value lowered it. SHAP values describe the behavior of a model and do not prove causation.

What is the difference between SHAP values and feature importance?

Feature importance ranks the features by their contribution to the predictive performance of the model as a whole, whereas SHAP values state the contribution of each feature to a single prediction. Feature importance is therefore a global explanation, and the values for a single case are a local explanation.

What is permutation importance?

Permutation importance is a method that indicates how much a model relies on one feature. It randomly shuffles the values of the feature and measures the resulting drop in the performance of the model. For closely related features, the value can turn out too low for both.

How do you check the explanation of an AI model?

The explanation of an AI model is validated with five checks. They test whether it remains stable under small changes to the data, whether it applies to held-out data, whether it matches domain knowledge, whether correlated features distort it, and whether a cause is derived from it that has not been established.

When is a simple model better than a post-hoc explanation?

A simple model that can be read directly is the better choice when the decision has major consequences for people or when the explanation of a complex model does not pass the checks. This applies only if it achieves the agreed performance in a direct comparison.

Sources

[1] Lundberg, S. M., Lee, S.-I.: A Unified Approach to Interpreting Model Predictions. 31st Conference on Neural Information Processing Systems (NIPS 2017). Read in the version arXiv:1705.07874v2, Sections 1 to 4. https://arxiv.org/abs/1705.07874 (accessed November 24, 2026)

[2] scikit-learn: User Guide, section "Permutation feature importance." https://scikit-learn.org/stable/modules/permutation_importance.html (accessed November 24, 2026)

[3] Ribeiro, M. T., Singh, S., Guestrin, C.: "Why Should I Trust You?": Explaining the Predictions of Any Classifier. KDD 2016, DOI 10.1145/2939672.2939778. Read in the version arXiv:1602.04938v3, Sections 2, 3, and 6.4. https://arxiv.org/abs/1602.04938 (accessed November 24, 2026)

[4] Alvarez-Melis, D., Jaakkola, T. S.: On the Robustness of Interpretability Methods. arXiv:1806.08049 (2018). https://arxiv.org/abs/1806.08049 (accessed November 24, 2026)

[5] Dillon, E., LaRiviere, J., Lundberg, S., Roth, J., Syrgkanis, V.: Be careful when interpreting predictive models in search of causal insights. Documentation of the SHAP library. https://shap.readthedocs.io/en/latest/example_notebooks/overviews/Be%20careful%20when%20interpreting%20predictive%20models%20in%20search%20of%20causal%20insights.html (accessed November 24, 2026)

[6] Rudin, C.: Stop Explaining Black Box Machine Learning Models for High Stakes Decisions and Use Interpretable Models Instead. arXiv:1811.10154 (2018). https://arxiv.org/abs/1811.10154 (accessed November 24, 2026)

You can find more topics, from data sovereignty to operations, in the overview of all AI guides.

If you have a question about this, just give us a call: +49 40 60940415.