TL;DR
This paper introduces ManifoldShap, a novel feature attribution method that resolves a long-standing dilemma in Explainable AI: whether to evaluate machine learning models out-of-distribution (making them vulnerable to adversarial manipulation) or rely on feature correlations (which misleads causal interpretation). By restricting interventional do-calculus evaluations strictly to the data manifold, ManifoldShap provides local explanations that are both causally accurate and robust against adversarial "fairwashing" attacks.
What Problem Does This Paper Address?
Shapley values are a popular game-theoretic framework used to explain individual model predictions by assigning an importance score to each feature. However, existing methods fall into two flawed categories:
- Off-manifold methods (e.g., Marginal or standard Interventional Shapley): These evaluate the model on artificial, out-of-distribution (OOD) data points generated by combining features in impossible ways (e.g., predicting a person's health using "Age: 90" and "Pregnant: Yes"). Because models behave unpredictably on OOD data, malicious actors can easily alter a model's OOD behavior to hide biases on the actual data distribution—a practice known as adversarial manipulation or "fairwashing."
- On-manifold methods (e.g., Conditional Expectation Shapley): These restrict evaluations to the data distribution but rely on correlations rather than causation. If two features are highly correlated, these methods split the credit between them even if the model completely ignores one of them.
The authors tackle this gap, seeking an explanation method that respects the model's true domain of validity (the data manifold) while still capturing the true causal impact of individual features.
Methods
The authors propose ManifoldShap, which modifies Interventional Shapley values by conditioning the value function on a specific region of interest $Z$ (the data manifold):
$$v^{\text{MAN}}_{x,f,Z}(S) := \mathbb{E}[f(X) \mid do(X_S = x_S), X \in Z]$$
By integrating Pearl’s do-calculus with a manifold constraint, ManifoldShap simulates dropping features while ensuring that the resulting data points remain realistic.
To implement this in practice, the authors outline several key techniques:
- Manifold Definition: The manifold $Z$ can be defined either by density (regions where the data probability density $p(x) > \epsilon$) or by probability mass (a set containing a fraction $\alpha$ of the data distribution).
- Density Estimation: They use Variational Auto-Encoders (VAEs) or Thresholded Kernel Density Classification (tKDC) to approximate the data manifold from observational data.
- Computation Algorithms: Because computing exact Shapley values scales exponentially with the number of features, they introduce both a supervised surrogate approach (training a model to predict masked inputs) and an efficient rejection sampling algorithm to approximate the values.
Datasets
The method was evaluated on both synthetic and real-world benchmarks:
- Synthetic Datasets: Linear and non-linear (Sine Wave) structural causal models where the true feature dependencies and ground-truth Shapley values were known analytically.
- COMPAS Dataset: A real-world dataset containing criminal history and demographics used to predict recidivism risk. The sensitive attribute is race.
- Communities and Crime (CC) Dataset: A socio-economic dataset from the UCI repository used to predict crime rates. The sensitive attribute is the percentage of the Caucasian population.
Key Insights and Ideas
- The Robustness-Accuracy Trade-off: ManifoldShap introduces a configurable "knob" via the manifold size parameter ($\epsilon$ or $\alpha$). As the manifold expands to include the entire space, ManifoldShap converges to pure Interventional Shapley (high causal accuracy, low robustness). As it shrinks, it behaves more like Conditional Shapley.
- Subspace T-Robustness: The authors introduce a more realistic definition of robustness than previous literature. They prove mathematically that while standard methods can be drastically altered by shifting model behavior on tiny, low-density regions of the input space, ManifoldShap remains stable.
- Why Joint Baseline Shapley (JBShap) Fails: Previous attempts to fix this problem (like JBShap) explained the function $f(x)p(x)$ instead of the model $f(x)$ itself. The authors demonstrate that this can lead to highly misleading results, sometimes assigning zero importance to a feature that the model heavily relies on simply because of the data density shape.
Key Results
- Resisting Adversarial Attacks: On the COMPAS and Communities and Crime datasets, the authors built an adversarial model that was explicitly biased against the sensitive feature (race) on the data manifold, but used synthetic "unrelated columns" to determine predictions outside the manifold. Standard Interventional Shapley, CES, and RJBShap were successfully fooled, incorrectly labeling the unrelated columns as the most important features. ManifoldShap successfully resisted the attack, correctly identifying race as the top feature for the majority of data points.
- Robustness to Density Errors: In high-dimensional spaces ($d=50$), ManifoldShap proved significantly less sensitive to density estimation errors than competing methods like RJBShap. This is because ManifoldShap only requires a binary indicator of whether a point is on or off the manifold ($\mathbf{1}(p(x) \ge \epsilon)$), rather than relying on the exact, fragile continuous density value $p(x)$.
Limitations and Future Work
The primary limitation of ManifoldShap is its heavy reliance on the quality of the manifold estimation ($Z$). If the data manifold is extremely sparse or low-dimensional relative to the ambient feature space, ManifoldShap can collapse and behave similarly to Conditional Expectation Shapley, inheriting its sensitivity to feature correlations and losing its causal accuracy.
The authors note that finding the optimal data-driven way to choose $Z$ to perfectly balance causal accuracy and robustness remains an open and promising direction for future research.
Summary updated