Papers › Exact Computation of Any-Order Shapley Interactions for Graph Neural Networks

Exact Computation of Any-Order Shapley Interactions for Graph Neural Networks

28 Jan 2025arXiv:2501.16944archive 2025-07-28

Fabian Fumagalli, Maximilian Muschalik, Paolo Frazzetto, Janine Strotherm, Luca Hermes, Alessandro Sperduti, Eyke Hüllermeier, Barbara Hammer

Albeit the ubiquitous use of Graph Neural Networks (GNNs) in machine learning (ML) prediction tasks involving graph-structured data, their interpretability remains challenging. In explainable artificial intelligence (XAI), the Shapley Value (SV) is the predominant method to quantify contributions of individual features to a ML model's output. Addressing the limitations of SVs in complex prediction models, Shapley Interactions (SIs) extend the SV to groups of features. In this work, we explain single graph predictions of GNNs with SIs that quantify node contributions and interactions among multiple nodes. By exploiting the GNN architecture, we show that the structure of interactions in node embeddings are preserved for graph prediction. As a result, the exponential complexity of SIs depends only on the receptive fields, i.e. the message-passing ranges determined by the connectivity of the graph and the number of convolutional layers. Based on our theoretical results, we introduce GraphSHAP-IQ, an efficient approach to compute any-order SIs exactly. GraphSHAP-IQ is applicable to popular message passing techniques in conjunction with a linear global pooling and output layer. We showcase that GraphSHAP-IQ substantially reduces the exponential complexity of computing exact SIs on multiple benchmark datasets. Beyond exact computation, we evaluate GraphSHAP-IQ's approximation of SIs on popular GNN architectures and compare with existing baselines. Lastly, we visualize SIs of real-world water distribution networks and molecule structures using a SI-Graph.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.16944")

Code

Syntology Ran 6 of 8 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · violated contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: found in paper text by Syntology: 8 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

FFmgll/GraphSHAP-IQ found in paper text by Syntology report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 6 ran; 2 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
2ran · violated contract
1ran · our draft was wrong
1ran · fixture could not drive it
2unverified

Licence: 8 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from FFmgll/GraphSHAP-IQ. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

count_interactions FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · 14e52cf2e5dabcb3 · report
generate_interaction_lookup FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 06f79ac14ebcac2c · report
get_bernoulli_weights FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · 3e1a302d7440301e · report
index_generalizes_bv FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology ran · violated contract no licence file found · pointer only · c4f8361c51243c13 · report
index_generalizes_sv FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology ran · violated contract no licence file found · pointer only · f21bdac37289c58b · report
powerset FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · f21e14f8bd8bb9c3 · report
ExactComputer FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology unverified no licence file found · pointer only · 7fbad39bae52c51e · report
InteractionValues FFmgll/GraphSHAP-IQ/shapiq/exact.py found in paper text by Syntology unverified no licence file found · pointer only · bbe6c88b2ba5fb40 · report

Tasks

Explainable Artificial Intelligence (XAI)Explainable artificial intelligence

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections