Janzing 2020 - Inputs as Causes - Interventional Equals Marginal Expectation
Summary
The paper’s positive argument. Treat the algorithm as a causal system whose inputs are the only causes of its output , and keep them formally separate from the true features of the real-world object. Intervening on then leaves at its natural joint law, so (eq. 14). This justifies the marginal value function “from the causal perspective”. The price of the construction is its scope: the causality is that of the “technical input / output system”, and “Y is the output of the system and not a property of the external world.”
Overview
Eq. (5) showed that an intervention on cuts its dependence on the remaining causes of while keeping their mutual dependence. This note applies that idea to the trivially known causal graph of a prediction algorithm: inputs → output.
Main Content
The causal reading of an algorithm (§3, p.5)
The authors “consider the inputs of an algorithm as causes of the output”. They emphasise that this is not a claim about the world: “we are not talking about the causal relation between any features in the real world outside the computer (where the attribute predicted by Y may be the cause of the features), but only about causality of this technical input / output system”. Footnote 4 adds: “Accordingly, Y is the output of the system and not a property of the external world.”
Definition: True features vs inputs (§3, p.5, Fig. 2)
- : the true features obtained from an object (a customer, an image, a market-week).
- : the inputs plugged into the algorithm.
- : the algorithm’s output.
Fig. 2, top (usual learning scenario): for each , with , and . The may be arbitrarily dependent among themselves. Fig. 2, bottom (hypothetical intervention): the inputs are cut from and set to fixed values . The remaining inputs are still copied from the object’s true features and are therefore sampled from the usual joint distribution .
What is actually drawn (p.6, checked against the rendered figure). The figure uses exactly five true features and five inputs, not general :
- Top panel: a box labelled “object with features” holds five white nodes . Each has one arrow to its own black input node (), and all five inputs point to the black output . No edges are drawn among the .
- Bottom panel: the same box with . The input nodes for features 1 and 2 are relabelled with the fixed lower-case values and have no incoming arrows (the edges and are deleted). keep their arrows from , and all still point to .
Caption (p.6): “Top: Causal structure of our prediction scenario: The output is determined by the inputs . In the usual learning scenario these inputs coincide with features ob some object, that is . Bottom: To evaluate the impact of some inputs, say , for the output we consider a hypothetical scenario where we adjust these inputs to some fixed values and sample the remaining inputs from the usual joint distribution .” (“ob some object” is the original typo for “of some object”.) So the caption speaks of general while the drawing shows .
This separation lets us “talk about a hypothetical scenario where the inputs are changed compared to the true features” (p.5). We can feed the algorithm a TV value that this market-week did not have, without asking what would have happened to the market-week.
Proposition: Interventional = marginal expectation (§3, eq. 14, p.5)
Under the causal structure of Fig. 2, with the inputs the only causes of and an intervention that “leaves the remaining components unaffected”, the remaining inputs are “sampled from their natural joint distribution without conditioning”, and
Proof sketch. In the post-intervention graph, has no parents. keeps its parents and hence its marginal law , which does not depend on because the link is cut. is a deterministic function of . So . Equivalently, apply the back-door/adjustment formula with as the adjustment set. It blocks every back-door path from to , because all of them run . ∎
Corollary: Causal justification of marginal SHAP (§3, pp.5-6)
“Since the interventional expectations coincide with the marginal expectations, we have thus justified the use of marginal expectations for the Shapley values from the causal perspective.” Using in eq. (2) yields interventional Shapley values, which coincide with marginal Shapley values (eq. 4).
Minimal causal knowledge. “the fact that the inputs cause the output is the only causal knowledge needed to compute (14)“. The separation of from “allows us to be agnostic about the causal relations between the true features in the real world” (p.5).
What the argument licenses, and what it does not
| Question | Object | Does eq. (14) answer it? |
|---|---|---|
| How does the model’s output respond if I set input ? | Yes. Needs only “inputs cause outputs”. | |
| Does the model use input ? | Sensitivity for | Yes. Marginal whenever ignores (Lemma 1 contrast). |
| How would the real outcome respond if the real feature were set? | No. That needs a causal model of and . is just a regression fitted to observational data, so its coefficients carry confounding. | |
| Is the model’s input-output response plausible at combinations never seen in training? | Extrapolation of | No. Eq. (14) asks for at those points but says nothing about whether is reliable there. |
The third row is the crux for applied use. If (real sales) is a cause of some — the parenthetical in the quotation above, “where the attribute predicted by Y may be the cause of the features” — then the model’s dependence on can be anti-causal, and a large interventional SHAP value is pure prediction, not effect. The fourth row is the objection pressed by Kumar et al 2020 - Problems with Shapley-Value Explanations - Overview and Hooker Mentch Zhou 2021 - Permute-and-Predict Extrapolation - Overview.
Examples
Example: Media-mix regression with a demand confounder (marketing illustration)
Setup. True world: an unobserved demand index raises both the planned TV budget and real sales . TV’s real effect is per unit and ‘s effect is . TV is planned as . A model trained without learns with , because it absorbs part of .
Interventional SHAP for a week with TV is . Per eq. (14) this is exactly how the model’s output moves when the TV input is set to , so the attribution is correct for the model.
Reading it as incremental sales would overstate TV’s effect by the factor . Eq. (14) has nothing to say about that error. It is removed by identification: experiments or geo tests (Experimental Benchmarks for Observational Ad Measurement), controls for (Logic of Regression Adjustment), or orthogonalised estimators (DML Estimators for ATE and the Interactive Model). The practical cautions are developed in Dillon et al - SHAP and Causal Insights - Overview.
Connections
- Do-operator semantics and graph surgery: Do-Calculus in Summary Causal DAGs, DAGs and Causal Identification, Canonical Causal DAGs.
- Potential-outcomes reading of the world-level estimand: Potential Outcomes Framework.
- Same theme in a different literature: Zhao & Hastie (2019) on when partial dependence plots are causal (cited by the paper, p.4). They need the back-door criterion to hold for the real features.
- For marketing measurement, a model-level interventional attribution belongs with prediction diagnostics, not lift estimates. See Chan Perry 2017 - Challenges in Media Mix Modeling - Overview and Causal Machine Learning - Overview.