Janzing 2020 - Irrelevant-Feature Example and Failure of Sensitivity
Summary
Example 1 takes with two perfectly correlated binary inputs. With conditional simplified functions (eq. 3), the unused input receives Shapley value . With marginal ones (eq. 4) it receives exactly . This proves Lemma 1: under observational conditioning, does not imply that depends on . The apparent clash with the earlier statement that Shapley values “satisfy the axiom of sensitivity” (p.5) is resolved by noting that Sensitivity holds for the induced binary function , not for .
Overview
This is the paper’s main argument against eq. (3). It shows that conditional-expectation Shapley values attribute to the data distribution as well as to the model: any input correlated with a used input inherits credit. For model validation that is a serious failure. “Does the model use ?” is exactly the question a reviewer asks, and conditional SHAP can answer “yes” for a feature the code never reads.
Main Content
Example 1: Irrelevant feature (§3, eq. 6-13, pp.4-5)
Setup. , so is “obviously” irrelevant. Both inputs are binary with
(i) Conditional expectations, eq. (3):
Hence (on the support ) and , so
(ii) Marginal expectations, eq. (4):
giving and , hence .
Completing the example (derived here, not in the paper). Take , so .
- Conditional: and , so and . The two inputs split the credit evenly, as if the model used both.
- Marginal: and . All credit goes to the input the model reads.
At the conditional values are and the marginal values are , . Both versions satisfy completeness. They differ only in who gets the credit.
Lemma 1: Failure of Sensitivity (§3, p.5)
When the relevance is defined through “simplified” functions built from conditional expectations, , then ” does not imply that depends on .”
Proof. Example 1 is a counterexample: does not depend on , yet for both . ∎
The paper notes the result was “already discussed in Sundararajan and Najmi (2019)“.
Transcription note. The lemma as printed (p.5) reads — conditioning on the complement and with lower-case inside . This is almost certainly a typo: conditioning on the dropped features would make a function of , not , contradicting the left-hand side, eq. (3), and Example 1. The statement above uses the intended form , i.e. eq. (3) .
Resolution of the sensitivity paradox (§3, p.5)
§2.2 said Shapley values satisfy Sensitivity, yet Lemma 1 seems to say the opposite. The resolution is that Shapley values refer to binary (set) functions. Read eqs. (6)-(9) as the values of a binary function on inputs , where means feature is “included”. Then does depend on the second bit (). So the Shapley values do not violate Sensitivity for , but “we certainly care about ‘sensitivity for ’.” The distinction between and is crucial “although in our example is binary itself”. Under the marginal definition, eqs. (10)-(13), the second bit is irrelevant for as well, so the paradox does not arise.
General version (editorial)
The mechanism generalises at once. Under eq. (3), for any coalition containing a correlated proxy of a used feature , moves with through . So unless is flat in . With perfect correlation, conditional SHAP splits credit equally among exact copies, regardless of which copy the model uses. The redundant-player analysis owned by Kumar et al 2020 - Problems with Shapley-Value Explanations - Overview shows the same thing: adding a duplicate feature rewrites everyone’s attribution.
Examples
Example: "Model reads search, SHAP credits brand TV" (marketing illustration)
A per-segment gradient-boosted model of weekly conversions uses paid search clicks but not brand TV GRPs. In the training weeks TV and search move together, because TV drives brand search. Conditional SHAP (e.g. a conditional TreeSHAP or kernel-conditional estimator) will give TV a positive share in high-TV weeks. A reviewer who sees this cannot tell whether the model uses TV. Marginal/interventional SHAP gives TV exactly zero — the model-validation answer. (Whether TV causes conversions through search is a separate, causal question that neither number answers. See Janzing 2020 - Conclusions, Limitations and Model-vs-World Attribution.)
Connections
- The permutation-importance analogue: unconditional permutation importance credits only used features but extrapolates, while conditional permutation importance de-credits proxies — Strobl et al 2008 - Conditional Variable Importance - Overview, Hooker Mentch Zhou 2021 - Permute-and-Predict Extrapolation - Overview.
- Proxy credit as a fairness concern (“does the model use a protected attribute?”) is why the paper cites the fairness literature in §1. See Janzing 2020 - Baseline Attribution Axioms and Integrated Gradients.
- The model-class view: even marginal SHAP describes one fitted . Another equally accurate that reads TV instead of search would flip the answer. See Fisher Rudin Dominici 2019 - Model Class Reliance - Overview.