← Latest papers
🤖 machine learning

Tractable Shapley Values and Interactions via Tensor Networks

This paper introduces TN-SHAP, a tensor network-based method that approximates Shapley values and interaction indices with polynomial complexity by replacing exhaustive coalition enumeration with a factorized multilinear map, achieving significant speedups over existing approaches while maintaining accuracy.

Original authors: Farzaneh Heidari, Chao Li, Guillaume Rabusseau

Published 2026-06-02
📖 5 min read🧠 Deep dive

Original authors: Farzaneh Heidari, Chao Li, Guillaume Rabusseau

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 sophisticated AI model) that makes predictions. You want to know: "Which specific knobs and dials (features) caused this specific prediction, and how did they work together?"

In the world of AI, this is called Shapley Values. It's a way to fairly split the "credit" for a prediction among all the input features.

However, there's a massive problem with the traditional way of doing this: It's too slow.

The Old Way: The "Cookie Jar" Problem

Imagine you have a jar with 50 different types of cookies (features). To figure out exactly how much each cookie contributes to the final taste of a batch, the old method says you must taste every single possible combination of cookies.

  • With 10 cookies, that's 1,024 combinations.
  • With 50 cookies, that's more combinations than there are atoms in the universe (2502^{50}).

Trying to taste every single combination is impossible. It takes forever, so we usually just guess or taste a few random handfuls, which isn't very accurate.

The New Way: TN-SHAP (The "Magic Recipe Card")

The paper introduces a new method called TN-SHAP. Instead of tasting every possible cookie combination, it uses a clever trick involving Tensor Networks (a type of mathematical structure) and polynomials (math curves).

Here is the analogy:

1. The "Magic Recipe Card" (The Surrogate)

First, the method creates a simplified, "magic" version of the complex machine. Think of this as a recipe card that perfectly mimics how the machine behaves, but in a very structured, organized way.

  • The paper calls this a Tensor Network Surrogate.
  • It breaks the complex machine down into a series of smaller, connected blocks (like a chain of Lego bricks). This structure is efficient and easy to read.

2. The "Dial" Trick (Diagonal Selectors)

Instead of testing every combination of cookies, the method uses a special dial (a mathematical tool called a selector matrix).

  • Imagine you have a dial that controls how much of each cookie is in the mix.
  • You turn the dial to position 0 (no cookie), position 0.5 (half cookie), position 1 (full cookie), etc.
  • Because the "Magic Recipe Card" is built in a special mathematical way (called multilinear), turning this dial creates a smooth curve (a polynomial) that reveals all the information about how the cookies interact at once.

3. The "Math Detective" (Polynomial Interpolation)

Instead of tasting 1,000,000 combinations, the method only needs to taste 50 specific points on that dial curve.

  • It takes these 50 points and uses a standard math technique (called polynomial interpolation) to reconstruct the entire curve.
  • Once it has the curve, it can instantly calculate exactly how much credit each cookie (and every group of cookies) deserves.

Why is this a big deal?

The paper claims three major wins:

  1. Speed:

    • Old Way: Takes exponential time. If you add one more feature, the time doubles. For 50 features, it might take years.
    • TN-SHAP: Takes linear time. It scales up gently. For 50 features, it takes milliseconds.
    • The Result: The paper shows it is 25 to 1,000 times faster than the current best methods (like KernelSHAP-IQ) while keeping the same level of accuracy.
  2. Accuracy:

    • Because it doesn't rely on random guessing (sampling), it gets the exact answer for the "Magic Recipe Card."
    • The paper proves that if the "Magic Recipe Card" is a good copy of the real machine, the explanation will be very close to the truth.
  3. Group Credit (Interactions):

    • It doesn't just tell you which single cookie matters. It tells you how groups of cookies work together (e.g., "Chocolate and Vanilla taste great together, but Chocolate and Salt taste bad").
    • It can calculate these group interactions just as fast as single features.

The Catch (Limitations)

The paper is honest about where this works best:

  • Local Neighborhoods: The "Magic Recipe Card" is built for a specific area. If you ask the machine about a cookie combination it has never seen before, the card might not be perfect. The method works best when you are looking at a specific prediction and its immediate neighbors.
  • Complexity: If the machine is wildly chaotic and doesn't have a structured pattern, the "Magic Recipe Card" might need to be huge to be accurate. However, the paper found that even for complex real-world data (like predicting diabetes or concrete strength), a relatively small card worked perfectly.

Summary

TN-SHAP is like hiring a master chef who doesn't need to cook every single possible dish to know the recipe. Instead, they look at the ingredients, use a special mathematical shortcut to understand the flavor profile, and instantly tell you exactly which ingredients are doing the heavy lifting and which ones are working together. It turns a task that used to take years into one that takes a blink of an eye.

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 →