Papers
Topics
Authors
Recent
2000 character limit reached

Shapley Taylor Interaction Index

Updated 13 December 2025
  • STII is a rigorous framework that extends classical Shapley values to attribute higher-order feature interactions.
  • It decomposes model outputs into main effects and interactions, uniquely satisfying five axioms for interpretability.
  • It offers practical insights for domains like tabular data, NLP, and vision by balancing accuracy with computational scalability.

The Shapley Taylor Interaction Index (STII) is a rigorous, axiomatic framework for attributing the output of a black-box model to feature interactions of arbitrary order. Extending the classical Shapley value, which explains additive feature effects, STII isolates contributions from combinations of features—quantifying higher-order dependencies that are inaccessible to standard single-feature importance metrics. The index is uniquely characterized by an extension of the Shapley axioms and closely parallels the truncated Taylor expansion of a function's multilinear extension, rendering it foundational for interpretable machine learning in domains such as tabular modeling, natural language processing, and vision.

1. Formal Definition and Mathematical Foundation

Let N={1,,n}N = \{1,\dots,n\} denote the set of features and f ⁣:2NRf\colon 2^N \to \mathbb{R} a value function giving the model output (e.g., probability, logit, or expected prediction) for any subset of “active” features. For an interaction subset TNT \subseteq N, the order-T|T| Shapley Taylor Interaction Index is expressed by:

ϕT(f)=SNTwS,TΔTf(S),\phi_T(f) = \sum_{S \subseteq N \setminus T} w_{|S|,|T|} \Delta_T f(S),

where the discrete derivative is

ΔTf(S)=UT(1)TUf(SU).\Delta_T f(S) = \sum_{U \subseteq T} (-1)^{|T|-|U|}\, f(S \cup U).

The weight kernel is

ws,t=s!(nst)!(nt+1)!,w_{s,t} = \frac{s! (n-s-t)!}{(n-t+1)!},

where s=Ss=|S|, t=Tt=|T|. For pairwise interactions, the second-order index ϕi,j(f)\phi_{i,j}(f) isolates non-additive effects between features ii and jj. The construction mirrors the Taylor expansion of the multilinear extension of ff; main effects are zeroth/first derivatives, and interactions correspond to higher-order discrete differences (Dhamdhere et al., 2019, Hasegawa et al., 5 Dec 2025, Nohara et al., 2022, Singhvi et al., 19 Mar 2024, Bordt et al., 2022).

2. Fundamental Axioms and Uniqueness

STII is determined by five axioms:

  • Linearity: ϕT(af+bg)=aϕT(f)+bϕT(g)\phi_T(af + bg) = a\phi_T(f) + b\phi_T(g) for any functions f,gf, g and scalars a,ba, b.
  • Dummy: If any feature in TT is non-interacting (i.e., f(S{i})f(S)f(S \cup \{i\}) - f(S) depends only on f({i})f(\{i\})), then all higher-order ϕT\phi_T vanish for T2|T|\geq2.
  • Symmetry: Index values are invariant under permutations of feature labels; ϕT\phi_T re-labels accordingly.
  • Efficiency: The sum over all subsets SS of size k\leq k equals the total gain: SkϕS(f)=f(N)f()\sum_{|S|\leq k} \phi_S(f) = f(N) - f(\emptyset).
  • Interaction Distribution: Pure higher-order interactions do not “leak” to lower orders; for a pure TT-way cross function, only ϕT\phi_T is nonzero for T=k|T| = k.

These axioms, proven in (Dhamdhere et al., 2019, Hasegawa et al., 5 Dec 2025, Bordt et al., 2022), guarantee the uniqueness and interpretive fidelity of STII compared to alternative indices from cooperative game theory.

3. Algorithmic Computation and Scalability

Computation of STII is combinatorial in the number of features. For order-kk interactions, exact evaluation is O(2n)O(2^n) per ϕT\phi_T—scaling as Θ(4n)\Theta(4^n) for all possible interactions. For tree ensembles, polynomial-arithmetic frameworks such as TreeSHAP-IQ achieve exact indices using recursive traversal with summary, interaction, and quotient polynomials (Muschalik et al., 22 Jan 2024). Permutation-based Monte Carlo approximations, stratified or antithetic sampling, and dynamic programming reduce variance and cost for large-scale problems (Nohara et al., 2022, Singhvi et al., 19 Mar 2024).

