QuadraSHAP: Stable and Scalable Shapley Values for Product Games via Gauss-Legendre Quadrature
Pith reviewed 2026-05-20 22:39 UTC · model grok-4.3
The pith
Shapley values for product games reduce exactly to the integral of a degree-(d-1) polynomial over [0,1].
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
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 provably exact whenever the number of nodes satisfies m_q ≥ ⌈d/2⌉, and otherwise provides a 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, the authors derive a numerically stable implementation via log-space
What carries the argument
The one-dimensional integral representation that converts the exponential coalition sum into Gauss-Legendre quadrature of a polynomial of degree d-1 over the unit interval.
If this is right
- The exponential 2^d enumeration is replaced by O(d m_q) arithmetic operations.
- Log-space evaluation keeps the procedure numerically stable for large d.
- Associative-scan primitives yield O(log d) parallel depth on modern hardware.
- A few hundred quadrature nodes suffice for high accuracy even when d reaches thousands.
- The same scheme applies directly to product kernels and tree-based models used in practice.
Where Pith is reading between the lines
- The geometric convergence rate could make quadrature preferable to Monte-Carlo sampling even when the game is only approximately multiplicative.
- The integral view might be combined with gradient-based methods to obtain Shapley values for differentiable models without explicit product structure.
- Because the polynomial degree depends only on d, the same quadrature grid can be reused across many queries once d is fixed.
Load-bearing premise
The value function must factorize exactly as a product of per-player terms.
What would settle it
Compute the exact Shapley values by full enumeration on a small product game with known closed form, then check whether the quadrature formula with m_q = ⌈d/2⌉ nodes reproduces those values to machine precision.
Figures
read the original abstract
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.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces QuadraSHAP for efficient computation of Shapley values in product games, where the coalition value factorizes as a product of per-player terms. It derives that each player's Shapley value reduces exactly to a one-dimensional integral over [0,1] of a degree-(d-1) polynomial, enabling a Gauss-Legendre quadrature scheme that is provably exact for m_q >= ceil(d/2) nodes and otherwise yields near-exact approximations with geometric error decay. The work includes a numerically stable log-space implementation and an associative-scan parallelization achieving O(d m_q) work and O(log d) parallel time, with experiments claiming superior speed and stability for kernel and tree models.
Significance. If the central reduction holds, this provides a meaningful advance for scalable, stable SHAP explanations in models with exact multiplicative structure. The explicit use of the beta-integral representation to recover combinatorial weights, combined with classical exactness guarantees from quadrature theory for polynomials, is a clear strength; the parallel scan implementation further supports practical deployment in high-d regimes.
minor comments (3)
- Abstract: the statement that 'a few hundred nodes can achieve highly precise estimates even with thousands of features' would benefit from a supporting table or explicit scaling relation between m_q and d to make the claim quantitative.
- Implementation section: the description of the associative scan for O(log d) parallel time is promising but lacks pseudocode or a small worked example; adding either would improve reproducibility.
- Notation: ensure that the symbol d (total features) is introduced once and used consistently; occasional shifts to n or other variables appear in the provided abstract and should be unified.
Simulated Author's Rebuttal
We thank the referee for the positive and accurate summary of our work on QuadraSHAP, as well as the recommendation for minor revision. We appreciate the recognition of the integral reduction, quadrature guarantees, and parallel implementation as strengths.
Circularity Check
No significant circularity; derivation is self-contained
full rationale
The central claim reduces the Shapley sum for product games to a one-dimensional integral of a degree-(d-1) polynomial via the beta integral representation of binomial coefficients and the exact factorization v(S) = prod a_j * prod b_j. This is a direct algebraic identity followed by the classical Gauss-Legendre quadrature rule for polynomials, both of which are external to the paper and require no fitted parameters, self-citations, or renaming of results. The paper's implementation details (log-space evaluation, parallel scan) are algorithmic consequences rather than load-bearing premises. No step in the provided derivation chain collapses to a self-definition or fitted input called a prediction.
Axiom & Free-Parameter Ledger
free parameters (1)
- number of quadrature nodes m_q
axioms (2)
- standard math Shapley values are defined by the standard four axioms of cooperative games
- standard math Gauss-Legendre quadrature integrates polynomials of degree less than 2m exactly
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.leanwashburn_uniqueness_aczel unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
the weighted sum over exponentially many feature coalitions collapses to the integral of a degree-(d-1) polynomial over [0,1]
-
IndisputableMonolith/Foundation/ArithmeticFromLogic.leanembed_add unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
product game v(S) = ∏_{j∈S} u_j
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
- [1]
-
[2]
Lundberg, Scott M. and Lee, Su-In , booktitle =. A Unified Approach to Interpreting Model Predictions , year =
-
[3]
and Erion, Gabriel and Chen, Hugh and DeGrave, Alex and Prutkin, Jordan M
Lundberg, Scott M. and Erion, Gabriel and Chen, Hugh and DeGrave, Alex and Prutkin, Jordan M. and Nair, Bala and Katz, Ronit and Himmelfarb, Jonathan and Bansal, Nisha and Lee, Su-In , journal =. From Local Explanations to Global Understanding with Explainable AI for Trees , year =
-
[4]
Yu, Peng and Xu, Chao and Bifet, Albert and Read, Jesse , booktitle =. Linear TreeSHAP , year =
-
[5]
Fast Calculation of Feature Contributions in Boosting Trees , year =
Jiang, Zhongli and Zhang, Min and Zhang, Dabao , booktitle =. Fast Calculation of Feature Contributions in Boosting Trees , year =
-
[6]
Blelloch, Guy E. , institution =. Prefix Sums and Their Applications , year =
-
[7]
Cooperative product games , volume =
Dehez, Pierre , journal =. Cooperative product games , volume =
-
[8]
The Explanation Game: Explaining Machine Learning Models Using Shapley Values , year =
Merrick, Luke and Taly, Ankur , journal =. The Explanation Game: Explaining Machine Learning Models Using Shapley Values , year =
-
[9]
Exact shapley attributions in quadratic-time for fanova gaussian processes , volume =
Mohammadi, Majid and Muandet, Krikamol and Tiddi, Ilaria and Ten Teije, Annette and Chau, Siu Lun , booktitle =. Exact shapley attributions in quadratic-time for fanova gaussian processes , volume =
-
[10]
Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics , title =
Janzing, Dominik and Minorics, Lenon and Bl. Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics , title =
-
[11]
Heskes, Tom and Sijben, Enzo and Bucur, Ioana and Claassen, Tom , journal =. Causal Shapley Values: Exploiting Causal Knowledge to Explain Individual Predictions of Complex Models , volume =
-
[12]
Chen, Hugh and Lundberg, Scott M. and Erion, Gabriel G. and Lee, Su-In , journal =. True to the Model or True to the Data? , year =
-
[13]
The Many Shapley Values for Model Explanation , year =
Sundararajan, Mukund and Najmi, Amir , journal =. The Many Shapley Values for Model Explanation , year =
-
[14]
Interpretable Machine Learning , url =
Molnar, Christoph , publisher =. Interpretable Machine Learning , url =. 2022 , bdsk-url-1 =
work page 2022
-
[15]
Kernel Mean Embedding of Distributions: A Review and Beyond , year =
Muandet, Krikamol and Fukumizu, Kenji and Sriperumbudur, Bharath and Sch. Kernel Mean Embedding of Distributions: A Review and Beyond , year =
-
[16]
Why Should I Trust You?: Explaining the Predictions of Any Classifier , year =
Ribeiro, Marco Tulio and Singh, Sameer and Guestrin, Carlos , booktitle =. Why Should I Trust You?: Explaining the Predictions of Any Classifier , year =
-
[17]
shapiq: Shapley interactions for machine learning , volume =
Muschalik, Maximilian and Baniecki, Hubert and Fumagalli, Fabian and Kolpaczki, Patrick and Hammer, Barbara and H. shapiq: Shapley interactions for machine learning , volume =. Advances in Neural Information Processing Systems , pages =
-
[18]
PolySHAP: Extending KernelSHAP with Interaction-Informed Polynomial Regression , year =
Fumagalli, Fabian and Witter, R Teal and Musco, Christopher , journal =. PolySHAP: Extending KernelSHAP with Interaction-Informed Polynomial Regression , year =
-
[19]
Explaining the uncertain: Stochastic shapley values for gaussian process models , volume =
Chau, Siu Lun and Muandet, Krikamol and Sejdinovic, Dino , journal =. Explaining the uncertain: Stochastic shapley values for gaussian process models , volume =
-
[20]
RKHS-SHAP: Shapley values for kernel methods , volume =
Chau, Siu Lun and Hu, Robert and Gonzalez, Javier and Sejdinovic, Dino , journal =. RKHS-SHAP: Shapley values for kernel methods , volume =
-
[21]
Computing exact shapley values in polynomial time for product-kernel methods , year =
Mohammadi, Majid and Chau, Siu Lun and Muandet, Krikamol , journal =. Computing exact shapley values in polynomial time for product-kernel methods , year =
-
[22]
Fast TreeSHAP: Accelerating SHAP Value Computation for Trees , year =
Yang, Jilei , journal =. Fast TreeSHAP: Accelerating SHAP Value Computation for Trees , year =
-
[23]
Linear TreeSHAP: reference implementation , year =
Yu, Peng and Xu, Chao and Bifet, Albert and Read, Jesse , howpublished =. Linear TreeSHAP: reference implementation , year =
-
[24]
Multilinear extensions of games , volume =
Owen, Guillermo , journal =. Multilinear extensions of games , volume =
- [25]
- [26]
-
[27]
and Rabinowitz, Philip , edition =
Davis, Philip J. and Rabinowitz, Philip , edition =. Methods of Numerical Integration , year =
- [28]
-
[29]
Unifying attribution-based explanations using functional decomposition , year =
Gevaert, Arne and Saeys, Yvan , journal =. Unifying attribution-based explanations using functional decomposition , year =
-
[30]
Brent, Richard P. , journal =. The Parallel Evaluation of General Arithmetic Expressions , volume =
-
[31]
Trefethen, Lloyd N. , publisher =. Approximation Theory and Approximation Practice , year =
-
[32]
PeerJ Computer Science , volume=
GPUTreeShap: massively parallel exact calculation of SHAP scores for tree ensembles , author=. PeerJ Computer Science , volume=. 2022 , publisher=
work page 2022
-
[33]
Saravia, Elvis and Liu, Hsien-Chi Toby and Huang, Yen-Hao and Wu, Junlin and Chen, Yi-Shin. CARER : Contextualized Affect Representations for Emotion Recognition. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. 2018. doi:10.18653/v1/D18-1404
-
[34]
Maas, Andrew L. and Daly, Raymond E. and Pham, Peter T. and Huang, Dan and Ng, Andrew Y. and Potts, Christopher , title =. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies , month =. 2011 , address =
work page 2011
-
[35]
Proceedings of the 11th ACM symposium on Document engineering , pages=
Contributions to the study of SMS spam filtering: new collection and results , author=. Proceedings of the 11th ACM symposium on Document engineering , pages=
-
[36]
Wang, Alex and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R. , note=
-
[37]
Bo Pang and Lillian Lee , title =
-
[38]
Li, Weida and Yu, Yaoliang and Low, Bryan Kian Hsiang , booktitle =
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.