Faith-Shap: The Faithful Shapley Interaction Index

Che-Ping Tsai, Chih-Kuan Yeh, Pradeep Ravikumar

Abstract

Shapley values, which were originally designed to assign attributions to individual players in coalition games, have become a commonly used approach in explainable machine learning to provide attributions to input features for black-box machine learning models. A key attraction of Shapley values is that they uniquely satisfy a very natural set of axiomatic properties. However, extending the Shapley value to assigning attributions to interactions rather than individual players, an interaction index, is non-trivial: as the natural set of axioms for the original Shapley values, extended to the context of interactions, no longer specify a unique interaction index. Many proposals thus introduce additional less "natural" axioms, while sacrificing the key axiom of efficiency, in order to obtain unique interaction indices. In this work, rather than introduce additional conflicting axioms, we adopt the viewpoint of Shapley values as coefficients of the most faithful linear approximation to the pseudo-Boolean coalition game value function. By extending linear to $\ell$-order polynomial approximations, we can then define the general family of faithful interaction indices. We show that by additionally requiring the faithful interaction indices to satisfy interaction-extensions of the standard individual Shapley axioms (dummy, symmetry, linearity, and efficiency), we obtain a unique Faithful Shapley Interaction index, which we denote Faith-Shap, as a natural generalization of the Shapley value to interactions. We then provide some illustrative contrasts of Faith-Shap with previously proposed interaction indices, and further investigate some of its interesting algebraic properties. We further show the computational efficiency of computing Faith-Shap, together with some additional qualitative insights, via some illustrative experiments.

1. Introduction

In the field of Explainable AI (XAI), Shapley values are considered the gold standard for attributing a model's prediction to individual input features. However, features rarely act in isolation. For example, in sentiment analysis, the word "good" is positive, but "not good" is negative. To truly interpret complex models, we must understand these feature interactions. While several interaction indices have been proposed, they often struggle with mathematical consistency—either failing to sum up to the total prediction (losing "efficiency") or relying on non-intuitive axioms.

2. The Challenge of Interaction Indices

The core challenge in moving from individual feature attribution (Order 1) to interaction attribution (Order 2 and beyond) is the loss of uniqueness. In the individual case, four standard axioms (Linearity, Symmetry, Dummy, and Efficiency) uniquely define the Shapley value. For interactions, these axioms are insufficient to specify a single index. Previous methods like the Shapley Taylor Index or the Shapley Interaction Index often introduced less natural rules or sacrificed efficiency to force a unique solution.

3. Methodology: The Faith-Shap Framework

The authors propose a shift in perspective, framing the problem through the lens of faithfulness.

  1. Regression Viewpoint: They interpret standard Shapley values as the coefficients of the most faithful linear approximation to a model. Faith-Shap extends this logic to higher-order polynomials.
  2. Axiomatic Consistency: By requiring this "faithful" index to satisfy the four classic Shapley axioms—Linearity, Symmetry, Dummy, and Efficiency—the researchers derive a unique solution: Faith-Shap.
  3. Computational Efficiency: Unlike traditional methods that require expensive permutation sampling, Faith-Shap is defined via weighted least-squares regression, allowing it to be estimated efficiently using standard optimization tools.
Table 1: Comparison of axiomatic properties across different interaction indices. Faith-Shap is the only index that satisfies the core Shapley axioms while being a Faith-Interaction Index.

4. Experimental Results

The researchers evaluated Faith-Shap against existing indices using BERT-based sentiment analysis (IMDB), tabular XGBoost models (Portuguese Bank Marketing), and synthetic functions with known ground truths.

  • Efficiency and Accuracy: Faith-Shap ensures the sum of all attributions perfectly accounts for the model's prediction. In tabular datasets, it reached target accuracy nearly 8x faster than the Shapley Taylor index.
  • Capturing Complementarity: In IMDB experiments, Faith-Shap revealed that words like "Never" and "forgot" had a highly positive interaction score, accurately capturing the linguistic nuance that individual word scores missed.
  • Superior Approximation: Faith-Shap's polynomial curves tracked actual model utility much more closely than competing indices, which were often "unfaithful" at intermediate subset sizes.

5. Conclusion

Faith-Shap provides a rigorous and efficient framework for measuring feature interactions. By reconciling game-theoretic axioms with the principle of faithful approximation, it offers a more reliable tool for interpreting black-box models. Future work will focus on scaling these computations to even higher-order interactions and exploring more advanced sampling strategies.

Summary updated

BibTeX
@article{tsai2023faith,
  author = {Che-Ping Tsai and Chih-Kuan Yeh and Pradeep Ravikumar},
  title = {{Faith-Shap: The Faithful Shapley Interaction Index}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
}
Figure