← Latest papers
🤖 machine learning

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

This paper introduces QuadraSHAP, a numerically stable and scalable method that computes Shapley values for product games by transforming the exponential coalition summation into an exact or near-exact one-dimensional integral solvable via Gauss-Legendre quadrature, achieving high precision with minimal nodes and efficient parallel performance.

Original authors: Majid Mohammadi, Grigory Reznikov, Pavel Sinitcyn, Krikamol Muandet, Siu Lun Chau

Published 2026-05-08
📖 4 min read☕ Coffee break read

Original authors: Majid Mohammadi, Grigory Reznikov, Pavel Sinitcyn, Krikamol Muandet, Siu Lun Chau

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a complex machine, like a high-tech coffee maker, and it just made a perfect cup of coffee. You want to know: How much did each part contribute to that perfect cup? Was it the water temperature? The grind size? The pressure? Or the specific beans?

In the world of Artificial Intelligence (AI), this is called Feature Attribution. We want to know which "ingredient" (or feature) in our data was most responsible for the AI's prediction.

The gold standard for answering this question is a mathematical concept called Shapley Values. Think of Shapley Values as a fair way to split a bill among friends who ordered different things. It calculates exactly how much each person (feature) contributed to the total cost (the prediction) by looking at every possible combination of friends ordering together.

The Problem: The "Combinatorial Explosion"

Here's the catch: If you have 10 friends, there are 1,024 ways they can group up. If you have 1,000 friends (which is common in AI with thousands of data points), the number of groups is so huge that even the fastest supercomputer would take longer than the age of the universe to calculate the bill for everyone.

Most current methods try to cheat by guessing or using shortcuts.

  • Some shortcuts are fast but unstable: Like trying to balance a tower of Jenga blocks where a tiny wobble makes the whole thing crash (this is called "numerical instability").
  • Some methods are stable but slow: Like trying to count every grain of sand on a beach one by one.

The Solution: QuadraSHAP

The paper introduces a new method called QuadraSHAP. It solves the problem by changing how we look at the math.

1. The Magic Trick: From Counting to Measuring
Instead of trying to count every single possible group of friends (which is impossible), QuadraSHAP realizes that for certain types of AI models (specifically Tree Ensembles like Random Forests and Product Kernel methods), the math has a special "multiplicative" structure.

The authors discovered that instead of counting billions of groups, you can turn the whole problem into a smooth curve (a mathematical integral).

  • The Analogy: Imagine you need to know the total volume of water in a strangely shaped swimming pool.
    • Old Way: Try to count every single molecule of water. (Impossible).
    • QuadraSHAP Way: Measure the depth of the pool at just a few specific, perfectly chosen spots and use a ruler to calculate the total volume.

2. The "Gauss-Legendre" Ruler
The paper uses a mathematical tool called Gauss-Legendre Quadrature. Think of this as a super-precise ruler.

  • If you have a simple shape (few features), you only need to measure at 2 or 3 spots to get the exact answer.
  • If you have a complex shape (thousands of features), you might need a few hundred spots.
  • The Result: Instead of checking billions of combinations, the computer only needs to check a few hundred "measurement points" to get an answer that is either exact or so close to exact that the difference is invisible to the human eye.

3. Stability: The Log-Space Safety Net
When dealing with thousands of features, numbers can get incredibly huge (overflow) or incredibly tiny (underflow), causing computers to crash or give garbage results.

  • QuadraSHAP's Fix: Instead of multiplying huge numbers directly, it converts them into logarithms (like switching from counting individual grains of sand to counting "buckets" of sand). This keeps the numbers manageable and prevents the calculation from crashing, ensuring the result is always stable, even for very deep and complex trees.

What the Experiments Showed

The authors tested QuadraSHAP against the current best methods (like TreeSHAP and Linear TreeSHAP) on both fake data and real-world text classification tasks (like sorting emails as spam or not).

  • Speed: QuadraSHAP was the fastest method in almost every test. For large, complex models, it was 3 to 5 times faster than the previous leaders.
  • Accuracy: While other fast methods started to break down and give wrong answers when the models got too deep (like a tree with 100 levels), QuadraSHAP remained perfectly accurate.
  • Scalability: In tests with 5,000 features, other methods timed out (gave up) after 5 minutes. QuadraSHAP finished in seconds.

Summary

QuadraSHAP is like a new, super-efficient calculator for AI explanations.

  • It stops trying to count every single possibility.
  • It uses a clever mathematical "ruler" to measure the answer with just a few points.
  • It uses a safety net (logarithms) to ensure the math never breaks, no matter how big the problem gets.

The result is a tool that is fast, stable, and accurate, allowing us to understand complex AI models much better than before, without waiting forever or getting wrong answers.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →