NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Unified Framework for Provably Efficient Algorithms to Estimate Shapley Values

Tyler Chen, Akshay Seshadri, Mattia Jacopo Villani, Pradeep Niroula, Shouvanik Chakrabarti, Archan Ray, Pranav Deshpande, Romina Yalovetzky, Marco Pistoia, Niraj Kumar

Abstract

Shapley values are the gold standard for feature attribution in machine learning, but their exact computation is exponentially complex. This paper introduces a unified mathematical framework that provides the first non-asymptotic theoretical guarantees for KernelSHAP by reframing estimation as a "sketched regression" problem. The authors demonstrate a provably efficient way to scale these explanations to high-dimensional data while maintaining high accuracy across diverse benchmarks.

Introduction

In the world of "black-box" machine learning, understanding how specific inputs—like a person's age or a specific pixel—contribute to a model's prediction is critical. Shapley values offer a principled solution, but for a model with $d$ features, exact computation requires $2^d$ evaluations. This exponential growth makes exact calculation impossible for most real-world models.

To address this, practitioners use randomized estimators, most notably KernelSHAP. Despite its popularity, KernelSHAP has lacked rigorous "sample complexity" bounds—mathematical proof of exactly how many samples are needed for a desired level of accuracy. This research closes that gap by translating the Shapley estimation problem into the language of Randomized Numerical Linear Algebra.

Methodology

The authors achieve their theoretical breakthrough by treating randomized estimation as "sketching"—a technique where a massive matrix is compressed into a smaller one that retains essential properties. This allows the application of powerful tools like Matrix Bernstein inequalities to prove convergence.

Sampling Strategies

The framework analyzes three primary ways to pick feature subsets:

  1. Kernel Weights: The standard KernelSHAP approach.
  2. Leverage Scores: An approach used in recent "LeverageSHAP" methods.
  3. Modified $\ell_2$ Sampling: A new hybrid approach introduced in this paper that interpolates between the two, often outperforming both.
Comparison of sampling distributions (Kernel Weights, Leverage Scores, and Modified row-norms) across different feature dimensions $d$.

To handle high-dimensional data (e.g., images), the authors implemented a Poisson approximation for sampling, allowing the method to scale to thousands of features without the computational overflows caused by large combinatorial terms.

Key Results and Insights

The framework reveals that "Sketched Regression" estimators (like KernelSHAP) generally perform better than "Matrix-Vector Multiplication" estimators. Regression is inherently more robust to the noise introduced by random sampling.

Across a diverse range of benchmarks—including tabular health data (NHANES) and high-dimensional images (CIFAR-10)—the authors' implementation consistently achieved lower Mean Squared Error (MSE) than standard libraries.

Mean Squared Error (MSE) performance across various datasets. The plots compare Least-Squares (LS) regression-based estimators against Matrix-Vector (MV) multiplication methods, showing the superior accuracy of the regression approach.

On the CIFAR-10 dataset ($d=3072$), the regression-based estimators produced highly faithful explanations even with a relatively small number of samples, where previous theoretically grounded methods often struggled to converge.

Conclusion

This work provides the first theoretical "shield" for KernelSHAP, proving its efficiency through the lens of sketched regression. While current theoretical bounds depend on model-specific properties that are difficult to compute exactly, this framework paves the way for future adaptive estimators. Such tools could dynamically adjust their sampling distributions to reach desired accuracy levels even faster, further democratizing interpretable AI for complex, high-dimensional models.

Summary updated

BibTeX
@inproceedings{chen2025unified,
  author = {Tyler Chen and Akshay Seshadri and Mattia Jacopo Villani and Pradeep Niroula and Shouvanik Chakrabarti and Archan Ray and Pranav Deshpande and Romina Yalovetzky and Marco Pistoia and Niraj Kumar},
  title = {{A Unified Framework for Provably Efficient Algorithms to Estimate Shapley Values}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=KQLCim1NhT},
}
Figure