TL;DR
When explaining complex AI models with thousands of input features, usually only a tiny handful actually drive a specific prediction. This paper introduces Sparse-Leverage SHAP, a method that exploits this hidden sparsity to estimate feature importance (Shapley values) using $\widetilde{O}(s^2)$ model evaluations—scaling with the small number of influential features ($s$) rather than the massive total number of features ($n$), while avoiding numerical blow-ups when samples are scarce.
What Problem Does This Paper Address?
Imagine a black-box model making a medical diagnosis using $n = 10,000$ biomarkers. To understand why it made that call, Explainable AI (XAI) relies on Shapley values—a concept from game theory that fairly assigns credit to each input feature by testing how the prediction changes across subsets of features.
Computing exact Shapley values requires $2^n$ model evaluations, which is impossible for large $n$. Popular approximations like Kernel SHAP recast this as a linear regression problem, sampling feature subsets rather than checking them all. Recently, Leverage SHAP improved this by sampling subsets according to their statistical "leverage," bringing the required queries down to $\widetilde{O}(n)$.
However, even $\widetilde{O}(n)$ is too slow when $n$ is huge. Yet in reality, high-dimensional decisions are often driven by a small, unknown set of $s \ll n$ active features, while the rest are essentially dummies. Can we find and quantify those $s$ needles in the haystack without paying a query cost proportional to the entire haystack?
Methods
The authors build upon the standard Kernel SHAP least-squares regression framework, introducing three novel modifications tailored for sparsity:
- Restricted-Leverage Sampling: Standard Leverage SHAP samples feature subsets based on unrestricted leverage scores, measuring how important a subset is across all $n$ dimensions. The authors instead define restricted leverage scores, measuring worst-case importance over any candidate subset of at most $s$ features. While checking all $\binom{n}{s}$ combinations sounds intractable, they derive a clean, closed-form equation for these scores.
- Sparse Regression via IHT: Instead of standard least-squares, the sampled regression enforces an $s$-sparsity constraint. Because exact sparse regression ($\ell_0$-minimization) is NP-hard, they introduce a fast, polynomial-time solver using Iterative Hard Thresholding (IHT)—taking gradient steps and zeroing out everything except the top $s$ largest values at each iteration.
- Confidence Amplification: A lightweight outer-loop wrapper runs the estimator multiple times and picks the candidate sitting in the tightest majority cluster, boosting statistical confidence at only a logarithmic cost.
Datasets
The authors evaluate their method on two fronts:
- Standard Real-Data Benchmarks: Eight tabular datasets from the
shaplibrary (reproducing prior Leverage SHAP benchmarks): IRIS, California, Diabetes, Adult, Correlated, Independent, NHANES, and Communities, spanning $n = 4$ to $n = 101$ features, using XGBoost models with exact Tree SHAP as ground truth. - Synthetic Sparse Sigmoid Game: A newly constructed controlled benchmark with $n = 30$ players where the output passes the sum of $s$ active features through a sigmoid function. Tested at $s = 3$ (10% sparse) and $s = 12$ (40% sparse), this isolates exact sparsity from real-world noise.
Key Insights and Ideas
- Not all subset sizes are created equal under sparsity: The closed-form math reveals a fascinating intuition. Compared to dense Leverage SHAP, sparse leverage sampling heavily downweights balanced subsets (where roughly half the features are turned on, $k \approx n/2$) by a factor of $s/n$, and shifts sampling probability toward extreme subset sizes (very small or very large subsets).
- Replacing ambient dimension with intrinsic complexity: By proving that the total "restricted leverage mass" of the Shapley matrix is $O(s \log(en/s))$ rather than $n$, the query complexity drops from $\widetilde{O}(n)$ to $\widetilde{O}(s^2)$.
- Sparsity acts as a numerical stabilizer: When you take very few samples ($m < n$), standard weighted least-squares is underdetermined and rank-deficient, causing dense estimators to explode numerically. Enforcing sparsity naturally regularizes the problem.
Key Results
- Query Complexity: Provably achieves relative-error approximation in $O(\frac{s^2}{\epsilon} \log \frac{en}{s} \log(2n) \log \frac{2}{\delta})$ value-function evaluations.
- Drastic Stability Improvements: On NHANES ($n=79$) and Communities ($n=101$) in the low-sample regime ($m < 2n$), dense Leverage SHAP suffers severe numerical instability with median relative errors exploding to $10^8$ and $10^{16}$. Sparse-Leverage SHAP remains completely stable throughout, converging on Communities to an error of 0.28 (beating Optimized Kernel SHAP by 22% at $m=40n$).
- Faster Support Recovery: In the synthetic game ($n=30, s=3$), both leverage methods identify 100% of the true active features by $m = 6n$ evaluations, whereas standard Kernel SHAP lags behind by roughly 30 evaluations.
Limitations and Future Work
- Exact Sparsity Assumption: The theoretical proofs assume inactive features contribute strictly zero. Extending the theory to "compressible" settings—where many features have tiny, non-zero effects—would better mirror real-world data.
- Known $s$: The algorithm requires the user to specify the sparsity budget $s$ upfront; automatically tuning $s$ from data remains an open practical question.
- The $s^2$ vs. $s$ Gap: Because $s^2$ grows faster than $n$ when $s > \sqrt{n}$, the theoretical bound only beats $\widetilde{O}(n)$ when sparsity is very strong. Closing the theoretical gap between their $\widetilde{O}(s^2)$ upper bound and the known $\widetilde{\Omega}(s)$ lower bound is a prime target for future work.
Summary updated