Explainability is Not Causality: What is not Why

A SHAP bar chart names the features that moved a prediction. Nothing in that procedure touches the world the prediction is about.

Attribution methods localize: they say which part of a fixed model carried a fixed input to a fixed output. Causal claims are bought by intervening. The two fields share a vocabulary — why, because, counterfactual, important — and mean different things by all four.
Machine Learning
Causal Inference
Explainability
Author

Ravi Kalia

Published

August 12, 2026

Explainability is Not Causality: What is not Why

Attribution names what a fitted model did on one input. A causal claim names what would happen in the world if you changed something.

Attribution methods assign credit for one prediction across input features. A long SHAP bar for tenure is a fact about a fitted model. It does not imply that extending tenure would change churn.

The two fields share vocabulary (why, because, important, counterfactual) and answer different questions.

1 Demonstration: husky versus wolf

Ribeiro, Singh & Guestrin (2016) trained a husky-versus-wolf classifier on 20 images chosen so every wolf had snow in the background and no husky did.

Husky (left), wolf (right) — the two categories a classifier is about to be asked to tell apart.

Asked which pixels it used, the model named snow. That attribution is accurate as a description of the fitted association. Snow does not make an animal a wolf.

(a) A husky the classifier called a wolf.

(b) The evidence it kept: mostly snow, with the collar and a scrap of muzzle surviving.

Reproduced from Ribeiro, Singh & Guestrin (2016), Figure 11, for commentary. Shown only predictions, 10 of 27 graduate students trusted this classifier; shown the explanation, 3 did, and those naming snow as its evidence rose from 12 to 25.

On an uncurated training set that pattern can appear (background, watermark, collection artifact). The attribution chart looks the same whether the named feature is the mechanism or the accident.

What the explanation cannot reach: the structure that makes the animal a wolf.

2 Explainability

Attribution answers: given this model and this input, which parts account for the output?

Methods differ in what counts as a part:

  • Saliency: pixels scored by how much a nudge would move the output.
  • SHAP / LIME: credit among features. LIME fits a simple local stand-in and reads the explanation off that stand-in.
  • Attention visualisation: tokens the model weighted.

Scope:

  • one fitted model (held fixed)
  • one instance
  • one prediction

The procedure does not consult the world. It cannot distinguish a real mechanism from a collection artifact.

Localizing points a spotlight inside a model that stays fixed. Intervening changes the world and reads the difference.

3 Causality

A causal claim is obtained by intervening: set a variable rather than observe it, then measure what moves.

Instruments:

  • randomized trial
  • A/B test
  • natural experiment when neither can be run

Pearl’s ladder (three non-substitutable question types):

  1. Seeing — what co-occurs with what.
  2. Doing — what follows if a variable is set.
  3. Imagining otherwise — what would have happened to this unit had things differed.

No amount of seeing-data answers a doing-question without assumptions brought in from outside the data.

Cost asymmetry: localization is one forward pass on a model already on disk. Intervention requires changing the world.

Pearl’s ladder of causation. Attribution lives on rung one; every rung above needs a causal model.

4 Shared vocabulary

Field Method Question it answers What it does
Explainability (“what”) Feature attribution (SHAP, LIME, Integrated Gradients) “What inputs drove this prediction?” Assigns credit/weight to each input feature for a specific output
Saliency maps / Grad-CAM “What part of the input did the model look at?” Highlights regions (e.g. pixels) with highest influence on output
Attention visualization “What did the model attend to?” Surfaces attention weights in transformer-style models
Surrogate models “What simple rule approximates this decision?” Builds an interpretable stand-in for a local region of behavior
Counterfactual explanations (ML sense) “What’s the smallest input change that flips the output?” Finds a minimally-different input the model classifies differently
Concept activation vectors (TCAV) “What human-understandable concept does this correspond to?” Tests whether a learned direction in activation space aligns with a concept
Causality (“why”) Randomized controlled trials (RCTs) “Does X cause Y?” Physically intervenes on X (randomly) to rule out confounding
Causal graphs / DAGs (Pearl) “What’s the causal structure connecting these variables?” Encodes assumed cause-effect relationships
Do-calculus (Pearl) “What happens if we intervene on X?” Formal rules for computing intervention effects from observational data + a causal graph
Instrumental variables “Does X cause Y, despite unmeasured confounding?” Uses a variable affecting X but not Y directly, to isolate the causal effect
Difference-in-differences / Regression discontinuity “Did this policy/event cause the change?” Exploits natural experiments to approximate randomization
Counterfactual reasoning (Pearl’s rung 3) “Would Y have happened if X hadn’t?” Uses a fitted causal model to answer individual-level counterfactuals

The two counterfactual rows share a name and sit on different rungs:

  • ML counterfactual: nearest input the model labels differently. Fact about a decision boundary (rung 1).
  • Pearl counterfactual: what would have happened to this unit under a different treatment. Requires a structural model (rung 3).

5 Causal claims about a network

A causal claim about the network (not about the world) is obtained by intervening on internals:

  • delete a concept from the representation and re-run the forward pass
  • paste activations from one input into another input’s forward pass (activation patching) and measure output change

That is distinct from an ML counterfactual, which searches inputs. Whether the world works the same way is a separate question.

6 Scope

  • Explainability: what a fitted model did, for one input.
  • Causality: what happens in the world under intervention.

Reading the first as the second is a category error. Tenure’s long bar does not license a tenure-extension policy; that requires intervening on tenure.

Related posts on this blog: Explainability Is a Localization Problem, How Causality Works: From Toddlers to Do-Calculus.

Attribution. Describes. Models. Intervention. Describes. Worlds. Confusing. Them. Licenses. Bad. Policy.

7 References