SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.03753 · 2021

From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awareness

arXiv · PDF · Open in the Atlas

Code that ran

15 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2110.03753.json · badge: /api/ran/2110.03753.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
GNNAsKernel/GNNAsKernel community (classifier label)
classifier basis not recorded on the link
15 ran · 3 no recorded run
FunctionStatusWhere it lives
barabasi_albert Ran
ran, honoured the contract we drafted
GNNAsKernel/GNNAsKernel/core/data_utils/graph_generation.py
pointer only (licence: MIT); the stored copy get_code serves, from valentincuzin/GCL-Link-Prediction, is pointer only (licence: NONE) · get_code("3f4feffe7a709b10")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from valentincuzin/GCL-Link-Prediction, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_block_num_edges Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/sbm_cliques.py
code served (permissive licence) · get_code("425c2e76c1369d72")
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 ndarray, ndim 1, dtype family int, shape (3,) 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 a small graph with edges
# edges should be a 2xE tensor where edges[0] contains source nodes and edges[1] contains target nodes
# We'll create edges that connect nodes within and across blocks
NUM_NODES_PER_BLOCK = 4
NUM_BLOCKS = 3
total_nodes = NUM_NODES_PER_BLOCK * NUM_BLOCKS

# Create edges: source and target node indices
# Edge format: [[src1, src2, src3, ...], [tgt1, tgt2, tgt3, ...]]
# Let's create some edges that fall within blocks and some that cross
edges_list = [
    # Block 0 internal edges
    [0, 0, 1, 2],
    [1, 2, 3, 3],
    # Block 1 internal edges
    [4, 4, 5, 6],
    [5, 6, 7, 7],
    # Block 2 internal edges
    [8, 8, 9, 10],
    [9, 10, 11, 11],
    # Cross-block edges (these won't be counted as block edges)
    [0, 5, 10],
    [5, 10, 0],
]

edges = torch.tensor([
    [0, 0, 1, 2, 4, 4, 5, 6, 8, 8, 9, 10, 0, 5, 10],
    [1, 2, 3, 3, 5, 6, 7, 7, 9, 10, 11, 11, 5, 10, 0]
], dtype=torch.long)

ARGS = {
    "edges": edges,
    "NUM_NODES_PER_BLOCK": NUM_NODES_PER_BLOCK,
    "NUM_BLOCKS": NUM_BLOCKS,
}
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 ndarray, ndim 1, dtype family int, shape (3,) — shape (3,) 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
count_parameters Ran
ran, honoured the contract we drafted
GNNAsKernel/GNNAsKernel/core/train_helper.py
code served (permissive licence) · get_code("f6b944f50d3f15ae")
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) and returned int, ndim 0, dtype family int, 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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
erdos_renyi Ran
ran, honoured the contract we drafted
GNNAsKernel/GNNAsKernel/core/data_utils/graph_generation.py
pointer only (licence: MIT); the stored copy get_code serves, from valentincuzin/GCL-Link-Prediction, is pointer only (licence: NONE) · get_code("5ab4deddff163d3b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from valentincuzin/GCL-Link-Prediction, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

first_neighbours Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/graph_algorithms.py
code served (permissive licence) · get_code("2a59fa799463cd9d")
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 ndarray, ndim 1, dtype family int, shape (4,) 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 numpy as np

# Create a small adjacency matrix
# 4 nodes with some connections
A = np.array([
    [0, 1, 1, 0],
    [1, 0, 1, 1],
    [1, 1, 0, 1],
    [0, 1, 1, 0]
], dtype=np.float32)

ARGS = {
    "A": A
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (4,) — shape (4,) 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
generate_sbm_task1 Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/sbm_cliques.py
code served (permissive licence) · get_code("a471d7256b3eb9bd")
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

torch.manual_seed(0)
np.random.seed(0)

ARGS = {
    "NUM_NODES_PER_BLOCK": 3,
    "NUM_BLOCKS": 2,
    "INTER_PROB": 0.1,
    "INTRA_PROB": 0.8,
    "with_clique": True,
}
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
generate_sbm_task2 Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/sbm_cliques.py
code served (permissive licence) · get_code("f3ee26dcf23b9502")
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)
np.random.seed(0)

ARGS = {
    "NUM_NODES_PER_BLOCK": 3,
    "NUM_BLOCKS": 2,
    "INTER_PROB": 0.1,
    "INTRA_PROB": 0.8,
    "clique_ratio": 0.5,
}
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
grid Ran
ran, honoured the contract we drafted
GNNAsKernel/GNNAsKernel/core/data_utils/graph_generation.py
code served (permissive licence) · get_code("5547f9317a2e9d3e")
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 Graph. 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 networkx as nx
import math

def grid(N):
    """ Creates a m x k 2d grid graph with N = m*k and m and k as close as possible """
    m = 1
    for i in range(1, int(math.sqrt(N)) + 1):
        if N % i == 0:
            m = i
    return nx.grid_2d_graph(m, N // m)

ARGS = {
    "N": 12
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 2 and dtype family int 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
identity Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/graph_algorithms.py
code served (permissive licence) · get_code("fb8499ec76ac4593")
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 ndarray, ndim 2, dtype family float, shape (2, 4) 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 numpy as np

# The function takes an adjacency matrix A and node features F
# and simply returns F unchanged
A = np.array([[0, 1, 0, 0],
              [1, 0, 1, 0],
              [0, 1, 0, 1],
              [0, 0, 1, 0]], dtype=np.float32)

F = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]], dtype=np.float32)

