Suboptimal Shapley Value Explanations

Xiaolei LuarXiv 2025 · DOI

Introduction

Shapley values have emerged as a gold standard in explainable AI (XAI) for attributing model predictions to specific input features. By considering all possible coalitions of features, they provide a mathematically grounded way to distribute "payout" (the prediction) among contributors. However, a critical implementation detail often goes overlooked: how to represent "missing" features. Because deep learning models require fixed-length inputs, missing features are typically replaced with "baselines"—either random noise or predicted values. This paper identifies that these baselines often introduce hidden biases through asymmetric interactions, leading to unfaithful explanations.

The Problem with Baselines: Asymmetric Interactions

To calculate a feature's importance, we observe how the model's output changes when that feature is removed. In practice, "removal" means replacement. The authors argue that current baseline strategies are suboptimal for two primary reasons. First, random baselines ignore the inherent dependencies between features, creating "out-of-distribution" samples that the model was never trained to handle. Second, conditional baselines (which use context to predict a replacement) can be overly informative. If a replacement word is highly influential in the same direction as the original, the model's output may not change significantly, leading the Shapley calculation to underestimate the original feature's true importance.

Symmetric vs. asymmetric feature interactions in Shapley value calculations.

As shown in Figure 1, standard interactions are often assumed to be symmetric. However, in real-world NLP tasks, the interaction between a word like "plot" and "fun" might be asymmetric. If the baseline used to replace "plot" (e.g., "script") carries similar sentiment, the interaction is distorted. The paper formalizes this as "directional bias," where the replacement feature itself shifts the model's output, masking the contribution of the feature being explained.

Proposed Methodology: Uncertainty-Based Reweighting

To mitigate these biases, the authors propose a novel uncertainty-based reweighting mechanism. The core idea is that an ideal baseline should be "uninformative"—it should represent a state of maximum uncertainty for the model. Mathematically, for a replacement $x'_i$, we want $p(y|x'_i) \approx p(y)$.

Instead of searching for a perfect neutral word, which is computationally expensive and often impossible, the authors use normalized entropy as a proxy for "true missingness." In their algorithm, baseline samples that result in higher model uncertainty (higher entropy) are assigned greater weights. This ensures that the Shapley value calculation is driven by samples where the baseline is genuinely uninformative, rather than samples where the baseline accidentally reinforces the original prediction. This reweighting can be applied to both random (random-uw) and conditional (condition-uw) sampling methods.

Experimental Evaluation

The researchers evaluated their method using BERT and RoBERTa architectures across a suite of NLP benchmarks, including SST-2 (sentiment), SNLI (inference), and SNIPS (intent detection). They measured "faithfulness" using several key metrics:

  • Log-odds (LOR): Measures how well the attribution ranks the most influential words.
  • Sufficiency (SF) & Comprehensiveness (CM): Evaluate if the identified features are truly necessary and sufficient for the model's prediction.
Comparison of Shapley value stability across random and conditional baselines.

As illustrated in Figure 2, Shapley values can fluctuate significantly depending on the number of sampling instances and the type of baseline used. The proposed reweighting mechanism helps stabilize these values and aligns them more closely with the model's internal logic.

One of the most striking findings was the improvement in human alignment. By comparing model-generated explanations against human-provided rationales and GPT-4 outputs, the authors found that reweighting significantly increased rank correlation. On the SST-2 dataset, the correlation coefficient for the random baseline improved from 0.086 to 0.231 with the addition of uncertainty-based reweighting.

Key Insights and Limitations

A surprising insight from the study is that random baselines often outperform sophisticated conditional ones in sentiment tasks. This suggests that the "biased interactions" introduced by predictive models (like replacing "plot" with "script") can be more detrimental to explanation faithfulness than the noise introduced by random sampling.

However, challenges remain. There is a persistent "human-AI gap"; a perfectly faithful explanation of a model's internal logic may still seem nonsensical to a human if the model itself relies on non-human patterns. Furthermore, while the entropy-based approach is efficient, computing Shapley values for long sequences remains a significant computational hurdle.

Conclusion

This research highlights a fundamental flaw in how we currently explain deep learning models. By identifying the role of asymmetric interactions and providing a practical, uncertainty-based solution, the authors move us closer to explanations that are truly faithful to a model's underlying mechanics. Future work will likely focus on bridging the gap between these faithful model explanations and human-understandable logic.

Summary updated

BibTeX
@misc{lu2025suboptimal,
  author = {Xiaolei Lu},
  title = {{Suboptimal Shapley Value Explanations}},
  year = {2025},
  eprint = {2502.12209},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.12209},
}
Figure