SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.09291 · NeurIPS · 2024

A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening

Haggai Maron, Fabrizio Frasca, Guy Bar-Shalom, Yam Eitan

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2406.09291.json · badge: /api/ran/2406.09291.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
BarSGuy/Efficient-Subgraph-GNNs canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
get_all_pairs_shortest_paths Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/preprocess.py
code served (permissive licence) · get_code("9ffa2cf95ac5b0c6")
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 (4, 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 torch

torch.manual_seed(0)

# Create a small adjacency matrix for Floyd-Warshall algorithm
# The function expects a 2D tensor representing distances between nodes
# We'll create a 4x4 adjacency matrix with some edge weights and infinities
adj = torch.tensor([
    [0.0, 1.0, float('inf'), 4.0],
    [1.0, 0.0, 2.0, float('inf')],
    [float('inf'), 2.0, 0.0, 1.0],
    [4.0, float('inf'), 1.0, 0.0]
], dtype=torch.float32)

ARGS = {
    'adj': adj
}
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 2, dtype family float, shape (4, 4) — shape (4, 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
get_coarsened_graph Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/coarsening_func.py
code served (permissive licence) · get_code("80cc23392b358be2")
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)

# Create a small graph with 4 nodes and 3 edges
num_nodes = 4
edge_index = torch.tensor([
    [0, 1, 2],
    [1, 2, 3]
], dtype=torch.long)

edge_attr = torch.tensor([
    [1.0, 2.0],
    [3.0, 4.0],
    [5.0, 6.0]
], dtype=torch.float32)

# Create a small graph object
graph = Data(
    edge_index=edge_index,
    edge_attr=edge_attr,
    num_nodes=num_nodes
)

ARGS = {
    'graph': graph,
    'n_clusters': 2,
    'type': 'K-mean',
    'dim_laplacian': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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 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
get_coarsened_graph_attributes_K_means Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/coarsening_func.py
code served (permissive licence) · get_code("14df510cbecb4592")
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)

# Create a small graph with 4 nodes and some edges
n_nodes = 4
n_edges = 5

# Create edge_index as a 2xN tensor (source, destination pairs)
edge_index = torch.tensor([
    [0, 1, 1, 2, 3],
    [1, 0, 2, 3, 0]
], dtype=torch.long)

# Create edge_attr as Nx3 tensor (edge features)
edge_attr = torch.tensor([
    [0.1, 0.2, 0.3],
    [0.4, 0.5, 0.6],
    [0.7, 0.8, 0.9],
    [1.0, 1.1, 1.2],
    [1.3, 1.4, 1.5]
], dtype=torch.float32)

# Create adjacency matrix (4x4)
adjacency_matrix = np.array([
    [0, 1, 0, 1],
    [1, 0, 1, 0],
    [0, 1, 0, 1],
    [1, 0, 1, 0]
], dtype=np.float32)

n_clusters = 2
dim_laplacian = 2

ARGS = {
    "edge_index": edge_index,
    "edge_attr": edge_attr,
    "adjacency_matrix": adjacency_matrix,
    "n_clusters": n_clusters,
    "dim_laplacian": dim_laplacian
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn, 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
get_loss_func Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/training.py
code served (permissive licence) · get_code("87c78454cb407527")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 Config:
    def __init__(self, dataset_name):
        self.data = type('obj', (object,), {'name': dataset_name})()

ARGS = {
    'cfg': Config('ogbg-molesol')
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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_optim_func Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/training.py
code served (permissive licence) · get_code("ab310e224d130e10")
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 ASAM. 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 collections import defaultdict

torch.manual_seed(0)

# Create a minimal model with named parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.weight_layer = nn.Linear(4, 3)
        self.bias_layer = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.weight_layer(x)
        x = self.bias_layer(x)
        return x

# Create a minimal config class
class Config:
    def __init__(self, dataset_name, lr, wd):
        self.data = type('obj', (object,), {'name': dataset_name})()
        self.training = type('obj', (object,), {'lr': lr, 'wd': wd})()

# Build the model
model = TinyModel()

# Build config for ogbg-molhiv (uses ASAM optimizer)
cfg = Config(dataset_name='ogbg-molhiv', lr=0.001, wd=1e-5)

# Define ARGS
ARGS = {
    'cfg': cfg,
    'model': model
}
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 ASAM — a ASAM output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ASAM 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
get_sched_func Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/training.py
code served (permissive licence) · get_code("5c0f4df6f4ca1127")
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 WarmupCosineAnnealingLR. 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.optim import SGD

torch.manual_seed(0)

# Create a minimal model
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create optimizer
model = TinyModel()
optimizer = SGD(model.parameters(), lr=0.001)

# Create a minimal config object with required attributes
class Config:
    def __init__(self):
        self.data = type('obj', (object,), {'name': 'Peptides-func'})()
        self.training = type('obj', (object,), {
            'epochs': 100,
            'lr': 0.001,
            'patience': 10
        })()

cfg = Config()

ARGS = {
    'cfg': cfg,
    'optim': optimizer,
    'warmup_epochs': 10
}
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 WarmupCosineAnnealingLR — a WarmupCosineAnnealingLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WarmupCosineAnnealingLR 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
get_spd_for_product_graph Ran
ran, honoured the contract we drafted
BarSGuy/Efficient-Subgraph-GNNs/utils/preprocess.py
code served (permissive licence) · get_code("73de73b70ab4d430")
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 int, shape (8, 100) 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
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a small graph with 4 nodes
num_nodes = 4
edge_index = torch.tensor([
    [0, 1, 1, 2, 2, 3],
    [1, 0, 2, 1, 3, 2]
], dtype=torch.long)

graph = Data(edge_index=edge_index, num_nodes=num_nodes)

# Create a coarsened graph with 2 clusters
n_clusters = 2

class CoarsenedGraph:
    def __init__(self, super_nodes):
        self.super_nodes = super_nodes

coarsened_graph = CoarsenedGraph(
    super_nodes=[
        torch.tensor([0, 1]),  # cluster 0 contains nodes 0 and 1
        torch.tensor([2, 3])   # cluster 1 contains nodes 2 and 3
    ]
)

ARGS = {
    'graph': graph,
    'coarsened_graph': coarsened_graph,
    'n_clusters': n_clusters,
    'pad_value': -1,
    'INF_VALUE': 1001.0,
    'MAX_SPD_DIM': 100
}
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 Tensor, ndim 2, dtype family int, shape (8, 100) — shape (8, 100) 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
initialize_best_metrics Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/my_logging.py
code served (permissive licence) · get_code("d06e25f9691220a7")
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

# Set random seed for reproducibility
torch.manual_seed(0)

# The function initialize_best_metrics only takes one parameter: goal
# It validates that goal is either 'minimize' or 'maximize'
# Then returns a dict with val_loss, test_loss, and epoch keys

ARGS = {
    'goal': 'minimize'
}
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 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
load_config Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/arguments.py
code served (permissive licence) · get_code("bb2d04f8c8fcd377")
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 EasyDict. 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 tempfile
import os
import yaml
from easydict import EasyDict as edict

# Create a temporary YAML file for testing
temp_dir = tempfile.mkdtemp()
config_path = os.path.join(temp_dir, "test_config.yaml")

# Write a sample config to the temporary file
sample_config = {
    "model": "test_model",
    "batch_size": 32,
    "learning_rate": 0.001,
    "layers": [64, 128, 256],
    "debug": True
}

with open(config_path, 'w') as f:
    yaml.dump(sample_config, f)

ARGS = {
    "path": config_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
easydict, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EasyDict — a EasyDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EasyDict 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
override_config_with_args Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/arguments.py
code served (permissive licence) · get_code("b6c845f0c18e84b7")
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 NestedConfig. 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 argparse
from argparse import Namespace

class NestedConfig:
    def __init__(self):
        self.general = Namespace(
            seed=42,
            device=0
        )
        self.data = Namespace(
            name='test_dataset',
            bs=32,
            num_workers=4,
            preprocess=Namespace(
                max_dis=10,
                inf_value=999,
                max_spd_elements=100,
                pad_value=0,
                global_attr_max_val=50,
                n_cluster=5,
                dim_laplacian=8
            )
        )
        self.model = Namespace(
            residual=True,
            aggs=['mean', 'sum'],
            sum_pooling=False,
            num_layer=3,
            dim_embed=64,
            final_dim=32,
            dropout=0.1,
            base_mpnn='gcn',
            H=4,
            point_encoder='mlp',
            atom_encoder=Namespace(
                in_dim=16,
                linear=True
            ),
            edge_encoder=Namespace(
                in_dim=8,
                linear=False,
                use_edge_attr_vL=True,
                use_edge_attr_uL=False
            ),
            layer_encoder=Namespace(
                linear=True
            )
        )
        self.training = Namespace(
            lr=0.001,
            wd=1e-5,
            epochs=100,
            patience=10,
            warmup=5
        )
        self.wandb = Namespace(
            project_name='test_project'
        )

cfg = NestedConfig()

ARGS = {
    'cfg': cfg,
    'return_nested': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NestedConfig — a NestedConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NestedConfig 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
spectral_clustering Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/coarsening_func.py
code served (permissive licence) · get_code("4a401f868d8c79e3")
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
from scipy.linalg import eigh
from sklearn.cluster import KMeans

# Create a small valid adjacency matrix
# Using a 4x4 symmetric matrix representing a simple graph
adjacency_matrix = np.array([
    [0, 1, 1, 0],
    [1, 0, 1, 1],
    [1, 1, 0, 1],
    [0, 1, 1, 0]
], dtype=float)

ARGS = {
    "adjacency_matrix": adjacency_matrix,
    "n_clusters": 2,
    "dim_laplacian": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — 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
str2bool Ran
ran, violated the contract we drafted
BarSGuy/Efficient-Subgraph-GNNs/utils/arguments.py
code served (permissive licence) · get_code("7c508037b40522af")
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 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 argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test cases for str2bool
ARGS = {
    'v': 'true'  # string input that should convert to boolean
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — 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
update_best_metrics Ran
ran; our contract draft was wrong, not the code
BarSGuy/Efficient-Subgraph-GNNs/utils/my_logging.py
code served (permissive licence) · get_code("92a281b2818ac230")
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

torch.manual_seed(0)

# Construct arguments for update_best_metrics
best_metrics = {
    'val_loss': float('inf'),
    'test_loss': float('inf'),
    'epoch': 0
}

val_metric = 0.5
test_metric = 0.6
epoch = 1
goal = 'minimize'

ARGS = {
    'best_metrics': best_metrics,
    'val_metric': val_metric,
    'test_metric': test_metric,
    'epoch': epoch,
    'goal': goal
}
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 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
get_zinc12k_dataloader Not yet run
unverified (harvested, no recorded run)
BarSGuy/Efficient-Subgraph-GNNs/utils/data.py
code served (permissive licence) · get_code("4d396f8ff7388ef6")
How it ran

no invocation recorded.

get_zincfull_dataloader Not yet run
unverified (harvested, no recorded run)
BarSGuy/Efficient-Subgraph-GNNs/utils/data.py
code served (permissive licence) · get_code("083c1d99bb6ad80b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 1 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
str2bool 175 other papers
125 dated earlier, 2 the same month, 47 later, 1 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
initialize_best_metrics 1 other paper
1 dated earlier
2402.08450 (2024-02)
Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products
load_config 1 other paper
1 dated earlier
2402.08450 (2024-02)
Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products
update_best_metrics 1 other paper
1 dated earlier
2402.08450 (2024-02)
Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products

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

Repositories linked to this paper

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

Abstract

Subgraph GNNs enhance message-passing GNNs expressivity by representing graphs as sets of subgraphs, demonstrating impressive performance across various tasks. However, their scalability is hindered by the need to process large numbers of subgraphs. While previous approaches attempted to generate smaller subsets of subgraphs through random or learnable sampling, these methods often yielded suboptimal selections or were limited to small subset sizes, ultimately compromising their effectiveness. This paper introduces a new Subgraph GNN framework to address these issues. Our approach diverges from most previous methods by associating subgraphs with node clusters rather than with individual nodes. We show that the resulting collection of subgraphs can be viewed as the product of coarsened and original graphs, unveiling a new connectivity structure on which we perform generalized message passing. Crucially, controlling the coarsening function enables meaningful selection of any number of subgraphs. In addition, we reveal novel permutation symmetries in the resulting node feature tensor, characterize associated linear equivariant layers, and integrate them into our Subgraph GNN. We also introduce novel node marking strategies and provide a theoretical analysis of their expressive power and other key aspects of our approach. Extensive experiments on multiple graph learning benchmarks demonstrate that our method is significantly more flexible than previous approaches, as it can seamlessly handle any number of subgraphs, while consistently outperforming baseline approaches. Our code is available at https://github.com/BarSGuy/Efficient-Subgraph-GNNs. * Equal contribution. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).

For agents

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

get_harvested_code_for_paper("2406.09291")
get_code_for_paper("2406.09291")
have("2406.09291")

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

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

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

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

Connect an agent — have() is free.