NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SHAP-IQ: Unified Approximation of any-order Shapley Interactions

Fabian Fumagalli, Maximilian Muschalik, Patrick Kolpaczki, Eyke Hüllermeier, Barbara Hammer · DOI

Introduction

In the field of Explainable AI (XAI), Shapley values have long been considered the gold standard for feature attribution, providing a principled way to determine the contribution of individual features to a model's prediction. However, as models grow in complexity, the limitations of individual feature attribution become apparent. Features rarely act in isolation; in domains ranging from natural language processing to drug discovery, the interaction between features often carries more predictive weight than their individual effects.

SHAP-IQ (SHAPley Interaction Quantification) addresses this by providing a unified, sampling-based framework to efficiently approximate any-order Shapley interactions for black-box models. This approach moves beyond simple attribution to capture the rich dependencies that define modern machine learning performance.

The Challenge of Feature Interactions

While several "Shapley interaction indices" (such as SII, STI, and FSI) have been proposed to capture these dependencies, the field has remained fragmented. Each index typically relies on different mathematical axioms and requires its own specialized, computationally expensive approximation technique. There has been no "one-size-fits-all" method to compute these interactions efficiently for arbitrary groups of features, particularly as the order of interaction increases.

The SHAP-IQ Framework

The core of the SHAP-IQ approach is a novel mathematical representation that expresses any Cardinal Interaction Index (CII)—a general class encompassing most popular interaction definitions—as a weighted sum of model evaluations over feature subsets.

Key technical innovations include:

  • Unified Sampling: Unlike previous permutation-based methods that struggle with high-order interactions, SHAP-IQ utilizes a Monte Carlo sampling strategy. This allows a single model evaluation to simultaneously update estimates for all interaction scores, drastically improving efficiency.
  • Theoretical Rigor: The authors prove that SHAP-IQ is both unbiased and consistent. Furthermore, for standard Shapley values, SHAP-IQ reveals a simplified representation that is mathematically equivalent to "Unbiased KernelSHAP" but significantly easier to compute.
  • S-Efficiency: The framework introduces "s-efficiency," ensuring that the sum of estimated interactions remains constant, thereby preserving critical efficiency axioms during the approximation process.

Experimental Evaluation

The researchers evaluated SHAP-IQ across three distinct domains to test its robustness:

  1. Language Modeling (LM): Using a DistilBERT transformer for sentiment analysis on the IMDB movie review dataset.
  2. Image Classification (ICM): Using a ResNet18 model on ImageNet, where interactions were calculated between "super-pixels."
  3. Synthetic Models: A high-dimensional ($d=30$) Sum of Unanimity Model (SOUM) to allow for exact ground-truth comparisons.

Key Results and Insights

Interaction as an Enrichment

Feature interactions do not replace individual attributions; they enrich them. For example, in sentiment analysis, while individual words like "never" and "forgot" have their own scores, it is their positive interaction that truly captures the sentiment of the phrase "never forgot."

Interaction scores for a movie review excerpt demonstrate how high-order interactions capture nuanced sentiment.

Superior Accuracy and Scalability

Across both language and image models, SHAP-IQ achieved lower Mean Squared Error (MSE) and higher Precision@K (the ability to correctly identify the top K most important interactions) than baseline methods for the same computational budget.

Performance metrics (MSE and Precision@10) across Language Modeling and Image Classification tasks show SHAP-IQ outperforming baselines as model evaluations increase.

Furthermore, the authors found that using $v_0(T) = v(T) - v(\emptyset)$ (the model output minus a baseline) in their representation significantly reduces the variance of estimates compared to using raw model outputs. The method scales linearly with the number of model evaluations, maintaining a low overhead compared to kernel-based baselines that require solving complex optimization problems.

Conclusion and Future Work

SHAP-IQ provides a powerful, unified tool for the XAI community, offering theoretical guarantees and practical efficiency for any-order interactions. While the number of possible interactions grows exponentially with the number of features—requiring future work in human-centered post-processing for interpretability—SHAP-IQ represents a significant step toward understanding the complex dependencies within black-box models. Future research may also explore model-specific variants (similar to TreeSHAP) to further reduce computational complexity in specific architectures.

Summary updated

BibTeX
@inproceedings{fumagalli2023shap,
  author = {Fabian Fumagalli and Maximilian Muschalik and Patrick Kolpaczki and Eyke Hüllermeier and Barbara Hammer},
  title = {{SHAP-IQ: Unified Approximation of any-order Shapley Interactions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=IEMLNF4gK4},
}
Figure