← Latest papers
🤖 machine learning

TN-SHAP-G: Graph-Structured Tensor Network Surrogates for Shapley Values and Interactions

The paper introduces TN-SHAP-G, a framework that utilizes graph-aligned tensor network surrogates to efficiently compute exact Shapley values and higher-order interactions for graph-structured inputs, overcoming the exponential complexity and sampling variance inherent in traditional methods.

Original authors: Farzaneh Heidari, Guillaume Rabusseau

Published 2026-06-02
📖 4 min read☕ Coffee break read

Original authors: Farzaneh Heidari, 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, black-box machine that takes a picture of a molecule (a graph of atoms and bonds) and predicts whether it's dangerous or safe. You want to know: Which specific atoms are responsible for that prediction? And even more importantly, do certain groups of atoms work together to create that result?

This is where Shapley values come in. Think of them as a fair way to split the "credit" for a prediction among all the players (atoms) in the game. However, calculating this credit is a nightmare. To know exactly how much an atom contributes, you have to test every possible combination of atoms (keeping some, hiding others) to see how the prediction changes. If you have 20 atoms, there are over a million combinations. If you have 50, the number is so huge it would take longer than the age of the universe to check them all.

Current methods try to guess the answer by sampling random combinations, but this is slow, noisy, and often misses the subtle teamwork between atoms.

TN-SHAP-G is a new method that solves this by acting like a smart translator and a shortcut. Here is how it works, using simple analogies:

1. The "Shadow Puppet" (The Surrogate)

Instead of asking the black-box machine to run millions of tests, TN-SHAP-G asks it to run just a few hundred tests (like tasting a soup with different ingredients to guess the recipe).

It then builds a simplified "shadow puppet" version of the machine. This isn't a random guess; it's a mathematical structure called a Tensor Network.

  • The Analogy: Imagine the molecule is a city map. The black-box machine is a complex traffic system. TN-SHAP-G builds a simplified model of that city where the roads (connections between atoms) are preserved, but the traffic rules are simplified into a compact, easy-to-calculate map.
  • The Key: This simplified map is built to look exactly like the molecule's shape. If the molecule has a ring shape, the math model has a ring shape. This allows it to capture how atoms influence their neighbors without needing to simulate the whole universe.

2. The "Magic Formula" (Deterministic Recovery)

Once this simplified "shadow puppet" is trained, the magic happens. Because the model is built using a specific type of math (multilinear polynomials), the authors found a closed-form formula to calculate the exact credit for every atom.

  • The Analogy: Usually, to find the average speed of a car, you might time it 1,000 times and take the average (sampling). TN-SHAP-G is like having a perfect blueprint of the car's engine. You don't need to run the car 1,000 times; you just plug the blueprint into a calculator, and it instantly tells you the exact speed.
  • The Result: Once the model is trained, it can spit out the importance of every single atom and every pair of atoms instantly and perfectly, with zero guesswork or randomness.

3. Why It's Better (The "Teamwork" Advantage)

Most methods struggle to figure out how two atoms work together (interactions). They are like trying to guess a secret handshake by watching people shake hands randomly.

  • TN-SHAP-G is like watching the handshake happen in slow motion on a blueprint. It can calculate exactly how much "synergy" exists between two atoms (e.g., "Nitrogen and Oxygen together are 10x more dangerous than either alone") without needing extra tests.
  • Efficiency: While other methods might need 5,000 or 50,000 queries to the black-box machine to get a decent answer, TN-SHAP-G often gets a near-perfect answer with only 50 to 100 queries.

4. What They Tested

The authors tested this on molecules (like drugs and proteins).

  • Small Molecules: They compared it to the "gold standard" (checking every single combination). TN-SHAP-G matched the gold standard almost perfectly (99%+ accuracy) but did it thousands of times faster.
  • Large Molecules: They tested it on huge protein structures where other methods simply crash or take too long. TN-SHAP-G handled them smoothly, scaling up to graphs with hundreds of nodes.

Summary

TN-SHAP-G is a tool that learns a compact, shape-aware "cheat sheet" of how a black-box model makes decisions. Once it has this cheat sheet, it can instantly and perfectly calculate exactly which parts of a graph (like a molecule) are important and how they work together, without needing to ask the black-box model for millions of answers. It turns a problem that usually requires a supercomputer and a lifetime of waiting into something solvable on a standard computer in seconds.

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 →