SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.07117 · 2025

From Nodes to Narratives: Explaining Graph Neural Networks with LLMs and Graph Context

Sourav Medya, Gregoire Fournier, Peyman Baghershahi, Pranav Nyati

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2508.07117.json · badge: /api/ran/2508.07117.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
pbaghershahi/GSPELL community
Papers with Code archive
10 ran · 3 no recorded run
FunctionStatusWhere it lives
Explainer Ran
ran on a synthesized input · constructed an object; no result was computed
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("c9d899319827f4ce")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Explainer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Explainer(nn.Module):
    """ The parametric explainer takes node embeddings and condition vector as inputs, 
	and predicts edge importance scores. Constructed as a 2-layer MLP.
	Args:
		embed_dim: Integer. Dimension of node embeddings.
		graph_level: Boolean. Whether to explain a graph-level prediction task or 
		node-level prediction task.
		hidden_dim: Integer. Hidden dimension of the MLP in the explainer.
	"""

    def __init__(self, embed_dim: int, graph_level: bool, hidden_dim: int=600):
        super(Explainer, self).__init__()
        self.embed_dims = embed_dim * (2 if graph_level else 3)
        self.cond_dims = embed_dim
        self.emb_linear1 = nn.Sequential(nn.Linear(self.embed_dims, hidden_dim), nn.ReLU())
        self.emb_linear2 = nn.Linear(hidden_dim, 1)
        self.cond_proj = nn.Sequential(nn.Linear(self.cond_dims, self.embed_dims), nn.ReLU())

    def forward(self, embed, cond):
        """
		Args:
			embeds: Tensor of shape [n_edges, 2*embed_dim] or [n_edges, 3*embed_dim*].
			cond: Tensor of shape [1, embed_dim]. Condition vector.
		"""
        cond = self.cond_proj(cond)
        out = embed * cond
        out = self.emb_linear1(out)
        out = self.emb_linear2(out)
        return out


