Learning Baseline Values for Shapley Values

Jie Ren, Zhanpeng Zhou, Qirui Chen, Quanshi Zhang · OpenReview

Abstract: This paper aims to formulate the problem of estimating the optimal baseline values for the Shapley value in game theory. The Shapley value measures the attribution of each input variable of a complex model, which is computed as the marginal benefit from the presence of this variable w.r.t. its absence under different contexts. To this end, people usually set the input variable to its baseline value to represent the absence of this variable (i.e., the no-signal state of this variable). Previous studies usually determine the baseline values in an empirical manner, which hurts the trustworthiness of the Shapley value. In this paper, we revisit the feature representation of a deep model from the perspective of game theory, and define the multi-variate interaction patterns of input variables to define the no-signal state of an input variable. Based on the multi-variate interaction, we learn the optimal baseline value of each input variable. Experimental results have demonstrated the effectiveness of our method.

Introduction

In Explainable AI (XAI), Shapley values are considered a gold standard for attributing a model's output to its individual input features. Calculating these values requires comparing the model's output when a feature is "present" versus when it is "absent." However, representing "absence" to a deep neural network (DNN) is a significant challenge.

Current practices typically involve replacing a feature with a baseline value, such as zero, the dataset mean, or a blurred version of the image. These choices are often arbitrary. If a DNN has learned that "zero" represents a specific feature (e.g., a black border), then masking a pixel to zero does not remove the signal; it merely changes it. This leads to unfaithful attributions and "noisy" explanations that do not accurately reflect the model's internal reasoning.

Standard baseline methods (Mean, Blurring, Zero) often fail to faithfully represent the absence of features, either by introducing new causal patterns or failing to remove existing ones.

Methodology

The authors move away from human intuition, instead leveraging the model's own mathematical logic. They utilize the concept of Harsanyi dividends (termed "causal patterns") to define faithfulness.

Causal Patterns and Sparsity

A DNN’s output can be decomposed into a set of interactions between variables. A "faithful" baseline should be the value that, when used for masking, simplifies the model's explanation. According to the authors, the "true" absence of a feature should result in the most sparse set of causal patterns. An incorrect baseline mistakenly breaks down a single high-order concept into an exponential number of redundant, low-order "ghost" patterns, a phenomenon termed "concept-emerging."

Learning the Optimal Baseline

Since calculating all possible interactions is computationally prohibitive ($2^n$ combinations), the authors propose an efficient approximation. They define a loss function that penalizes the strength of low-order Shapley values and marginal benefits. By minimizing this loss via stochastic gradient descent (SGD), they "learn" the baseline value $b$ for each feature that most effectively "silences" its contribution without introducing new noise.

Experimental Evaluation

The researchers validated their approach across several domains:

  • Synthetic Functions: 100 randomly generated mathematical functions with known ground-truth baselines.
  • Image Data: MNIST and CIFAR-10.
  • Tabular Data: UCI Census Income and UCI South German Credit datasets.

They compared their learned baselines against standard methods including Zero-baseline, Mean-baseline, Blurring, and Conditional Distribution-based masking.

Key Results

  • Accuracy: On synthetic functions, the learned baselines identified the correct ground-truth baseline with over 98% accuracy, significantly outperforming standard methods.
  • Faithfulness Metric ($R$): The authors introduced a metric $R$ to measure the ratio of remaining or newly introduced causal effects. Their method consistently achieved the lowest $R$ values (e.g., 0.2185 on MNIST vs. 1.1736 for zero-baseline), indicating a much cleaner removal of signals.
  • Qualitative Improvement: Attribution maps generated with learned baselines were smoother and more focused on actual objects, effectively ignoring background noise that often confounded other methods.

Discussion and Conclusion

This research provides a critical critique of the "blind faith" placed in standard baselines. It demonstrates that "zero" does not necessarily mean "nothing" to a model and that the model's internal inference logic defines what is truly out-of-distribution. By using sparsity as a proxy for truth, the authors offer a principled way to find the "no-signal" state.

While effective, the method's primary limitation is the computational cost of the per-sample optimization process. Future work may explore more flexible masking theories, such as sample-specific or context-dependent optimal baselines, and the application of learned baselines to other attribution techniques like Integrated Gradients or LIME.

Summary updated

BibTeX
@misc{ren2021learning,
  author = {Jie Ren and Zhanpeng Zhou and Qirui Chen and Quanshi Zhang},
  title = {{Learning Baseline Values for Shapley Values}},
  year = {2021},
  eprint = {2105.10719},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.10719},
}
Figure