NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Shapley Values with Uncertain Value Functions

Raoul Heese, Sascha Mücke, Matthias Jakobs, Thore Gerlach, Nico Piatkowski

Introduction

In the field of Explainable AI (XAI), Shapley Values (SVs) have emerged as the gold standard for feature attribution. Derived from cooperative game theory, they provide a mathematically rigorous way to distribute the "payout" (a model's prediction) among its "players" (input features). To calculate these values, researchers rely on a Value Function (VF)—a metric that quantifies the performance of a model when trained or evaluated on specific subsets of features.

However, a significant gap exists between theory and practice: most XAI tools assume the Value Function is deterministic. In real-world machine learning, models are often stochastic. Factors such as random seeds, data shuffling, stochastic layers (e.g., Dropout), and hardware non-determinism mean that the "importance" of a feature is rarely a fixed number. This paper introduces a formal probabilistic framework to account for this uncertainty, ensuring that explanations remain robust even when models are noisy.

The Challenge of Non-Deterministic Value Functions

When a model is non-deterministic, the marginal contribution of a feature to a coalition becomes a random variable rather than a constant. Traditional Shapley Value calculations ignore this variance, potentially leading to unstable explanations that change with every re-run of the interpretation algorithm.

Until now, there has been no self-consistent mathematical framework rooted in probability theory to handle this instability. This paper addresses the problem by modeling the Value Function as a stochastic process, allowing practitioners to quantify the reliability of their XAI outputs.

A Probabilistic Extension of Shapley Values

The Uncertain Value Function

The authors define the Uncertain Value Function as: $$\mathbf{v}(S) = v(S) + \nu(S)$$ Where $v(S)$ represents the "true" deterministic value and $\nu(S)$ is a random variable representing noise or model instability. By viewing the marginal contribution as a distribution, the "Uncertain Shapley Value" is defined as the expectation of this distribution.

The Shift Theorem

The paper’s primary theoretical contribution is Theorem 1 (The Shift Theorem). It proves that an uncertain Shapley Value is mathematically identical to a regular Shapley Value calculated using a "shifted" deterministic value function. This shift is determined by the mean bias of the noise. This is a critical finding because it implies that the four fundamental axioms of Shapley values—Efficiency, Symmetry, Linearity, and the Null Player property—are preserved even in the presence of uncertainty.

Distinguishing Sources of Variance

By deriving formulas for the higher moments (variance) of these values, the framework allows practitioners to distinguish between two types of uncertainty:

  1. Intrinsic Uncertainty: Variation caused by the different ways features interact within coalitions.
  2. Noise Uncertainty: Variation caused by the model's internal instability or stochastic nature.

Experimental Validation

To validate the framework, the authors conducted experiments using a synthetic regression dataset (10,000 samples, 12 informative features) generated via scikit-learn. They trained linear regression models and used the $R^2$ score as the Value Function, injecting two types of artificial noise:

  • Bernoulli Noise: Representing discrete jumps in performance (e.g., a model failing to converge).
  • Gaussian Noise: Representing standard stochastic fluctuations.

Key Findings

  • Noise Dominance: In experimental settings, the variance introduced by model noise was found to be up to six orders of magnitude larger than the intrinsic variance of feature contributions. This suggests that for many modern models, the "noise" in the explanation is far more significant than the actual signal of feature importance.
  • Visualizing Uncertainty: The authors utilized probability mass function heatmaps to show how noise affects interpretations. Gaussian noise tends to "smear" feature importance across a range, while Bernoulli noise creates distinct "ghost" peaks, potentially misleading a practitioner who only looks at a single point estimate.
  • Computational Price: Accounting for uncertainty requires evaluating the value function $n$ times for every coalition. This increases the computational complexity from $2^N$ to $n \cdot 2^N$, highlighting a significant trade-off between explanation confidence and processing time.

Implications and Future Work

This research provides the mathematical foundation necessary to trust explanations derived from unstable models. By quantifying how many samples are required to reach a specific confidence level, the framework moves XAI from "best-guess" attributions to statistically rigorous interpretations.

Future research directions include:

  • Correlated Noise: Investigating scenarios where the noise level changes depending on which specific features are included in a subset.
  • Approximation Algorithms: Integrating this framework into high-speed approximation methods like KernelSHAP or TreeSHAP.
  • Quantum Computing: Applying these principles to Quantum Machine Learning, where randomness is an inherent physical property of the system rather than a byproduct of training dynamics.

Summary updated

BibTeX
@inproceedings{heese2023shapley,
  author = {Raoul Heese and Sascha Mücke and Matthias Jakobs and Thore Gerlach and Nico Piatkowski},
  title = {{Shapley Values with Uncertain Value Functions}},
  booktitle = {IDA},
  year = {2023},
  doi = {10.1007/978-3-031-30047-9\_13},
}

Loading related content...

Figure