Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

QuadraSHAP: Stable and Scalable Shapley Values for Product Games via Gauss-Legendre Quadrature

About

We study the efficient computation of Shapley values for \emph{product games} -- cooperative games in which the coalition value factorizes as a product of per-player terms. Such games arise in machine learning explainability whenever the value function inherits a multiplicative structure from the underlying model, as in kernel methods with product kernels and tree-based models. Our key result is that the Shapley value of each player in a product game admits an exact one-dimensional integral representation: the weighted sum over exponentially many feature coalitions collapses to the integral of a degree-$(d-1)$ polynomial over $[0,1]$, where $d$ is the total number of features. This yields a Gauss--Legendre quadrature scheme that is \emph{provably exact} whenever the number of nodes satisfies $m_q \geq \lceil d/2 \rceil$, and otherwise provides a \emph{near-exact} approximation with error provably decaying geometrically in $m_q$. In practice, a few hundred nodes can achieve highly precise estimates even with thousands of features. Building on this formulation, we derive a numerically stable implementation via log-space evaluation, together with an efficient parallel implementation based on associative scan primitives that achieves $O(d\,m_q)$ total work and $O(\log d)$ parallel time. Experiments show that \textsc{QuadraSHAP} is the fastest numerically stable method across all tested configurations.

Majid Mohammadi, Grigory Reznikov, Pavel Sinitcyn, Krikamol Muandet, Siu Lun Chau• 2026

Related benchmarks

TaskDatasetResultRank
Tree Explainer Runtime and Stability AnalysisSynthetic data d=100
Runtime (ms)0.006
72
TreeSHAP ExplanationSynthetic d=10
Runtime (ms)0.005
41
Tree Explainer Runtime and Stability AnalysisSynthetic data d=10
Runtime (ms)0.005
29
Kernel explanationSynthetic
Runtime (s/instance)0.11
8
Text ClassificationEmotion
Execution Time (ms)11.3
6
Text Classificationsms_spam
Execution time (ms)9.68
6
Tree ExplanationEmotion
Runtime (ms/instance)11.3
6
Tree ExplanationSMS Spam
Runtime (ms/instance)9.68
6
Text ClassificationIMDB
Execution Time (ms)3.75
5
Text ClassificationSST2
Execution Time (ms)60.5
5
Showing 10 of 19 rows

Other info

Follow for update