SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.14038 · NeurIPS · 2021

Robustness of Graph Neural Networks at Scale

Stephan Günnemann, Daniel Zügner, Aleksandar Bojchevski, Simon Geisler, Tobias Schmidt, Hakan Şirin

arXiv · PDF · Open in the Atlas

Code that ran

19 of 20 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, 0 violated it and 13 have no contract verdict; 5 failures of our instrument; 1 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.14038.json · badge: /api/ran/2110.14038.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
sigeisler/robustness_of_gnns_at_scale canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
ventr1c/res-gcl community (classifier label)
classifier basis not recorded on the link
13 ran · 0 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran on a synthesized input
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/models/deeprobust_rgcn.py
code served (permissive licence) · get_code("b3092c017157cf84")
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)

# The function expects:
# - output: a tensor with shape (batch_size, num_classes) that has a .max() method
# - labels: a tensor or list of labels with length equal to batch_size

# Create a small output tensor (batch_size=2, num_classes=4)
output = torch.randn(2, 4)

# Create labels tensor (batch_size=2)
labels = torch.LongTensor([0, 2])

ARGS = {
    "output": output,
    "labels": labels,
}
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
bisection Ran
ran on a synthesized input
ventr1c/res-gcl/models/Ariel.py
code served (permissive licence) · get_code("9498bd40d6f15afd")
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 1, dtype family float, 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 torch

torch.manual_seed(0)

# Create small test tensors
a = torch.tensor([0.5, 1.2, 0.3, 2.1], dtype=torch.float32)
eps = torch.tensor(1.5, dtype=torch.float32)
xi = torch.tensor(0.001, dtype=torch.float32)
ub = 1

ARGS = {
    "a": a,
    "eps": eps,
    "xi": xi,
    "ub": ub,
}
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 1, dtype family float, 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
compute_alpha Ran
ran on a synthesized input
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/attacks/nettack.py
code served (permissive licence) · get_code("3dfa8f8448457f20")
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 float64, ndim 0, 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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Case 1: scalar inputs
n_scalar = 100
S_d_scalar = 450.5
d_min_scalar = 2

# Case 2: array inputs
n_array = np.array([50, 100, 150])
S_d_array = np.array([200.3, 450.5, 750.2])
d_min_array = 2

