In machine learning, the "gold standard" for explaining black-box predictions is the Shapley value. Popularized by Scott M Lundberg and Su-In Lee in A Unified Approach to Interpreting Model Predictions, this game-theoretic framework assigns "credit" to each input feature based on its contribution to a model's output.
However, a fundamental tension exists at the heart of these explanations. Most implementations assume that input features are independent—a mathematical convenience that rarely holds in the real world. When features are correlated, standard attribution methods often produce misleading results, evaluating models on "nonsense" data points that could never exist in reality.
The Independence Trap
To calculate a feature's importance, we must observe how the model's prediction changes when that feature is "missing." Since models cannot actually take missing values, we typically simulate absence by replacing the feature with a random value from the training set.
If features are independent, this works perfectly. But if features are correlated—like "Age" and "Years of Work Experience"—simply swapping one while keeping the other fixed creates impossible samples (e.g., a 20-year-old with 30 years of experience). As Christopher Frye and Damien de Mijolla argue in Shapley explainability on the data manifold, evaluating a model on these out-of-distribution points leads to "untruthful" explanations. The model might behave erratically on these impossible inputs, and the resulting attribution will reflect that noise rather than the model's actual logic on real data.
Distinguishing Correlation from Causation
When features are dependent, the question "How much does Feature A matter?" becomes ambiguous. Does it matter because the model uses it directly, or because it is a proxy for Feature B?
I. Elizabeth Kumar and colleagues highlight in Problems with Shapley-value-based explanations as feature importance measures that this creates a "dummy failure." A feature the model doesn't even use might receive high attribution simply because it is highly correlated with a predictive feature.
To solve this, researchers like Tom Heskes and Tom Claassen proposed Causal Shapley Values. By incorporating Pearl’s do-calculus, this method distinguishes between:
- Direct effects: The feature's intrinsic impact on the model.
- Indirect effects: The impact the feature has by influencing other features.
This causal lens allows for "human-like" explanations that respect the underlying structure of the data rather than treating the model as a purely statistical mapping.
The Computational Wall
Accounting for dependencies isn't just a conceptual challenge; it's a computational one. Calculating exact Shapley values is generally #P-hard. When we assume independence, we can use shortcuts to make the math tractable. When we drop that assumption, the complexity explodes.
Recent work has focused on finding "islands of tractability." Pablo Barcelo, Marcelo Arenas, and Mikaël Monet proved in The Tractability of SHAP-scores over Deterministic and Decomposable Boolean Circuits that for specific model architectures, exact scores can be computed in polynomial time. Similarly, Reda Marzouk demonstrated in On the Tractability of SHAP Explanations under Markovian Distributions that if feature correlations follow a Markovian structure, we can efficiently calculate explanations for decision trees and automata.
From Individuals to Groups
If two features are perfectly correlated, perhaps they shouldn't be explained individually. Chris Harris and Colin Rowat introduced Joint Shapley values to measure the importance of feature groups. This acknowledges that in complex systems, predictive power is often shared. Instead of forcing a choice between two inseparable variables, joint attribution provides a mathematically rigorous way to explain their collective influence.
By moving away from the simplifying assumption of independence, the field is shifting toward "distribution-aware" interpretability. Whether through causal graphs, manifold constraints, or group-based attribution, these methods aim to provide explanations that are not just mathematically elegant, but grounded in the reality of the data the models actually process.