Explaining Predictive Uncertainty with Information Theoretic Shapley Values

David Watson, Joshua O'Hara, Niek Tax, Richard Mudd, Ido Guy

Abstract

Traditional Explainable AI (XAI) frameworks focus on attributing a model's point estimates to specific input features. However, in high-stakes domains such as autonomous driving or medical diagnostics, understanding the source of a model's uncertainty is as critical as the prediction itself. This paper introduces a model-agnostic framework that adapts the Shapley value framework from cooperative game theory to information-theoretic quantities. By using conditional entropy and KL divergence as value functions, the authors provide a rigorous method to decompose predictive uncertainty into feature-level contributions. The approach distinguishes between aleatoric and epistemic uncertainty and incorporates split conformal inference to provide finite-sample statistical guarantees. Experimental results across image, text, and tabular data demonstrate the framework's utility in detecting covariate shift and optimizing active learning strategies.

Introduction

In the current landscape of machine learning, interpretability is often synonymous with explaining the "what"—for instance, why a model classified an image as a "cat." Yet, for many real-world deployments, the more pressing question is "why don't you know?" Existing XAI tools like SHAP or LIME are primarily designed to explain point estimates and are largely blind to the underlying predictive distribution. A feature might have a negligible impact on the mean prediction while significantly increasing the model's entropy or "confusion."

This paper addresses this gap by proposing a framework for explaining predictive uncertainty. By moving beyond point estimates to information-theoretic measures, the authors provide a way to attribute uncertainty to specific features in a model-agnostic manner, allowing practitioners to identify whether uncertainty stems from inherent data noise or a lack of model knowledge.

Methodology

Information-Theoretic Shapley Values

The authors build upon the Shapley value, a solution concept from game theory that distributes a "payout" (the model's output) among "players" (the features) based on their marginal contributions. The core innovation lies in the selection of the Value Function:

  • Conditional Entropy ($H$): This measures the remaining uncertainty in a prediction given a specific subset of features. It allows the framework to quantify how much each feature reduces the overall predictive entropy.
  • KL Divergence ($D_{KL}$): This measures the information gain provided by a feature relative to a prior distribution, helping to identify which features shift the model's belief the most.

Uncertainty Decomposition

The framework distinguishes between two primary types of uncertainty:

  1. Aleatoric Uncertainty: Inherent randomness or noise in the data that cannot be reduced by more data.
  2. Epistemic Uncertainty: Uncertainty arising from a lack of knowledge about the best model, which can theoretically be reduced with more training samples.

Statistical Rigor via Conformal Inference

To ensure that feature attributions are not merely artifacts of random noise, the authors introduce a Split Conformal Inference procedure. This provides finite-sample coverage guarantees, ensuring that the reported uncertainty attributions maintain a mathematically defined level of confidence.

Theoretical Grounding

A significant contribution of this work is the formal link established between feature attribution and Conditional Independence. The paper proves that a feature receives zero attribution if and only if the target variable is conditionally independent of that feature given all other features. This provides a rigorous statistical foundation for the method, elevating it from a heuristic visualization tool to a theoretically sound diagnostic.

Experimental Evaluation

The authors validated their approach across several modalities and benchmarks:

  • Computer Vision (MNIST): In a "4 vs. 9" classification task, the method visualized how specific pixels (like the top loop of a '9') reduce epistemic uncertainty, while ambiguous strokes increase it.
  • Natural Language Processing (IMDB): The framework was applied to sentiment analysis to identify which words contributed most to the model's confidence or hesitation.
  • Tabular Data (UCI Repository): Using datasets like BreastCancer and Diabetes, the authors demonstrated that features important for the mean prediction are often distinct from those important for predictive variance.
  • Synthetic Benchmarks: Using a modified Friedman benchmark, the authors tested the method's ability to handle heteroskedasticity—where the variance of the noise changes across the feature space.

Key Results and Applications

Covariate Shift Detection

The framework proves highly effective at identifying distribution shifts. By intentionally perturbing a feature in the test set with noise, the authors showed that the method correctly assigns that feature the highest attribution for the resulting spike in predictive entropy.

Active Feature Acquisition

In scenarios where collecting data is costly, the method can rank missing features by how much they would reduce uncertainty if acquired. In tests with up to 50% missing data, this approach achieved an AUC of 0.682, significantly outperforming random selection.

Statistical Reliability

The conformal inference method achieved near-perfect nominal coverage. For instance, 90% confidence intervals generated by the framework actually contained the true value approximately 90% of the time, confirming its robustness for deployment in sensitive environments.

Discussion and Limitations

While powerful, the method faces the standard challenges of Shapley-based approaches. The exact calculation of Shapley values is exponentially expensive ($2^d$), requiring efficient sampling approximations for high-dimensional data. Additionally, the "imputation problem"—how to handle missing features during the calculation—remains a factor, as the choice between marginal and conditional sampling can influence the final attributions.

Future research directions include extending the framework to explain the entire predicted probability distribution (functional data analysis) and integrating these uncertainty explanations more deeply into causal discovery pipelines.

Summary updated

BibTeX
@inproceedings{watson2023explaining,
  author = {David Watson and Joshua O'Hara and Niek Tax and Richard Mudd and Ido Guy},
  title = {{Explaining Predictive Uncertainty with Information Theoretic Shapley Values}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=6rabAZhCRS},
}
Figure