Feature relevance quantification in explainable AI: A causality problem

Dominik Janzing, Lenon Minorics, Patrick BlöbaumarXiv 2019

Abstract: We discuss promising recent contributions on quantifying feature relevance using Shapley values, where we observed some confusion on which probability distribution is the right one for dropped features. We argue that the confusion is based on not carefully distinguishing between observational and interventional conditional probabilities and try a clarification based on Pearl's seminal work on causality. We conclude that unconditional rather than conditional expectations provide the right notion of dropping features in contradiction to the theoretical justification of the software package SHAP. Parts of SHAP are unaffected because unconditional expectations (which we argue to be conceptually right) are used as approximation for the conditional ones, which encouraged others to 'improve' SHAP in a way that we believe to be flawed.

The "Missing Feature" Problem in XAI

When interpreting complex machine learning models, we often seek to quantify the contribution of individual features to a specific prediction. The Shapley value, a concept from cooperative game theory, has emerged as a gold standard for this task. It fairly distributes the "payout" (the model's prediction) among "players" (the input features).

However, calculating a feature's contribution requires comparing the model's output with the feature versus without it. Since most models are trained on a fixed number of inputs, we cannot simply "remove" a feature. Instead, we must replace it with an average value. The central debate in Explainable AI (XAI) is whether this average should be a conditional expectation (the average value given other known features) or a marginal expectation (the average across the entire dataset).

A Causal Perspective: Intervention vs. Observation

This paper frames feature attribution as a causal problem using Judea Pearl’s "do-calculus." When we "drop" a feature to observe the model's reaction, we are performing a hypothetical intervention. In causal terms, this is the $do$-operator.

Figure 1: A causal graph where a common cause Z induces correlations between features X1, X2, and X3, which in turn influence the output Y.

As shown in Figure 1, features are often correlated because they share common underlying causes ($Z$). If we use conditional expectations, we are essentially "observing" the missing feature through the lens of the remaining ones. If two features are highly correlated (e.g., "fur" and "whiskers"), observing one tells you about the other. However, if we intervene to remove a feature, the causal link is broken; the presence of "fur" should not dictate the imputed value of "whiskers" if we are trying to isolate the specific impact of the whiskers themselves.

The Sensitivity Paradox

The authors argue that using conditional expectations leads to a violation of the Sensitivity axiom. This axiom states that if a model does not use a feature, that feature should receive zero credit.

Under the conditional approach, if Feature A is irrelevant but highly correlated with a relevant Feature B, the conditional distribution will "smear" the credit of B onto A. Consequently, the irrelevant feature A is assigned high importance simply because it acts as a proxy for B. Marginal expectations avoid this pitfall by treating each feature intervention as independent of the others.

Empirical Results

The paper validates these theoretical claims using synthetic Gaussian data and the Human Activity Recognition (HAR) dataset. In both cases, the marginal approach proved significantly more accurate in identifying the true underlying model coefficients.

Figure 5: Error histograms comparing marginal (blue) and conditional (red) expectations. The marginal approach shows nearly zero error, while the conditional approach frequently assigns importance to irrelevant features.

As illustrated in the error histograms, the marginal approach (blue) consistently yields errors centered tightly around zero. In contrast, the conditional approach (red) exhibits a wide spread, often assigning significant relevance to features that the model completely ignores.

Conclusion

While the popular SHAP framework theoretically favors conditional expectations, its practical implementation often uses marginal expectations as a computational shortcut. This paper suggests that this "approximation" is actually conceptually superior. By adopting a causal, interventional framework, XAI methods can provide more robust and intuitive explanations that respect the true sensitivity of the model to its inputs.

Summary updated

BibTeX
@misc{janzing2019feature,
  author = {Dominik Janzing and Lenon Minorics and Patrick Blöbaum},
  title = {{Feature relevance quantification in explainable AI: A causality problem}},
  year = {2019},
  eprint = {1910.13413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.13413},
}
Figure