Tensor network reformulations (Interaction Tensor SHAP, IT-SHAP) allow for polynomial time and polylog depth computation under Tensor Train decomposition, compressing the exponential complexity of discrete difference enumeration to NC2^2 parallel time, conditioned on TT-representability of model and distribution tensors (Hasegawa et al., 5 Dec 2025).

Method Order Supported Complexity
Brute Force Any O(2n)O(2^n)
TreeSHAP-IQ Any (trees) O(poly(n,s))O(\text{poly}(n,s))
Monte Carlo Any O(Mn2)O(M n^2)
IT-SHAP Any O(poly(n,k))O(\text{poly}(n,k))

4. Relationship to Classical Shapley Values and GAMs

The classical Shapley value assigns each feature its marginal contribution, conflating main and interaction effects. STII decomposes the Shapley value into pure main effects (self-interactions) and interactions of arbitrary order. Summing all indices up to order kk recovers the total model output, satisfying the efficiency axiom (Dhamdhere et al., 2019, Bordt et al., 2022, Nohara et al., 2022).

kk-order STII recovers Generalized Additive Models (GAMs) with interaction terms up to order kk: for any f(x)=SkfS(xS)f(x) = \sum_{|S|\leq k} f_S(x_S), the STII gives ISk(x)=fS(xS)I_S^k(x) = f_S(x_S) exactly (Bordt et al., 2022). This aligns the post-hoc attribution with intrinsic interpretability.

5. Empirical Applications and Case Studies

STII has demonstrated empirical utility across domains:

  • Tabular Modeling: In clinical models of colon cancer, STII isolates combinations (e.g., age and bilirubin) whose joint effects exceed main effects—enabling sharper dependence plots and clinicians’ risk stratification (Nohara et al., 2022).
  • LLMs: In NLP, pairwise STII quantifies nonlinear syntactic and semantic dependencies (e.g., idiom structure, syntactic proximity). Elevated STII for idiomatic token pairs evidences non-compositionality in model representations (Singhvi et al., 19 Mar 2024).
  • Tree Ensembles: Datasets such as German Credit, Bank, or California housing show key features’ importance is supplanted by interactions, e.g., latitude–longitude in real estate (Muschalik et al., 22 Jan 2024).
  • Vision and Speech: STII heatmaps delineate object boundaries in images and phonetic coarticulation in speech frames—reflecting structured interaction patterns in model outputs (Singhvi et al., 19 Mar 2024).

6. Practical Considerations and Limitations

Truncation to second- or third-order interactions is typically sufficient in practice for sparse or weakly correlated domains. Computational infeasibility arises for k>3k > 3 in high dimensions unless leveraging structure (e.g., trees, TT format, dynamic pruning). Sampling variance can yield spurious small interactions. Interventional vs. observational definitions of f(S)f(S) may alter attribution meaning and computational burden (Muschalik et al., 22 Jan 2024).

Projection onto the most influential interactions, ranking by standard deviation or domain priors, is recommended. Centering interactions (interpreting ϕi,j\phi_{i,j} as the extra contribution beyond main effects) clarifies dependence plots (Nohara et al., 2022, Singhvi et al., 19 Mar 2024).

7. Extensions, Generalizations, and Ongoing Research

The framework admits generalization to structured inputs, as in the Myerson-Taylor index, which internalizes graph connectivity in node-wise and subgraph interactions—uniquely axiomatized for graph neural networks (Bui et al., 23 May 2024). The TT contraction formalism in IT-SHAP unifies main and higher-order effects for scalable interaction analysis in high-dimensional models (Hasegawa et al., 5 Dec 2025).

Recent work connects STII to the broader family of nn-Shapley values, which characterize all possible function decompositions up to order nn, bringing post-hoc explanations for complex models into harmony with inherently interpretable model classes (Bordt et al., 2022).

Further methodology refinements center on algorithmic efficiency for large ensembles, tensor network contraction, and background distribution estimation—affecting every facet of practical model interpretation for state-of-the-art black-box architectures.

Whiteboard

Follow Topic

Get notified by email when new papers are published related to Shapley Taylor Interaction Index (STII).