An Imprecise SHAP as a Tool for Explaining the Class Probability Distributions under Limited Training Data

Lev V. Utkin, Andrei V. Konstantinov, Kirill A. VishniakovarXiv 2021

Abstract

Standard SHAP (Shapley Additive Explanations) provides point estimates for feature importance, which can be misleading when training data is scarce and model predictions are uncertain. This paper introduces Imprecise SHAP, a framework that uses interval-valued Shapley values to account for epistemic uncertainty. By representing predictions as sets of distributions and leveraging the Kolmogorov-Smirnov distance for computational efficiency, the authors provide a more robust and "honest" explanation of black-box models under limited data conditions.

Introduction

In the field of Explainable AI (XAI), SHAP is a gold standard for identifying which features most influence a model's prediction. However, standard SHAP has two major limitations that this paper addresses:

  1. The Probability Gap: In multi-class classification, models output probability distributions. Standard SHAP often struggles to define a meaningful "difference" between these distributions while satisfying the mathematical properties required for Shapley values.
  2. The "Certainty" Illusion: When training data is limited, a model’s predicted probability is itself an estimate subject to epistemic uncertainty. Standard SHAP treats these estimates as absolute. If data is sparse, a 70% probability might actually represent a range between 50% and 90%.

The authors argue that providing a single "importance score" in these scenarios is overconfident and potentially dangerous in high-stakes fields like medicine or security.

Methodology

The authors propose a two-step solution to incorporate imprecision into the SHAP framework:

Distance-Based Marginal Contribution

Instead of the standard subtraction of model outputs, they define the marginal contribution of a feature based on how much it reduces the distance between a partial prediction and the full-model prediction within the probability simplex.

Figure 1: Illustration of marginal contributions in a 3-class probability simplex. The arrows represent the distance-based change in predictions when adding a feature to a subset.

Sets of Distributions and Computational Efficiency

Rather than a single probability point, predictions are represented as a convex set of distributions using an $\epsilon$-contamination model. The parameter $\epsilon$ is inversely tied to the amount of training data. To handle the computational complexity of calculating bounds for these sets, the authors utilize the Kolmogorov-Smirnov (KS) distance, which reduces complex non-convex optimizations into a series of simple linear programming tasks. The final output is an interval-valued result $[\phi_i^L, \phi_i^U]$ for each feature $i$.

Experimental Setup

The approach was validated using both synthetic and real-world datasets:

  • Synthetic Datasets: Three custom-generated 2D datasets representing different classification challenges (e.g., concentric circles and clustered data).
  • UCI Benchmarks: The method was tested on the Seeds (3 classes), Glass Identification (7 classes), and Ecoli (8 classes) datasets to evaluate performance on real-world multi-class problems.

Key Results and Insights

  • Honesty over Precision: The interval-valued approach reveals when a model is not certain enough to rank one feature definitively over another. If two features' intervals overlap, the model's ranking is considered ambiguous due to data scarcity.
  • Mathematical Rigor: The authors proved that their interval-valued approach satisfies the Efficiency property, ensuring the sum of contributions equals the total gain, maintaining the game-theoretic fairness of SHAP.
  • Sensitivity to Data Volume: As the contamination parameter $\epsilon$ increases (simulating less data), the Shapley intervals widen, capturing the growing ignorance of the model.
  • Rank Reversals: In the Ecoli and Seeds datasets, the authors demonstrated cases where the "precise" SHAP ranking changed once uncertainty was factored in. A feature that appeared most important under standard SHAP was sometimes overtaken by another feature's lower bound, suggesting a more robust choice for feature selection.

Conclusion and Future Work

While Imprecise SHAP provides a more accurate representation of uncertainty, the resulting intervals can introduce decision ambiguity. The authors suggest a "cautious" parameter ($\eta$) to help users navigate optimistic versus pessimistic interpretations. Future work includes scaling the method to higher-dimensional feature spaces and extending the framework to survival models where outputs are curves rather than discrete points.

Summary updated

BibTeX
@misc{utkin2021imprecise,
  author = {Lev V. Utkin and Andrei V. Konstantinov and Kirill A. Vishniakov},
  title = {{An Imprecise SHAP as a Tool for Explaining the Class Probability Distributions under Limited Training Data}},
  year = {2021},
  eprint = {2106.09111},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.09111},
}
Figure