Janzing 2020 - Conditional vs Marginal Dropping of Features

Summary

To attribute with Shapley values, the features left out of a coalition must be “dropped” by averaging over some distribution. There are two candidates: the observational conditional (eq. 3, proposed by Lundberg & Lee 2017) and the marginal (eq. 4, which SHAP actually computes, citing feature independence). Through Pearl’s back-door adjustment (Fig. 1, eq. 5), §3 shows that an intervention keeps the remaining variables at their unconditional joint distribution. That is the structural template for eq. (4) being the correct choice, not merely an approximation.

Overview

§3 (“How should we sample the dropped features?”) moves from a fixed baseline to attribution relative to . The authors note that explaining why one input’s output is far from the average is “particularly interesting for understanding ‘outliers’” (p.3). For a credit-risk or media model, that is the question “why is this week’s prediction so far above typical?”

Main Content

Notation (§3, pp.3-4)

  • ; for , is its complement; is the sub-vector of on ; is the random sub-vector on .
  • is the conditional expectation of given .
  • is the expectation over the distribution of without conditioning on . The paper calls this the “marginal expectation”.

Definition: The two candidate simplified functions (§3, eq. 3-4, p.4)

In either case the set function is (so and ), and is computed from eq. (2) of the Shapley set-function definition.

Lundberg & Lee’s position (p.4). They propose (3). Because it is hard to compute, they approximate it by (4) and justify the approximation by assuming feature independence.

Janzing et al.’s position (p.4). “We will argue that using (4) rather than (3) is conceptually the right thing in the first place.” The aim is “to prevent others from ‘improving’ SHAP by finding an approximation for the conditional expectation that is better than the marginal expectation”. The examples given are Aas et al. (2019) and Lundberg et al. (2018). Footnote 3 adds that TreeExplainer in SHAP “has meanwhile been changed accordingly”, i.e. towards the interventional/marginal version.

Observational vs interventional conditioning (§3, p.4)

The authors say the ideas of this paragraph are already in Datta et al. (2016) in a more general, abstract form, and point also to Friedman (2001, partial dependence) and Zhao & Hastie (2019, causal interpretation of black-box models).

Definition: Causal structure of Figure 1 (§3, Fig. 1, p.4)

Drawn edges (checked against the rendered figure, p.4): , , , and , , . There is no direct edge , and no edges among . is drawn as a white node, meaning latent (“we may therefore assume to be latent, which we have indicated by white color”, p.4). All other nodes () are black, i.e. observed.

generates the dependences between and . The text’s “backdoor path ” is shorthand: in the drawn graph, reaches only through and , so the back-door paths are and . Conditioning on blocks both. Caption: the observational conditional “does not correctly describe how changes after intervening on because the common cause ‘confounds’ the relation between and .”

Why is the wrong object. Observing also shifts the distribution of , because of their dependence on through . So reflects the influence of as well as that of .

Proposition: Back-door adjustment for Fig. 1 (§3, eq. 5, p.4)

Using Pearl’s (2000) do-operator,

Proof sketch. blocks the only back-door path (through ), and neither variable descends from . The back-door criterion therefore applies, giving . Since is never needed, it may be latent.

Two structural observations used later (§3, p.4)

  1. Eq. (5) contains no conditional distribution given . Replacing with would give the observational . In the paper’s words, “the intervention on breaks the dependences to .”
  2. The dependences between and are kept. They are unaffected by the intervention on .

Read with , these are exactly the properties of the marginal simplified function (4). The dropped features are drawn from their own joint law , with no conditioning on but with their mutual dependence intact. Formalised in Janzing 2020 - Inputs as Causes - Interventional Equals Marginal Expectation.

Note what (4) is not. It is not a product of one-dimensional marginals: the dropped features keep their joint dependence. That separates “marginal/interventional” from the “independent-features” approximation, which is a further simplification. In practice KernelSHAP samples rows of a background dataset, which preserves the joint law of . See Janzing 2020 - KernelSHAP vs SHAPR Experiments.

Examples

Example: Confounded media planning (marketing illustration)

Weekly data, 52-156 rows: = TV spend, = search spend, = promotion depth, = modelled sales, and = an unrecorded seasonal demand forecast that drives both the TV plan and true sales. also picks up the high search and promotion levels that co-occur with heavy TV. Formula (5) instead averages the model’s response at TV = high over the ordinary mix of search and promotion weeks. For the model these are the same two quantities as eq. (3) and eq. (4). What (5) does not give you is the effect of TV on real sales, since also feeds through channels the model may have absorbed into ‘s coefficient. See Janzing 2020 - Inputs as Causes - Interventional Equals Marginal Expectation for that distinction.

Connections

See Also