# Create ARGS dict with scalar values
ARGS = {
    "n": n_scalar,
    "S_d": S_d_scalar,
    "d_min": d_min_scalar
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
connected_after Ran
ran on a synthesized input
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/attacks/nettack.py
code served (permissive licence) · get_code("e76a55dd6370c052")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - u: integer (compared with v and checked against -1 implicitly through delta)
# - v: integer (compared with u)
# - connected_before: boolean (returned when u != v)
# - delta: integer (compared with -1)

ARGS = {
    "u": 0,
    "v": 1,
    "connected_before": True,
    "delta": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy, torch — 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
construct_noisy_graph Ran
ran on a synthesized input
ventr1c/res-gcl/construct_graph.py
code served (permissive licence) · get_code("80acc2e293289c02")
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
from torch_geometric.data import Data
import copy

torch.manual_seed(0)

# Create a minimal graph data object
# The function accesses: data.edge_index, data.edge_weight, data.x
num_nodes = 5
num_edges = 6

edge_index = torch.tensor([
    [0, 1, 1, 2, 3, 4],
    [1, 0, 2, 1, 4, 3]
], dtype=torch.long)

edge_weight = torch.ones(num_edges, dtype=torch.float)

x = torch.randn(num_nodes, 4, dtype=torch.float)

data = Data(x=x, edge_index=edge_index, edge_weight=edge_weight)

ARGS = {
    'data': data,
    'perturb_ratio': 0.1,
    'mode': 'raw'
}
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 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
drop_adj_1by1 Ran
ran on a synthesized input
ventr1c/res-gcl/construct_graph.py
code served (permissive licence) · get_code("2b95b2022a5eee3b")
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 numpy as np
import torch

torch.manual_seed(0)

# Construct edge_index: shape [2, num_edges]
# 2 nodes, 5 edges
edge_index = torch.tensor([[0, 0, 1, 1, 0], 
                           [1, 1, 0, 0, 1]], dtype=torch.long)

# edge_weight: can be None or a tensor
edge_weight = None

# p: dropout probability
p = 0.7

# device: CPU only
device = 'cpu'

# args: a placeholder object or dict - the function doesn't use it
args = None

ARGS = {
    'args': args,
    'edge_index': edge_index,
    'edge_weight': edge_weight,
    'p': p,
    'device': device
}
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
drop_feature Ran
ran; our contract draft was wrong, not the code
ventr1c/res-gcl/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from HKUDS/GraphST, is pointer only (licence: NONE) · get_code("22bfb6129463d322")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from HKUDS/GraphST, 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.

entropy Ran
ran on a synthesized input
ventr1c/res-gcl/PRBCD.py
code served (permissive licence) · get_code("984b1cb236080dc5")
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 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

torch.manual_seed(0)

# The function expects a tensor x that represents log_softmax output
# It computes entropy by summing over dimension 1
# Shape should be (batch_size, num_classes)
x = torch.randn(2, 4)
x = torch.nn.functional.log_softmax(x, dim=1)

ARGS = {
    "x": x
}
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 1, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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_train_test Ran
ran on a synthesized input
ventr1c/res-gcl/dataset.py
code served (permissive licence) · get_code("27df0ca78376c074")
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 numpy as np
from sklearn.model_selection import train_test_split

# Set random seed for reproducibility
np.random.seed(0)

# Create a small dataset with labels for stratification
nnodes = 20
labels = np.array([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1])

ARGS = {
    'nnodes': nnodes,
    'test_size': 0.8,
    'stratify': labels,
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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_train_val_test Ran
ran on a synthesized input
ventr1c/res-gcl/dataset.py
code served (permissive licence) · get_code("820df99d83238fea")
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 numpy as np

# Set seed for reproducibility
np.random.seed(42)

# Create setup arguments for get_train_val_test
nnodes = 100
val_size = 0.1
test_size = 0.8
seed = 42

# Create stratify labels (required, cannot be None)
# We need labels for all nodes to stratify the split
stratify = np.random.randint(0, 5, size=nnodes)

ARGS = {
    "nnodes": nnodes,
    "val_size": val_size,
    "test_size": test_size,
    "stratify": stratify,
    "seed": seed
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
make_gin_conv Ran
ran on a synthesized input
ventr1c/res-gcl/models/BGRL_G2L.py
code served (permissive licence) · get_code("f026518c0f413ac8")
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 GINConv. 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.nn import GINConv, global_add_pool

torch.manual_seed(0)

ARGS = {
    "input_dim": 4,
    "out_dim": 3,
}
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 GINConv — a GINConv output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GINConv 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
parse_index_file Ran
ran, honoured the contract we drafted
ventr1c/res-gcl/dataset.py
code served (permissive licence) · get_code("5c3fa9402a9405bc")
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 list, ndim 1, dtype family int; 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 tempfile
import os

# Create a temporary file with index data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("0\n")
temp_file.write("1\n")
temp_file.write("5\n")
temp_file.write("3\n")
temp_file.close()

ARGS = {
    "filename": temp_file.name
}
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 list, ndim 1, dtype family int — a list 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
partial_distance_matrix Ran
ran; our contract draft was wrong, not the code
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/aggregation.py
pointer only (licence: MIT); the stored copy get_code serves, from woodavid31/GPR-GAE, is pointer only (licence: NONE) · get_code("0d6e69d908e99da6")
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 woodavid31/GPR-GAE, 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.

softmax_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ventr1c/res-gcl/PRBCD.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from mala-lab/PromptDyG, is pointer only (licence: NONE) · get_code("91c9b17caed9c461")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from mala-lab/PromptDyG, 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.

sparse_mx_to_torch_sparse_tensor Ran
ran; our contract draft was wrong, not the code
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/models/deeprobust_rgcn.py
code served (permissive licence) · get_code("c97b99c4e8201a97")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor. 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 numpy as np
import torch
from scipy.sparse import csr_matrix

torch.manual_seed(0)

# Create a small sparse matrix using scipy
# Make it 3x4 to have distinct dimensions
row = np.array([0, 0, 1, 2, 2])
col = np.array([0, 2, 1, 0, 3])
data = np.array([1.5, 2.3, 3.7, 4.2, 5.1])
sparse_mx = csr_matrix((data, (row, col)), shape=(3, 4))

ARGS = {
    'sparse_mx': sparse_mx
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, shape (3, 4) — shape (3, 4) as a later run recorded it
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
test Ran
ran on a synthesized input
ventr1c/res-gcl/models/GAE.py
code served (permissive licence) · get_code("0cd45d466fcc03c8")
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 MockData:
    def __init__(self):
        self.x = torch.randn(2, 4)
        self.train_pos_edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()
        self.val_pos_edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()
        self.val_neg_edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()
        self.test_pos_edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()
        self.test_neg_edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def encode(self, x, edge_index):
        return self.linear(x)
    
    def test(self, z, pos_edge_index, neg_edge_index):
        auc = 0.85
        ap = 0.90
        return auc, ap

model = MockModel()
data = MockData()

ARGS = {
    "model": model,
    "data": data,
}
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
to_tensor Ran
ran; our contract draft was wrong, not the code
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/models/deeprobust_rgcn.py
code served (permissive licence) · get_code("4947c15e3f5ad1d3")
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 numpy as np
import scipy.sparse as sp
import torch

torch.manual_seed(0)

# Create a small adjacency matrix (sparse)
adj_sparse = sp.csr_matrix(
    np.array([[0, 1, 0],
              [1, 0, 1],
              [0, 1, 0]], dtype=np.float32)
)

# Create a small feature matrix (dense)
features_dense = np.array([[1.0, 0.5, 0.2, 0.1],
                           [0.3, 0.7, 0.4, 0.6],
                           [0.9, 0.1, 0.8, 0.2]], dtype=np.float32)

# Create labels
labels = np.array([0, 1, 0], dtype=np.int64)

# Define ARGS
ARGS = {
    'adj': adj_sparse,
    'features': features_dense,
    'labels': labels,
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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
train Ran
ran on a synthesized input
ventr1c/res-gcl/models/BGRL.py
code served (permissive licence) · get_code("09cbcddd5413d6be")
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 float, 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)

# Define encoder_model
class EncoderModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 8)
    
    def forward(self, x, edge_index, edge_attr):
        # Returns 6 tensors: _, _, h1_pred, h2_pred, h1_target, h2_target
        batch_size = x.shape[0]
        h1_pred = self.linear(x)
        h2_pred = self.linear(x)
        h1_target = self.linear(x)
        h2_target = self.linear(x)
        return None, None, h1_pred, h2_pred, h1_target, h2_target
    
    def train(self):
        super().train()
    
    def update_target_encoder(self, tau):
        # No-op method that the function calls
        pass

# Define contrast_model
class ContrastModel(nn.Module):
    def __init__(self):
        super().__init__()
    
    def forward(self, h1_pred, h2_pred, h1_target, h2_target):
        # Returns a scalar loss
        loss = torch.nn.functional.mse_loss(h1_pred, h1_target) + torch.nn.functional.mse_loss(h2_pred, h2_target)
        return loss

# Create instances
encoder_model = EncoderModel()
contrast_model = ContrastModel()

# Create input tensors
x = torch.randn(2, 4)  # batch_size=2, feature_dim=4
edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)  # 2x2 edge indices
edge_attr = torch.randn(2, 3)  # num_edges=2, edge_attr_dim=3

# Create optimizer
optimizer = torch.optim.Adam(list(encoder_model.parameters()) + list(contrast_model.parameters()), lr=0.001)

ARGS = {
    'encoder_model': encoder_model,
    'contrast_model': contrast_model,
    'x': x,
    'edge_index': edge_index,
    'edge_attr': edge_attr,
    'optimizer': optimizer
}
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 float, 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
train Ran
ran on a synthesized input
ventr1c/res-gcl/models/BGRL_G2L.py
code served (permissive licence) · get_code("c310eff3a8517be9")
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 float, 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
from torch_geometric.data import Data, DataLoader

torch.manual_seed(0)

class EncoderModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(1, 4)
    
    def forward(self, x, edge_index, batch=None):
        h1_pred = self.linear(x)
        h2_pred = self.linear(x) * 0.5
        g1_target = torch.randn(2, 4)
        g2_target = torch.randn(2, 4)
        return None, None, h1_pred, h2_pred, g1_target, g2_target
    
    def update_target_encoder(self, tau):
        pass

class ContrastModel(nn.Module):
    def __init__(self):
        super().__init__()
    
    def forward(self, h1_pred, h2_pred, g1_target, g2_target, batch=None):
        loss = torch.tensor(0.5, requires_grad=True)
        return loss

encoder_model = EncoderModel()
contrast_model = ContrastModel()

data1 = Data(
    x=torch.ones(3, 1),
    edge_index=torch.tensor([[0, 1, 1, 2], [1, 0, 2, 1]]),
    batch=torch.tensor([0, 0, 1])
)

data2 = Data(
    x=torch.ones(2, 1),
    edge_index=torch.tensor([[0, 1], [1, 0]]),
    batch=torch.tensor([0, 1])
)

dataloader = [data1, data2]

optimizer = torch.optim.Adam(
    list(encoder_model.parameters()) + list(contrast_model.parameters()),
    lr=0.01
)

device = torch.device('cpu')

ARGS = {
    'encoder_model': encoder_model,
    'contrast_model': contrast_model,
    'dataloader': dataloader,
    'optimizer': optimizer,
    'device': device
}
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 float, 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
compute_new_a_hat_uv Not yet run
unverified (harvested, no recorded run)
sigeisler/robustness_of_gnns_at_scale/rgnn_at_scale/attacks/nettack.py
code served (permissive licence) · get_code("f7fada718dfb80fa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 9 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 6 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
parse_index_file 53 other papers
29 dated earlier, 24 later · 1 only as an assembly brick
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1611.07308 (2016-11)
Variational Graph Auto-Encoders
1710.10568 (2017-10)
Stochastic Training of Graph Convolutional Networks with Variance Reduction
and 50 more not named here
sparse_mx_to_torch_sparse_tensor 32 other papers
8 dated earlier, 24 later · 4 only as an assembly brick
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
1902.07153 (2019-02)
Simplifying Graph Convolutional Networks
2002.01633 (2020-02)
Structural Deep Clustering Network
and 29 more not named here
softmax_entropy 22 other papers
2 dated earlier, 19 later, 1 undated · 4 only as an assembly brick
2006.10726 (2020-06)
TENT: FULLY TEST-TIME ADAPTATION BY ENTROPY MINIMIZATION
2105.08714 (2021-05)
Fighting Gradients with Gradients: Dynamic Defenses against Adversarial Attacks
2302.12400 (2023-02)
Towards Stable Test-Time Adaptation in Dynamic Wild World
and 19 more not named here
drop_feature 7 other papers
1 dated earlier, 6 later
2006.04131 (2020-06)
Deep Graph Contrastive Representation Learning
2306.10683 (2023-06)
Spatial-Temporal Graph Learning with Adversarial Contrastive Adaptation
2309.13944 (2023-09)
Provable Training for Graph Contrastive Learning
and 4 more not named here
compute_new_a_hat_uv 3 other papers
3 dated earlier
1805.07984 (2018-05)
Adversarial Attacks on Neural Networks for Graph Data
2005.06149 (2020-05)
DeepRobust: A PyTorch Library for Adversarial Attacks and Defenses
2005.11079 (2020-05)
Graph Random Neural Networks for Semi-Supervised Learning on Graphs
connected_after 3 other papers
3 dated earlier
1805.07984 (2018-05)
Adversarial Attacks on Neural Networks for Graph Data
2005.06149 (2020-05)
DeepRobust: A PyTorch Library for Adversarial Attacks and Defenses
2005.11079 (2020-05)
Graph Random Neural Networks for Semi-Supervised Learning on Graphs
compute_alpha 2 other papers
2 dated earlier
1805.07984 (2018-05)
Adversarial Attacks on Neural Networks for Graph Data
2005.11079 (2020-05)
Graph Random Neural Networks for Semi-Supervised Learning on Graphs
partial_distance_matrix 1 other paper
1 later
2605.23239 (2026-05)
Self-supervised Adversarial Purification for Graph Neural Networks
to_tensor 1 other paper
1 later
2306.09104 (2023-06)
On Strengthening and Defending Graph Reconstruction Attack with Markov Chain Approximation

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

Graph Neural Networks (GNNs) are increasingly important given their popularity and the diversity of applications. Yet, existing studies of their vulnerability to adversarial attacks rely on relatively small graphs. We address this gap and study how to attack and defend GNNs at scale. We propose two sparsity-aware first-order optimization attacks that maintain an efficient representation despite optimizing over a number of parameters which is quadratic in the number of nodes. We show that common surrogate losses are not well-suited for global attacks on GNNs. Our alternatives can double the attack strength. Moreover, to improve GNNs' reliability we design a robust aggregation function, Soft Median, resulting in an effective defense at all scales. We evaluate our attacks and defense with standard GNNs on graphs more than 100 times larger compared to previous work. We even scale one order of magnitude further by extending our techniques to a scalable GNN.

For agents

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

get_harvested_code_for_paper("2110.14038")
get_code_for_paper("2110.14038")
have("2110.14038")

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

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

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

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

Connect an agent — have() is free.