Introduction
Explainable AI (XAI) aims to demystify machine learning models by identifying which features drive specific predictions. Shapley values are widely considered the gold standard for this task. However, calculating them requires a "value function" to estimate the importance of feature subsets. Existing approaches generally fall into two categories: off-manifold (interventional), which are computationally efficient but evaluate unrealistic data points, and on-manifold (observational), which respect data distributions but are computationally heavy and prone to errors in high-dimensional spaces.
A critical vulnerability shared by both is adversarial manipulation. Malicious actors can fine-tune models to exhibit biased behavior on real data while appearing "fair" in explanations by altering model behavior in low-density, off-manifold regions. This paper introduces Joint Baseline Shapley (JBshap), a novel method that threads the needle between these two paradigms to provide robust, efficient explanations.
Methodology: The Joint Baseline Approach
The core innovation of JBshap is the integration of data density directly into the value function. Instead of evaluating the model output $f(x)$ in isolation, the JBshap value function is defined by the product of the model's output and the data density $p(x)$.
By multiplying by $p(x)$, the explanation effectively "mutes" model behavior in regions where data is unlikely to occur (off-manifold). This ensures that the resulting Shapley values only reflect model behavior in regions where the model was actually trained. To handle high-dimensional data like images, the authors utilize Noise-Contrastive Estimation (NCE) to train an efficient Out-of-Distribution (OOD) classifier, allowing for rapid density estimation.
Experimental Results
The authors evaluated JBshap against several benchmarks, including the UCI Adult dataset and ImageNet.
Robustness Against Bias Hiding
A primary test involved simulating an attack where a model biased against the "sex" feature was fine-tuned to hide this bias from XAI tools. As shown in the results below, traditional methods like Bshap and CES failed to detect the underlying bias after fine-tuning, with the "sex" feature's importance appearing to drop or even reverse. In contrast, JBshap remained remarkably stable, successfully identifying the feature's true importance despite the adversarial fine-tuning.
Visual Clarity and Efficiency
On ImageNet, JBshap produced more focused heatmaps than competing methods, highlighting the most distinctive parts of objects that contribute to both the model's prediction and the data's unique structure. Furthermore, JBshap proved significantly more efficient; training the necessary components for ImageNet took only 74 seconds, compared to nearly 50 minutes for supervised on-manifold methods.
Discussion and Conclusion
JBshap represents a significant step forward in making XAI robust against adversarial manipulation. By formalizing a "Strong-T-Robustness" axiom, the authors provide a theoretical foundation for why incorporating data density is essential for reliable explanations.
While highly effective, the method's performance depends on the quality of the underlying density estimator. Future research may explore applying this joint approach to other explanation frameworks, such as Banzhaf values or integrated gradients, to further secure the transparency of machine learning systems.
Summary updated