Introduction
Explainable AI (XAI) increasingly relies on Shapley values to attribute model predictions to specific input features. However, existing Shapley-based methods face a fundamental tension between causal accuracy and model robustness. Traditional approaches typically fall into two categories: off-manifold methods and on-manifold methods.
Off-manifold methods, such as Interventional Shapley (IS), evaluate models on out-of-distribution (OOD) data points—combinations of features that are physically or logically impossible in the real world. Because models are not trained on these regions, their behavior there is arbitrary, allowing for "adversarial" models that appear fair on real data while hiding deep biases in OOD regions. Conversely, on-manifold methods like Conditional Expectation Shapley (CES) restrict evaluations to real data but are often confounded by feature correlations. If two features are highly correlated, these methods may split credit between them even if the model only utilizes one, failing to capture the true causal contribution.
To resolve this "causal-robustness" trade-off, we present Manifold Restricted Interventional Shapley Values (ManifoldShap), a framework that respects the model's domain of validity without being blinded by feature correlations.
Methodology
ManifoldShap introduces a novel value function that bridges the gap between interventional and conditional approaches:
$$v^{MAN}_{x,f,Z}(S) := \mathbb{E}[f(X) | do(X_S = x_S), X \in Z]$$
This formulation incorporates two critical components:
- Intervention ($do$): Utilizing Pearl’s $do$-calculus, the method simulates "breaking" the correlation between features to isolate causal effects.
- Manifold Restriction ($X \in Z$): The expectation is restricted to a set $Z$ (the manifold), representing regions of high data density.
By restricting the interventional distribution to the manifold, the method ensures the model is only evaluated in regions where its behavior is well-defined and representative of real-world performance. The authors propose two primary implementation strategies: a supervised approach, which trains a surrogate model to estimate the manifold-restricted expectation, and rejection sampling, which samples from the interventional distribution and discards points falling outside the estimated manifold.
Theoretical Robustness
The paper formalizes Subspace T-robustness, a new notion of robustness proving that ManifoldShap is theoretically guaranteed to ignore model perturbations that occur outside the defined manifold $Z$. This ensures that an adversary cannot manipulate the explanation by altering the model's behavior in OOD regions.
Experimental Setup
The researchers evaluated ManifoldShap against several baselines, including Interventional Shapley (IS), Conditional Expectation Shapley (CES), and RJBShap, across synthetic and real-world datasets:
- Synthetic Structural Causal Models (SCMs): Designed with high feature correlation and specific adversarial perturbations in low-density regions.
- COMPAS: A recidivism risk dataset (52 features) used to test if explainers can uncover models biased against "race."
- Communities and Crime (CC): A UCI dataset (128 features) used for similar bias-detection experiments.
Key Insights and Results
The "Middle Way"
ManifoldShap acts as a tunable compromise. As the manifold $Z$ expands to encompass the entire feature space, the method converges to Interventional Shapley (causally pure but fragile). As $Z$ shrinks toward a single point, it behaves more like Conditional Expectation Shapley (robust but correlation-blind). Crucially, ManifoldShap satisfies a version of the Sensitivity property: if a model does not use a feature on the manifold, ManifoldShap correctly assigns it zero importance, even if it is highly correlated with a predictive feature.
Performance Highlights
- Bias Detection: In experiments on the COMPAS and CC datasets using biased classifiers designed to hide their reliance on race, ManifoldShap was the only method that consistently identified "race" as the top feature. Competing methods were successfully "fooled" into attributing importance to unrelated synthetic columns.
- Causal Accuracy: In synthetic tests where a target $Y$ depended solely on $X_1$, but $X_1$ and $X_2$ were 85% correlated, ManifoldShap attributed the majority of importance to $X_1$. In contrast, CES attributed high importance to the irrelevant $X_2$ in over 30% of cases.
- High-Dimensional Scaling: The method remained effective as the feature space grew to $d=500$, outperforming CES, which tends to dilute feature importance as dimensionality increases.
Limitations and Future Work
The success of ManifoldShap depends heavily on the accurate estimation of the manifold $Z$. If the manifold is estimated poorly or is too restrictive, the method may begin to mirror the limitations of correlation-based methods. There remains a fundamental trade-off: restricting to the manifold inherently sacrifices some "pure" causal accuracy to gain robustness. Future research will focus on sophisticated methods for choosing $Z$ to optimize the balance between causal integrity and adversarial resistance.
Summary updated