ARGS = {
    "embed_dim": 4,
    "graph_level": True,
    "hidden_dim": 16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Explainer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Explainer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
JSE_global_global Ran
ran, honoured the contract we drafted
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("901114382f288e3d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create two tensors of shape [batch_size, z_dim]
# batch_size=2, z_dim=4
z1 = torch.randn(2, 4)
z2 = torch.randn(2, 4)

ARGS = {
    "z1": z1,
    "z2": z2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
JSE_local_global Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("576a73bfc0fba66b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# z_g: Tensor of shape [n_graphs, z_dim]
# Using n_graphs=2, z_dim=4
z_g = torch.randn(2, 4)

# z_n: Tensor of shape [n_nodes, z_dim]
# Using n_nodes=3, z_dim=4
z_n = torch.randn(3, 4)

# batch: Tensor of shape [n_nodes]
# Maps each node to its graph index
# Values should be in range [0, n_graphs)
batch = torch.tensor([0, 0, 1])

ARGS = {
    "z_g": z_g,
    "z_n": z_n,
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
JSE_local_global_negative_paired Ran
ran, honoured the contract we drafted
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("bd1249b06676ae83")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Analyze the function:
# - z_g: size [2*n_batch, dim], gets split into two parts of size [n_batch, dim]
# - z_n: size [2*n_batch*nodes_per_batch, dim], gets split into two parts
# - batch: parameter that is not used in the function body
# - num_graphs = z_g.shape[0] / 2
# - num_nodes = z_n.shape[0] / 2
# - num_sample_nodes = num_nodes / num_graphs

# Let's construct:
# n_batch = 2, so z_g has shape [4, dim]
# nodes_per_batch = 3, so num_nodes = 2 * 2 * 3 = 12, z_n has shape [12, dim]
# dim = 4

dim = 4
n_batch = 2
nodes_per_batch = 3

# z_g: [2*n_batch, dim] = [4, 4]
z_g = torch.randn(2 * n_batch, dim)

# z_n: [2*n_batch*nodes_per_batch, dim] = [12, 4]
z_n = torch.randn(2 * n_batch * nodes_per_batch, dim)

# batch: not used in function, can be any object
batch = None

ARGS = {
    "z_g": z_g,
    "z_n": z_n,
    "batch": batch,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
JSE_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("ed21ce959dfc96c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Test case 1: Two global views (no local, no batch)
batch_size = 2
z_dim = 4

z1 = torch.randn(batch_size, z_dim)
z2 = torch.randn(batch_size, z_dim)

ARGS = {
    'zs': [z1, z2],
    'zs_n': None,
    'batch': None,
    'sigma': None,
    'neg_by_crpt': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
NCE_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("c00190ff2b30cf8d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Small tensors for testing
batch_size = 2
z_dim = 4
n_nodes = 6
n_graphs = 2

# Case 1: Two graph-level embeddings (zs only, len=2)
z1 = torch.randn(batch_size, z_dim)
z2 = torch.randn(batch_size, z_dim)

# Case 2: Two node-level embeddings (zs_n only, len=2)
z1_n = torch.randn(n_nodes, z_dim)
z2_n = torch.randn(n_nodes, z_dim)

# Case 3: Mixed graph and node embeddings
z_g1 = torch.randn(batch_size, z_dim)
z_g2 = torch.randn(batch_size, z_dim)
z_n1 = torch.randn(n_nodes, z_dim)
z_n2 = torch.randn(n_nodes, z_dim)

# Batch assignment for nodes (which graph each node belongs to)
batch_assignment = torch.tensor([0, 0, 0, 1, 1, 1])

# Sigma matrix for multiple views (3x3 case)
sigma_3 = torch.tensor([
    [False, True, True],
    [True, False, True],
    [True, True, False]
])

# Define multiple test cases by selecting different parameter combinations
ARGS = {
    # Test case: zs with 2 graph-level views, no node embeddings
    "zs": [z1, z2],
    "zs_n": None,
    "batch": None,
    "tau": 0.5,
    "norm": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
NT_Xent Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("be00994a4a3a1b02")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two random tensors of shape [batch_size, z_dim]
# Using batch_size=2, z_dim=4 as per requirements
z1 = torch.randn(2, 4)
z2 = torch.randn(2, 4)

ARGS = {
    "z1": z1,
    "z2": z2,
    "tau": 0.5,
    "norm": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_expectation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("6c5944959229bc01")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# For positive=True case: tensor of shape [n_graphs, n_graphs]
masked_d_prime_global = torch.randn(2, 2)

# For positive=False case: tensor of shape [n_nodes, n_graphs]
masked_d_prime_local = torch.randn(3, 2)

# Test with global_global case (positive pairs)
ARGS = {
    "masked_d_prime": masked_d_prime_global,
    "positive": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
infoNCE_local_intra_node Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("1f7c09370c4a5ec7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for z1_n and z2_n
# Shape: [n_nodes, z_dim]
# Using n_nodes=2, z_dim=4 for small tensors
z1_n = torch.randn(2, 4)
z2_n = torch.randn(2, 4)

# tau parameter - float in (0, 1]
tau = 0.5

# norm parameter - boolean
norm = True

ARGS = {
    "z1_n": z1_n,
    "z2_n": z2_n,
    "tau": tau,
    "norm": norm,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_fn Ran
ran; our contract draft was wrong, not the code
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("801ee12eba171cd5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Data. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a simple graph with 5 nodes and some edges
num_nodes = 5
num_edges = 6

# Node features: 5 nodes, 4 features each
x = torch.randn(num_nodes, 4)

# Edge index: 2 x num_edges
edge_index = torch.tensor([
    [0, 1, 2, 3, 1, 4],
    [1, 2, 3, 4, 0, 2]
], dtype=torch.long)

# Edge attributes: num_edges x 3
edge_attr = torch.randn(num_edges, 3)

# Create a Data object
data = Data(x=x, edge_index=edge_index, edge_attr=edge_attr)

# Create a node mask: select nodes 0, 1, 2, 3 (exclude node 4)
node_mask = np.array([1, 1, 1, 1, 0])

ARGS = {
    "data": data,
    "node_mask": node_mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
KHopSampler Not yet run
unverified (harvested, no recorded run)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("2043ddad6e4ecbe7")
How it ran

no invocation recorded.

TAGExplainer Not yet run
unverified (harvested, no recorded run)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("93766fcea251d9eb")
How it ran

no invocation recorded.

infoNCE_local_global Not yet run
unverified (harvested, no recorded run)
pbaghershahi/GSPELL/TAGE/tagexplainer.py
code served (permissive licence) · get_code("ff71bf49cbcabcf0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
NCE_loss
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
2010.13902 (2020-10)
Graph Contrastive Learning with Augmentations
NT_Xent
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
2010.13902 (2020-10)
Graph Contrastive Learning with Augmentations
infoNCE_local_global
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 2 only as an assembly brick
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
2010.13902 (2020-10)
Graph Contrastive Learning with Augmentations
infoNCE_local_intra_node
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
2010.13902 (2020-10)
Graph Contrastive Learning with Augmentations
JSE_global_global
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
JSE_local_global
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
JSE_local_global_negative_paired
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
JSE_loss
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs
get_expectation
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2006.05582 (2020-06)
Contrastive Multi-View Representation Learning on Graphs

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Graph Neural Networks (GNNs) have emerged as powerful tools for learning over structured data, including text-attributed graphs (TAGs), which are common in domains such as citation networks, social platforms, and knowledge graphs. GNNs are not inherently interpretable and thus, many explanation methods have been proposed. However, existing explanation methods often struggle to generate interpretable, fine-grained rationales, especially when node attributes include rich natural language. In this work, we introduce GSPELL, a lightweight, post-hoc framework that uses large language models (LLMs) to generate faithful and interpretable explanations for GNN predictions. GSPELL projects GNN node embeddings into the LLM embedding space and constructs hybrid prompts that interleave soft prompts with textual inputs from the graph structure. This enables the LLM to reason about GNN internal representations and to produce natural-language explanations, along with concise explanation subgraphs. Our experiments across real-world TAG datasets demonstrate that GSPELL achieves a favorable tradeoff between fidelity and sparsity, while improving human-centric metrics such as insightfulness. GSPELL sets a new direction for LLMbased explainability in graph learning by aligning GNN internals with human reasoning. Dataset Description & Relevance Why It Fits Our Work CORA Citation network of CS papers with bag-of-words features. Standard benchmark for node classification on text-rich graphs. WIKICS Wikipedia CS articles linked by hyperlinks, with GloVe embeddings. Large, semantic-rich graph ideal for explanation evaluation. LIAR Fake news detection graph combining statements, speakers, topics. Challenging, heterogeneous graph testing method adaptability. AMAZON Product co-purchase network with 47 categories. Real-world, diverse e-commerce graph to test scalability.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2508.07117")
get_code_for_paper("2508.07117")
have("2508.07117")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2508.07117.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2508.07117.svg)](https://syntology.ai/paper/2508.07117)

Connect an agent — have() is free.