TL;DR
Standard Shapley value explanations (like SHAP) often evaluate models on "nonsense" data points that don't exist in reality, leading to misleading or even exploitable results. This paper introduces on-manifold Shapley explainability, providing two scalable methods—one generative and one supervised—that respect the underlying data distribution to produce more robust, truthful, and interpretable AI explanations.
The Problem with Traditional Shapley Values
Shapley values are a gold standard in AI explainability because they provide a mathematically principled way to attribute a model's prediction to its input features. However, most implementations make a dangerous assumption: that features are independent.
To calculate the "value" of a feature, these methods "splice" data together. For example, to explain a model's prediction on a specific person, they might take that person's age but swap their income for a random value from the rest of the dataset. This often creates off-manifold points—unrealistic inputs (like a 10-year-old with a $200k salary) that the model never saw during training.
Because the model is being tested on "garbage" inputs, the resulting explanations can be "garbage" too. This leads to three major issues:
- Incorrect Explanations: Models behave unpredictably on unrealistic data.
- Fairwashing: Malicious actors can hide a model's dependence on sensitive attributes (like gender or race) because off-manifold methods only look at the model's "algebraic" form, not the information content of the data.
- Unintelligible Results: In high-dimensional data like images, off-manifold explanations often look like noisy, spread-out heatmaps rather than clear features.
Moving to the Data Manifold
The authors propose moving from off-manifold (marginal) value functions to on-manifold (conditional) value functions. They develop two scalable ways to achieve this:
- The Unsupervised Approach (Generative): This uses a Variational Autoencoder (VAE) combined with a "masked encoder" to learn the conditional distribution of the data. Essentially, it learns to "fill in the blanks" for missing features in a way that stays true to the real data distribution. This method is flexible because once the VAE is trained on the data, it can be used to explain any model trained on that same data.
- The Supervised Approach: This method directly learns the Shapley value function by training a separate "surrogate" model. This surrogate is trained to predict the original model's output given only a subset of features. While it requires retraining for every new model you want to explain, it is more stable and computationally efficient than the generative approach.
Key Insights and Results
The researchers evaluated their methods on a mix of synthetic and real-world benchmarks, including MNIST (handwritten digits), UCI Census Income, UCI Drug Consumption, and UCI Abalone.
- Information vs. Algebra: On-manifold Shapley values represent a model's dependence on the information content of a feature, not just its presence in a mathematical formula. If a model doesn't "use" gender algebraically but uses three other features that perfectly correlate with gender, on-manifold methods will still correctly attribute importance to the "gender" information.
- Concentrated Explanations: On images (MNIST), on-manifold explanations are much more "concentrated" on the actual strokes of the numbers. Because the data manifold for images is very low-dimensional, off-manifold methods waste "attribution budget" on pixels that don't matter in the real world.
- Stability and Accuracy: In terms of Mean Squared Error (MSE) against ground-truth attributions, the Supervised method consistently outperformed both the Unsupervised and standard Off-Manifold approaches across all datasets.
Detecting "Suppressed" Features
In a standout experiment using the Census dataset, the authors "fine-tuned" a model to ignore the "sex" feature algebraically.
As shown above, off-manifold SHAP gave the suppressed "sex" feature a near-zero importance score, effectively allowing the model to hide its bias. However, on-manifold methods correctly identified that the model was still effectively using that information through correlations with other variables.
Limitations and Future Work
While these methods represent a significant step forward, they come with trade-offs:
- Computational Cost: Both methods require significant computation (training VAEs or surrogate models) compared to simple "splicing" methods.
- Model-Specific vs. Data-Specific: The Supervised method is highly accurate but must be retrained for every model. The Unsupervised method is more general but "untargeted," meaning it might not capture the nuances of a specific model as well.
- Scaling to High-Res Images: While demonstrated successfully on 28x28 MNIST digits, scaling these conditional distribution learners to high-resolution, complex images remains a significant challenge for the field.
Summary updated