Abstract
Understanding why a model made a certain prediction is crucial in many data science fields. Interpretable predictions engender appropriate trust and provide insight into how the model may be improved. However, with large modern datasets the best accuracy is often achieved by complex models even experts struggle to interpret, which creates a tension between accuracy and interpretability. Recently, several methods have been proposed for interpreting predictions from complex models by estimating the importance of input features. Here, we present how a model-agnostic additive representation of the importance of input features unifies current methods. This representation is optimal, in the sense that it is the only set of additive values that satisfies important properties. We show how we can leverage these properties to create novel visual explanations of model predictions. The thread of unity that this representation weaves through the literature indicates that there are common principles to be learned about the interpretation of model predictions that apply in many scenarios.
Introduction
As machine learning models grow in complexity—transitioning from simple linear regressions to deep neural networks and ensemble trees—they increasingly function as "black boxes." While these models achieve state-of-the-art accuracy, their lack of transparency makes it difficult for practitioners to trust individual predictions or diagnose model failures. To address this, various "feature importance" methods like LIME, DeepLIFT, and Layer-wise Relevance Propagation (LRP) have emerged. However, these methods were largely developed independently, often relying on heuristic choices. This research introduces a unified framework that reveals these disparate methods are actually different approximations of a single theoretical ideal: Shapley values.
A Unified Framework: Expectation Shapley (ES) Values
The authors propose Expectation Shapley (ES) values as a unifying framework for "additive feature attribution." This framework defines a class of methods that explain a model's prediction as a sum of effects attributed to each input feature.
The power of ES values lies in their axiomatic foundation. The authors prove that ES values are the only additive values that satisfy three fundamental properties derived from cooperative game theory:
- Efficiency: The sum of the attributed feature importance values must exactly equal the model's output for that specific instance.
- Symmetry: If two features contribute identically to the model's output across all possible contexts, they must receive identical importance values.
- Monotonicity: If a feature's marginal contribution increases in one model compared to another, its importance value should not decrease.
By establishing these axioms, the authors demonstrate that many existing methods are essentially trying to compute or approximate these unique values. For instance, DeepLIFT and LRP are shown to be fast, recursive approximations of ES values tailored for deep neural networks.
Refining Interpretability Heuristics
Beyond unification, this framework provides a rigorous basis for refining existing heuristics. For model-agnostic methods like LIME, which approximate local model behavior using linear models, the authors derive the Shapley Kernel. This specific weighting function mathematically guarantees that the resulting linear model will converge to Shapley values, satisfying the core axioms where other kernels (like those based on cosine or L2 distance) fail.
Furthermore, the framework offers a more theoretically sound approach to handling non-linearities. In deep learning, the max function is often handled heuristically in methods like DeepLIFT. By applying the principles of ES values, the authors identify a more nuanced attribution method for max layers that better reflects the true contribution of each input.
Results and Practical Impact
The utility of this unified approach was validated through both quantitative benchmarks and qualitative analysis. Using a "debiased lasso" approach with the Shapley Kernel, the authors demonstrated more accurate feature impact estimation with fewer model evaluations compared to traditional methods on synthetic and standard decision tree benchmarks.
On the UCI Adult Census dataset, the authors used their novel visualization techniques (force plots) to explain income predictions. This led to a significant qualitative discovery: "marriage status" was a dominant predictor of income. This suggested the dataset likely captured joint household income rather than individual earnings—a critical insight into the data's nature that global importance metrics might overlook.
Conclusion and Limitations
This work brings much-needed theoretical rigor to the field of Explainable AI (XAI). By showing that diverse interpretation methods are connected through the common thread of Shapley values, it provides a clear path forward for developing more reliable and efficient explanation tools.
However, challenges remain. Calculating exact Shapley values is NP-hard as the number of features grows, necessitating the continued use of approximations. Additionally, the framework relies on an additive representation of feature importance; while highly interpretable for humans, this may not capture complex, high-order feature interactions as naturally as some non-linear methods. Despite these limitations, the unified framework allows for the development of principled approximations that balance accuracy and speed, moving XAI from heuristic-based approaches toward a solid theoretical foundation.
Summary updated