Tractable Shapley Values and Interactions via Tensor Networks
Farzaneh Heidari, Chao Li, Guillaume Rabusseau
TL;DR
TN-SHAP introduces a tensor-network surrogate to compute exact Shapley values and Shapley-style interactions with only $O(n)$ forward evaluations, by exploiting multilinearity and using diagonal selectors to aggregate coalitions by size. A polynomial interpolation step on a univariate probe $G_i(t;x)$ recovers size-grouped marginal contributions, while TN contractions with bond dimension $oldsymbol{hi}$ keep the computation tractable as $O(n ext{poly}(oldsymbol{hi})+n^2)$. The framework supports feature-map lifts to preserve multilinearity and improve surrogate fidelity, achieving significant speedups (e.g., $25$–$1000 imes$) over KernelSHAP-IQ with comparable accuracy on UCI benchmarks, and providing theoretical guarantees on approximation error and runtime. Empirically, TN-SHAP recovers first-, second-, and third-order interactions on synthetic multilinear targets and demonstrates robust performance across real-world models, while offering diagnostics through rank and fidelity analyses. Overall, TN-SHAP bridges local interpretability with scalable, faithful explanations by turning exponential coalition evaluation into structured TN contractions and interpolation, enabling tractable, reliable Shapley-based explanations in higher dimensions.
Abstract
We show how to replace the O(2^n) coalition enumeration over n features behind Shapley values and Shapley-style interaction indices with a few-evaluation scheme on a tensor-network (TN) surrogate: TN-SHAP. The key idea is to represent a predictor's local behavior as a factorized multilinear map, so that coalitional quantities become linear probes of a coefficient tensor. TN-SHAP replaces exhaustive coalition sweeps with just a small number of targeted evaluations to extract order-k Shapley interactions. In particular, both order-1 (single-feature) and order-2 (pairwise) computations have cost O(n*poly(chi) + n^2), where chi is the TN's maximal cut rank. We provide theoretical guarantees on the approximation error and tractability of TN-SHAP. On UCI datasets, our method matches enumeration on the fitted surrogate while reducing evaluation by orders of magnitude and achieves 25-1000x wall-clock speedups over KernelSHAP-IQ at comparable accuracy, while amortizing training across local cohorts.