ARGS = {
    "A": A,
    "F": F
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
is_connected Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/graph_algorithms.py
code served (permissive licence) · get_code("49425b9ed823cdbc")
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 bool, 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 math
import numpy as np

# Create a small connected adjacency matrix
# A 3x3 adjacency matrix representing a connected graph
A = np.array([
    [0, 1, 1],
    [1, 0, 1],
    [1, 1, 0]
], dtype=float)

ARGS = {
    "A": A
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
k_fold Ran
ran; our contract draft was wrong, not the code
GNNAsKernel/GNNAsKernel/core/train_helper.py
code served (permissive licence) · get_code("3f97bfae7118b1d2")
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 tuple. 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
from torch_geometric.data import Data, InMemoryDataset

torch.manual_seed(0)

class SimpleDataset(InMemoryDataset):
    def __init__(self):
        super().__init__(root=None)
        # Create a simple dataset with labels for stratification
        x = torch.randn(10, 4)  # 10 samples, 4 features
        y = torch.tensor([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=torch.long)
        self.data = Data(x=x, y=y)
    
    def len(self):
        return 10
    
    def get(self, idx):
        return self.data

dataset = SimpleDataset()

ARGS = {
    "dataset": dataset,
    "folds": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
read_gin_tudataset Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/tudataset_gin_split.py
code served (permissive licence) · get_code("1e745661a3f4937f")
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 tuple. 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
import networkx as nx
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and a minimal dataset file
temp_dir = tempfile.mkdtemp()

# Create a minimal GIN TU dataset format file
dataset_name = "test_dataset"
dataset_path = os.path.join(temp_dir, f"{dataset_name}.txt")

# Write a minimal valid dataset file
# Format: first line is number of graphs
# Then for each graph: n (nodes) l (label)
# Then for each node: node_tag num_edges neighbor1 neighbor2 ... [optional_features]
with open(dataset_path, 'w') as f:
    f.write("2\n")  # 2 graphs
    
    # Graph 1: 3 nodes, label 0
    f.write("3 0\n")
    f.write("0 2 1 2\n")  # node 0: tag 0, 2 edges to nodes 1,2
    f.write("1 1 0\n")    # node 1: tag 1, 1 edge to node 0
    f.write("2 1 0\n")    # node 2: tag 2, 1 edge to node 0
    
    # Graph 2: 2 nodes, label 1
    f.write("2 1\n")
    f.write("0 1 1\n")    # node 0: tag 0, 1 edge to node 1
    f.write("1 1 0\n")    # node 1: tag 1, 1 edge to node 0

ARGS = {
    "root": temp_dir,
    "dataset": dataset_name,
    "degree_as_tag": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
to_sparse Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/transform.py
code served (permissive licence) · get_code("f930a8015a340687")
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 tuple. 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

torch.manual_seed(0)

# node_mask: used with .nonzero().T, so it's a 2D tensor of boolean/integer values
# The result subgraphs_nodes[0] and subgraphs_nodes[1] are indexed into hop_indicator
# So we need shapes that work together
node_mask = torch.tensor([
    [1, 0, 1, 0],
    [0, 1, 1, 0],
    [1, 1, 0, 1]
], dtype=torch.bool)

# edge_mask: used with .nonzero().T, so it's a 2D tensor of boolean/integer values
edge_mask = torch.tensor([
    [1, 0, 1],
    [0, 1, 0],
    [1, 0, 1],
    [0, 1, 1]
], dtype=torch.bool)

# hop_indicator: indexed as hop_indicator[subgraphs_nodes[0], subgraphs_nodes[1]]
# subgraphs_nodes from node_mask.nonzero() will have shape [num_true_elements, 2]
# After .T it becomes [2, num_true_elements]
# So we need a 2D tensor that can be indexed with these coordinates
# node_mask has shape [3, 4], so nonzero will give indices in range [0,3) and [0,4)
hop_indicator = torch.randn(3, 4)

ARGS = {
    "node_mask": node_mask,
    "edge_mask": edge_mask,
    "hop_indicator": hop_indicator
}
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 tuple — a tuple 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
to_torch_geom Ran
ran on a synthesized input
GNNAsKernel/GNNAsKernel/core/data_utils/data_pna.py
code served (permissive licence) · get_code("62d7c9d7e000ee36")
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 dict. 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
from torch_geometric.data.data import Data
from torch_geometric.utils import dense_to_sparse

torch.manual_seed(0)

# Build tiny adjacency matrices (dense, will be converted to sparse)
# Shape: [batch_size=2, num_graphs=2, nodes=3, nodes=3]
adj_train = torch.tensor([
    [
        [[0., 1., 0.], [1., 0., 1.], [0., 1., 0.]],
        [[0., 1., 1.], [1., 0., 0.], [1., 0., 0.]]
    ],
    [
        [[0., 1., 0.], [1., 0., 1.], [0., 1., 0.]],
        [[1., 0., 1.], [0., 1., 0.], [1., 0., 1.]]
    ]
])

adj_test = torch.tensor([
    [
        [[0., 1., 0.], [1., 0., 0.], [0., 0., 0.]],
        [[0., 0., 1.], [0., 0., 1.], [1., 1., 0.]]
    ]
])

# Build node features
# Shape: [batch_size=2, num_graphs=2, nodes=3, feature_dim=4]
features_train = torch.randn(2, 2, 3, 4)
features_test = torch.randn(1, 2, 3, 4)

# Build node labels (positions)
# Shape: [batch_size=2, num_graphs=2, nodes=3, pos_dim=2]
node_labels_train = torch.randn(2, 2, 3, 2)
node_labels_test = torch.randn(1, 2, 3, 2)

# Build graph labels
# Shape: [batch_size=2, num_graphs=2, 1] (scalar labels per graph)
graph_labels_train = torch.randint(0, 2, (2, 2, 1), dtype=torch.float)
graph_labels_test = torch.randint(0, 2, (1, 2, 1), dtype=torch.float)

# Construct the nested dictionaries
adj = {
    'train': [adj_train[0], adj_train[1]],
    'test': [adj_test[0]]
}

features = {
    'train': [features_train[0], features_train[1]],
    'test': [features_test[0]]
}

node_labels = {
    'train': [node_labels_train[0], node_labels_train[1]],
    'test': [node_labels_test[0]]
}

graph_labels = {
    'train': [graph_labels_train[0], graph_labels_train[1]],
    'test': [graph_labels_test[0]]
}

ARGS = {
    'adj': adj,
    'features': features,
    'node_labels': node_labels,
    'graph_labels': graph_labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
update_cfg Ran
ran; our contract draft was wrong, not the code
GNNAsKernel/GNNAsKernel/core/config.py
code served (permissive licence) · get_code("62aaa0dd4a43fa3a")
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 CfgNode. 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.

from yacs.config import CfgNode as CN
import argparse
import os

# Setup minimal config
cfg_base = CN()
cfg_base.dataset = 'ZINC'
cfg_base.num_workers = 8
cfg_base.device = 0
cfg_base.handtune = ''
cfg_base.seed = None
cfg_base.downsample = False
cfg_base.version = 'final'
cfg_base.task = -1
cfg_base.train = CN()
cfg_base.train.batch_size = 128
cfg_base.train.epochs = 100
cfg_base.train.runs = 3
cfg_base.train.lr = 0.001
cfg_base.train.lr_patience = 50
cfg_base.train.lr_decay = 0.5
cfg_base.train.wd = 0.0
cfg_base.train.dropout = 0.0
cfg_base.model = CN()
cfg_base.model.gnn_type = 'GINEConv'
cfg_base.model.hidden_size = 128
cfg_base.model.num_layers = 4
cfg_base.model.mini_layers = 0
cfg_base.model.pool = 'add'
cfg_base.model.residual = True
cfg_base.model.virtual_node = False
cfg_base.model.hops_dim = 16
cfg_base.model.embs = (0, 1, 2)
cfg_base.model.embs_combine_mode = 'concat'
cfg_base.model.mlp_layers = 1
cfg_base.model.use_normal_gnn = False
cfg_base.subgraph = CN()
cfg_base.subgraph.hops = 3
cfg_base.subgraph.walk_length = 0
cfg_base.subgraph.walk_p = 1.0
cfg_base.subgraph.walk_q = 1.0
cfg_base.subgraph.walk_repeat = 5
cfg_base.subgraph.online = True
cfg_base.sampling = CN()
cfg_base.sampling.mode = None
cfg_base.sampling.redundancy = 0
cfg_base.sampling.stride = 2
cfg_base.sampling.random_rate = 0.5
cfg_base.sampling.batch_factor = 1

ARGS = {
    'cfg': cfg_base,
    'args_str': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yacs — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CfgNode — a CfgNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CfgNode 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
config_logger Not yet run
unverified (harvested, no recorded run)
GNNAsKernel/GNNAsKernel/core/log.py
code served (permissive licence) · get_code("c04724063899461e")
How it ran

no invocation recorded.

extract_subgraphs Not yet run
unverified (harvested, no recorded run)
GNNAsKernel/GNNAsKernel/core/transform.py
code served (permissive licence) · get_code("47f0ee2b5e3edb95")
How it ran

no invocation recorded.

select_subgraphs Not yet run
unverified (harvested, no recorded run)
GNNAsKernel/GNNAsKernel/core/transform.py
code served (permissive licence) · get_code("88b93663a02c01ff")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 7 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 7 later) and 11 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
count_parameters 180 other papers
47 dated earlier, 3 the same month, 130 later · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
update_cfg 8 other papers
8 later
2304.07702 (2023-04)
An Empirical Study of Realized GNN Expressiveness
2305.19523 (2023-05)
Harnessing Explanations: LLM-to-LM Interpreter for Enhanced Text-Attributed Graph Representation Learning
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
and 5 more not named here
barabasi_albert 2 other papers
2 later
2309.00976 (2023-09)
Pure Message Passing Can Estimate Common Neighbor for Link Prediction
2605.20257 (2026-05)
Instance Discrimination for Link Prediction
erdos_renyi 2 other papers
2 later
2309.00976 (2023-09)
Pure Message Passing Can Estimate Common Neighbor for Link Prediction
2605.20257 (2026-05)
Instance Discrimination for Link Prediction
grid 2 other papers
2 later
2309.00976 (2023-09)
Pure Message Passing Can Estimate Common Neighbor for Link Prediction
2605.20257 (2026-05)
Instance Discrimination for Link Prediction
k_fold 2 other papers
2 later
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
2312.04234 (2023-12)
Graph Convolutions Enrich the Self-Attention in Transformers!
to_torch_geom 1 other paper
1 later
2206.11140 (2022-06)
Understanding and Extending Subgraph GNNs by Rethinking Their Symmetries

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-23.

Repositories linked to this paper

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

Abstract

Message Passing Neural Networks (MPNNs) are a common type of Graph Neural Network (GNN), in which each node's representation is computed recursively by aggregating representations (messages) from its immediate neighbors akin to a star-shaped pattern. MPNNs are appealing for being efficient and scalable, how-ever their expressiveness is upper-bounded by the 1st-order Weisfeiler-Lehman isomorphism test (1-WL). In response, prior works propose highly expressive models at the cost of scalability and sometimes generalization performance. Our work stands between these two regimes: we introduce a general framework to uplift any MPNN to be more expressive, with limited scalability overhead and greatly improved practical performance. We achieve this by extending local aggregation in MPNNs from star patterns to general subgraph patterns (e.g.,k-egonets):in our framework, each node representation is computed as the encoding of a surrounding induced subgraph rather than encoding of immediate neighbors only (i.e. a star). We choose the subgraph encoder to be a GNN (mainly MPNNs, considering scalability) to design a general framework that serves as a wrapper to up-lift any GNN. We call our proposed method GNN-AK(GNN As Kernel), as the framework resembles a convolutional neural network by replacing the kernel with GNNs. Theoretically, we show that our framework is strictly more powerful than 1&2-WL, and is not less powerful than 3-WL. We also design subgraph sampling strategies which greatly reduce memory footprint and improve speed while maintaining performance. Our method sets new state-of-the-art performance by large margins for several well-known graph ML tasks; specifically, 0.08 MAE on ZINC,74.79% and 86.887% accuracy on CIFAR10 and PATTERN respectively.

For agents

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

get_harvested_code_for_paper("2110.03753")
get_code_for_paper("2110.03753")
have("2110.03753")

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

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

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

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

Connect an agent — have() is free.