Abstract
In explainable machine learning, local post-hoc explanation algorithms and inherently interpretable models are often seen as competing approaches. This work offers a partial reconciliation between the two by establishing a correspondence between Shapley Values and Generalized Additive Models (GAMs). We introduce $n$-Shapley Values, a parametric family of local post-hoc explanation algorithms that explain individual predictions with interaction terms up to order $n$. By varying the parameter $n$, we obtain a sequence of explanations that covers the entire range from Shapley Values up to a uniquely determined decomposition of the function we want to explain. The relationship between $n$-Shapley Values and this decomposition offers a functionally-grounded characterization of Shapley Values, which highlights their limitations. We then show that $n$-Shapley Values, as well as the Shapley Taylor- and Faith-Shap interaction indices, recover GAMs with interaction terms up to order $n$. This implies that the original Shapely Values recover GAMs without variable interactions. Taken together, our results provide a precise characterization of Shapley Values as they are being used in explainable machine learning. They also offer a principled interpretation of partial dependence plots of Shapley Values in terms of the underlying functional decomposition.
Introduction
In the field of Explainable AI (XAI), a tension exists between "glass-box" models, which are interpretable by design (e.g., Generalized Additive Models or GAMs), and "post-hoc" tools used to explain complex black-box models (e.g., Shapley Values/SHAP). These are often viewed as competing philosophies. This research bridges the gap by establishing the exact relationship between the feature attributions derived from Shapley values and the underlying functional structure of the model being explained. A primary challenge addressed is the "interaction problem"—standard Shapley values collapse complex multi-feature interactions into single-feature scores, potentially obscuring the true nature of a model's decision-making process.
Methods: $n$-Shapley Values and the Shapley-GAM
The authors introduce $n$-Shapley Values, a parametric family of explanation algorithms. While standard Shapley values ($n=1$) provide attributions to individual features, $n$-Shapley values extend this to groups of up to $n$ features. As $n$ increases, the explanation becomes more expressive, capturing higher-order interactions.
A central theoretical contribution is the Shapley-GAM. The authors prove that any "subset-compliant" value function implicitly defines a unique functional decomposition of the model. When $n$ equals the total number of features $d$, the $n$-Shapley values correspond exactly to the component functions of this decomposition. Furthermore, they establish a Recovery Property: if a model is a GAM of order $n$ (containing interactions between at most $n$ variables), then $n$-Shapley values will perfectly recover the model's original component functions.
To make these high-dimensional interactions interpretable, the authors propose a visualization technique that "distributes" interaction effects back onto individual feature bars in a stacked format. This allows practitioners to see how much of a feature's importance stems from its main effect versus its interactions with other variables.
Key Insights and Results
The framework reveals that a standard Shapley value is essentially a "lump sum": it is the sum of a feature's main effect plus a fraction of every interaction effect it participates in. Higher-order effects are distributed evenly among all involved features.
Empirical evaluations across datasets like Folktables (US Census data), German Credit, and California Housing validate these findings. Key results include:
- Theoretical Unity: $n$-Shapley values, Shapley Taylor indices, and Faith-Shap indices are unified under the same framework of GAM recovery.
- Model Complexity Profiling: The framework allows for profiling model architectures. For instance, k-Nearest Neighbor (kNN) models were found to rely on extremely high-order interactions, making them "complex" despite their conceptual simplicity.
- Interaction vs. Accuracy: While some interaction is necessary for accuracy, some models exhibit "excessive" interaction that does not necessarily improve performance compared to simpler models like Gradient Boosted Trees.
Conclusion and Limitations
While $n$-Shapley values provide a principled way to bridge post-hoc explanations and interpretable models, challenges remain. Calculating these values for large $n$ is computationally expensive due to the exponential growth of feature subsets. Additionally, estimating higher-order interactions is highly sensitive to sampling noise, requiring significant data to distinguish true interactions from noise. Finally, there is an interpretability limit: while we can now quantify 10-way interactions, they remain fundamentally difficult for humans to grasp. Future work may focus on identifying only the most significant high-order interactions.
Summary updated