Papers
Topics
Authors
Recent
Search
2000 character limit reached

Interaction Tensor SHAP

Updated 13 December 2025
  • Interaction Tensor SHAP is an advanced explainable AI method that computes exact higher-order Shapley–Taylor interactions using tensor train contractions.
  • The framework reformulates discrete derivatives into tensor network contractions, achieving polynomial time complexity and NC² parallelism to overcome exponential barriers.
  • Its tensor train decomposition preserves core Shapley axioms while scaling efficiently to high-dimensional models through bounded TT-ranks.

Interaction Tensor SHAP (IT SHAP) is a framework for computing exact Shapley‐Taylor interaction indices of arbitrary order in high‐dimensional machine learning models, formulated as a tensor network contraction to achieve polynomial time and polylogarithmic depth complexity under tensor train (TT) assumptions. IT SHAP is designed to overcome the exponential computational barrier inherent in existing approaches for higher‐order feature interactions, while maintaining the axiomatic exactness of the Shapley family of attribution methods (Hasegawa et al., 5 Dec 2025).

1. Limitations of Existing Shapley Interaction Methods

Traditional feature attribution techniques in explainable AI largely rely on Shapley value–based formulations, which decompose a model’s output into contributions from individual features. The Shapley–Taylor Interaction Index (STII) generalizes Shapley values to quantify main effects and interactions of arbitrary order by applying discrete derivatives on the value function F:2[n]RF:2^{[n]}\to \mathbb{R}. The central expressions are:

  • Discrete derivative:

δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)

  • Closed-form STII:

ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}

However, enumerating all 2n2^n subsets for fixed SS and TT yields complexity Θ(4n)\Theta(4^n) for general order k=nk=n, which is prohibitive in high‐dimensional settings. Marginal SHAP Tensor (MST) methods recast first‐order effects as tensor contractions under TT structure, but do not extend to higher‐order interactions.

2. Mathematical Formalism: Value and Weight Tensors

IT SHAP reformulates STII exactly in terms of tensor contractions involving two central objects:

  • Value Tensor V(M,P)V^{(M,P)} encodes the model output under feature interventions. For routing index s{1,2}ns\in\{1,2\}^n, which selects which features to keep or impute,

δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)0

  • Weight Tensor δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)1, a modified weighted coalitional tensor (MWCT), assigns the appropriate combinatorial weights δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)2 rolled out from the closed‐form STII expression.

The contraction for order‐δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)3 interactions is:

δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)4

where δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)5 indexes all routing choices.

3. Tensor Train Representation and Polynomial Complexity

A key advance of IT SHAP is showing that the weight tensor δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)6 admits an exact TT decomposition provided its combinatorial weighting function δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)7 is computable by finite-state prefix recursion. Specifically, the TT format expresses an δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)8-mode tensor δSF(T)=WS(1)SWF(TW)\delta_S F(T) = \sum_{W\subseteq S} (-1)^{|S|-|W|} F(T\cup W)9 as a chain ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}0, where each core ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}1, and ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}2 are the TT‐ranks.

Finite‐state prefix construction ensures all TT‐ranks of ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}3 are bounded by ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}4 (Lemma 4.6), dramatically reducing complexity compared to the exponential scaling of naïve enumeration.

4. Algorithmic Workflow for IT SHAP Computation

Under TT assumptions for the model, background distribution tensor, and weight tensor, IT SHAP computation proceeds by parallel contraction of per‐mode TT cores:

  • Inputs: TT decompositions for model, background, and ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}5
  • Precomputation: Router cores ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}6 selecting or imputing each feature.
  • For each mode ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}7, compute:
    • Mode‐ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}8 MST contraction: ISk(F)=knT[n]SδSF(T)(n1T)I^k_S(F) = \frac{k}{n} \sum_{T\subseteq [n]\setminus S} \frac{\delta_S F(T)}{\binom{n-1}{|T|}}9
    • Incorporate weighting: 2n2^n0 (contracting routing with TT core)
  • Output: Chain 2n2^n1 is the TT representation of 2n2^n2.

Individual interaction terms 2n2^n3 are extracted via TT slice and chain product with complexity 2n2^n4 sequential or NC2n2^n5 parallel time.

Complexity Table

Item STII (Naïve) IT SHAP (TT)
Time complexity 2n2^n6 2n2^n7 (poly 2n2^n8)
Space complexity 2n2^n9 SS0 (poly SS1)
TT‐ranks Exponential in SS2 SS3 for weight/overall poly SS4
Parallel complexity Exponential barrier NCSS5 (depth SS6)
Essential operation SS7 subset enumeration TT contraction, rank‐dependent

5. Axiomatic Exactness and Guarantees

IT SHAP retains the five core axiomatic properties of STII—linearity, dummy, symmetry, efficiency, and interaction distribution—ensuring rigorous attribution semantics. For first‐order (SS8), it exactly matches MST/Shapley value decomposition. The framework thus provides a unified formalization for both main and higher‐order effects with exactness inherited from STII.

6. Illustrative Construction and Scaling Implications

For explicit illustration, consider SS9 features and TT0: the routing index TT1 yields eight configurations. For TT2, the MWCT expansion recovers the expected discrete derivative, and the TT‐core construction yields ranks TT3. The finite state at position TT4 is determined by the running count and flags for membership in TT5, demonstrating polynomial TT‐rank scaling.

A plausible implication is that, whenever empirical models and data distributions exhibit TT‐ranks in the low hundreds, IT SHAP is practical up to hundreds of dimensions on commodity hardware.

7. Practical Impact and Future Directions

By reformulating Shapley–Taylor interactions as TT‐structured tensor contractions, IT SHAP renders tractable the analysis of higher‐order interactions in large black box models. The approach is foundational for scalable interaction‐aware explainable AI (XAI), enabling a granular decomposition of feature interplay previously infeasible in deep and high‐dimensional architectures. Theoretical results guarantee polynomial time and NCTT6 parallelism under TT‐rank conditions (Theorem 4.8). In general tensor networks (TN), complexity is #P‐hard, so TT structure is essential for scalability.

Future research directions include characterizing TT‐rank bounds for real model/distribution pairs, error analysis for background estimation, empirical benchmarking for large TT7, and extensions to alternative tensor formats such as Tucker and CP. Preliminary results indicate feasibility for dimensions TT8 in the hundreds, provided TT ranks remain manageable.

In summary, Interaction Tensor SHAP establishes the first provably exact, scalable, and axiomatically consistent framework for high‐order Shapley–Taylor interactions, formulated as polynomial‐time tensor train contractions (Hasegawa et al., 5 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Interaction Tensor SHAP (IT SHAP).