Abstract
KernelSHAP-IQ addresses a critical gap in explainable AI by framing the Shapley Interaction Index (SII) as a solution to a Weighted Least Squares (WLS) optimization problem. This theoretical breakthrough allows for the extension of the popular KernelSHAP algorithm to efficiently approximate high-order feature interactions. The resulting method achieves state-of-the-art performance across diverse machine learning tasks, providing deeper insights into model behavior where feature synergies are paramount.
Introduction: The Interaction Gap
While the Shapley Value (SV) is the standard for attributing model predictions to individual features, it often fails to capture the complex "synergy" between features. In domains like natural language processing (NLP) or medicine, these interactions are frequently more informative than the features in isolation. For instance, in sentiment analysis, the words "never" and "forget" might individually carry negative weight, but their interaction—"never forget"—is strongly positive.
The Shapley Interaction Index (SII) was developed to quantify these synergies, but its exact calculation is computationally prohibitive. While KernelSHAP revolutionized SV estimation by treating it as a WLS problem, a similar optimization-based framework for SII remained elusive until now.
Methodology
The core contribution of this work is the proof that the SII of order $k$ is the unique solution to a WLS problem that constructs an optimal $k$-additive approximation of a model.
The KernelSHAP-IQ Algorithm
Building on this theoretical foundation, the authors propose KernelSHAP-IQ, an iterative algorithm that solves for interactions hierarchically. It first computes the standard SV (order 1), then utilizes the residuals to solve for pairwise interactions (order 2), and continues up to order $k$. The paper introduces two variants:
- Consistent: Guaranteed to converge to the true SII values as the number of model evaluations increases.
- Inconsistent: Theoretically biased but highly effective in low-budget scenarios where model evaluations are limited.
Experimental Evaluation
The authors benchmarked KernelSHAP-IQ against established baselines (Permutation Sampling, SHAP-IQ, and SVARM-IQ) across a wide range of models and data types, including:
- NLP: DistilBert on IMDB reviews.
- Tabular: XGBoost and Neural Networks on bike rental and California housing data.
- Computer Vision: ResNet18 and Vision Transformers (ViT) on ImageNet.
- Synthetic: Sum of Unanimity Models (SOUM) for ground-truth verification.
Key Results and Insights
KernelSHAP-IQ consistently outperforms existing baselines in terms of Mean Squared Error (MSE) and Precision@10. A compelling practical example is found in the California Housing dataset. While standard 1st-order Shapley Values suggest that latitude and longitude are individually important, KernelSHAP-IQ reveals that their specific interaction—representing the location of San Francisco—is the primary driver of the price prediction.
This demonstrates that SII is not merely an axiomatic extension of SV, but a mathematically optimal way to distribute a model's prediction across feature groups to minimize weighted error.
Limitations and Future Work
Despite its success, the WLS representation for orders $k > 2$ currently rests on strong empirical evidence and remains a conjecture requiring formal proof. Additionally, while KernelSHAP-IQ is significantly more efficient than exact methods, the number of interactions still grows combinatorially with the order $k$. Future research may explore feature grouping or other dimensionality reduction techniques to scale the method to even higher-dimensional datasets.
Summary updated