Explaining the Uncertain: Stochastic Shapley Values for Gaussian Process Models

Siu Lun Chau, Krikamol Muandet, Dino Sejdinovic

Abstract

Explainable AI (XAI) often relies on deterministic feature attribution methods like SHAP. However, for probabilistic models like Gaussian Processes (GPs), ignoring the underlying uncertainty can lead to overconfident or misleading explanations. This paper introduces GP-SHAP, a framework that extends Shapley values to stochastic games, treating feature attributions as random variables. By leveraging the probabilistic structure of GPs, the authors provide a mathematically principled way to quantify explanation uncertainty and introduce a "Shapley prior" to predict explanations for unseen data.

Introduction

In the pursuit of trustworthy AI, understanding why a model makes a prediction is as crucial as knowing how certain it is. While SHAP (Shapley Additive Explanations) is a widely adopted standard for feature attribution, it typically treats model outputs as deterministic. Gaussian Processes naturally provide uncertainty estimates, yet existing XAI tools either ignore this structure or rely on expensive sampling. This work bridges the gap by propagating GP uncertainty directly into explanations through Stochastic Shapley Values (SSVs).

Methods

The authors bridge game theory and probabilistic modeling through several key innovations:

  1. Stochastic Shapley Values (SSVs): They extend the classic Shapley axioms (symmetry, efficiency, linearity) to "s-games," where the payoffs are random variables. This results in explanations that are themselves random variables.
  2. GP-SHAP: Specifically for Gaussian Processes, they show that the stochastic game induced by a GP results in explanations that follow a multivariate Gaussian distribution. This provides a mean attribution for each feature and a tractable covariance matrix describing the uncertainty and dependencies between those attributions.
  3. BayesGP-SHAP: This version combines two types of uncertainty: the model's predictive uncertainty and the "estimation uncertainty" that arises when one cannot check every possible combination of features (which grows exponentially with the number of features).
  4. The Shapley Prior: Perhaps the most novel contribution is treating the "explanation function" itself as a GP. By defining a matrix-valued covariance kernel (the Shapley prior), they can predict what the Shapley values would be for a brand-new data point without re-running expensive game-theoretic calculations.

Results and Key Insights

The framework was evaluated on standard benchmarks, including the California Housing, Breast Cancer, and Diabetes datasets.

Comparison of Stochastic Shapley Values (SSVs) across different data and coalition sampling regimes for the California Housing dataset.

As shown in Figure 1, the ablation study on the California Housing dataset demonstrates how predictive and estimation uncertainties vary. GP-SHAP reveals that uncertainty is not uniform across features; while some features have stable impacts, others are highly volatile. The experiments highlight that BayesGP-SHAP effectively captures both model and sampling uncertainty, especially when only a fraction of data or coalitions are used.

Other key findings include:

  • Superior Prediction: In the diabetes dataset experiments, the GP model using the Shapley prior consistently outperformed Random Forests and Neural Networks in predicting withheld explanations (lower RMSE). This suggests the Shapley prior provides a powerful inductive bias for learning explanation functions.
  • Calibration: The experiments showed that as data becomes more "out-of-sample," the explanation uncertainty correctly increases, allowing users to identify when an explanation shouldn't be trusted.
  • Explanation Dependencies: Because GP-SHAP provides a full covariance matrix, users can build "explanation graphical models" to see if the contribution of one feature is statistically dependent on another.

Limitations and Future Work

The primary limitation is that the specific estimation algorithms (GP-SHAP) are tailored to Gaussian Processes. While the general theory of Stochastic Shapley Values is broad, applying it to other probabilistic models like Bayesian Neural Networks would require different estimation procedures, as the resulting explanations wouldn't necessarily be Gaussian.

For future work, the authors suggest using these uncertainty-aware explanations in Bayesian Optimization. This would allow for an experimental design loop where the system specifically explores regions where the reasons for its predictions are most uncertain.

Summary updated

BibTeX
@inproceedings{chau2023explaining,
  author = {Siu Lun Chau and Krikamol Muandet and Dino Sejdinovic},
  title = {{Explaining the Uncertain: Stochastic Shapley Values for Gaussian Process Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=LAGxc2ybuH},
}
Figure