SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.17130 · 2026

Impact of Graph Structure on Membership-Inference Risk for Graph Neural Networks

Megha Khosla

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 6 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2601.17130.json · badge: /api/ran/2601.17130.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
PriXAI/GraphStructurePrivacyAnalysis-public canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_loss_without_edges Ran
ran, honoured the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/training/evaluate.py
code served (permissive licence) · get_code("f1cf2b8e0ea7642d")
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 (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal GNN model that accepts node features and edge index
class MinimalGNN(nn.Module):
    def __init__(self, input_dim, output_dim):
        super(MinimalGNN, self).__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x, edge_index):
        # Simple model that ignores edge_index and just applies linear layer
        return self.linear(x)

# Create model
num_nodes = 2
node_feature_dim = 4
num_classes = 3
model = MinimalGNN(input_dim=node_feature_dim, output_dim=num_classes)

# Create a minimal PyTorch Geometric Data object
class MinimalData:
    def __init__(self, x, y, edge_index=None):
        self.x = x
        self.y = y
        self.edge_index = edge_index

# Create node features (2 nodes, 4 features each)
x = torch.randn(num_nodes, node_feature_dim)

# Create node labels (2 nodes, each with a class label 0-2)
y = torch.tensor([0, 2], dtype=torch.long)

# Create data object
data = MinimalData(x=x, y=y)

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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_posterior Ran
ran, honoured the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/attacks/attack_utils.py
code served (permissive licence) · get_code("f8860bbe8bb44323")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Define a minimal GNN model that satisfies the function's usage
class MinimalGNN(nn.Module):
    def __init__(self, in_features, out_features):
        super().__init__()
        self.linear = nn.Linear(in_features, out_features)
    
    def forward(self, x, edge_index):
        # Simple linear transformation; doesn't use edge_index
        # but accepts it as required by the function call
        return self.linear(x)

# Create a minimal trained model
model = MinimalGNN(in_features=4, out_features=3)
model.eval()

# Create a stand-in Data object with required attributes
class MinimalData:
    def __init__(self):
        self.x = torch.randn(2, 4)  # 2 nodes, 4 features
        self.edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)

data = MinimalData()

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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
compute_posterior_inductive Ran
ran, honoured the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/attacks/attack_utils.py
code served (permissive licence) · get_code("22acbf2e6d1f09cd")
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 (7, 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Create a minimal GNN model that satisfies the function's usage
class SimpleGNN(nn.Module):
    def __init__(self, input_dim, hidden_dim, output_dim):
        super().__init__()
        self.fc1 = nn.Linear(input_dim, hidden_dim)
        self.fc2 = nn.Linear(hidden_dim, output_dim)
    
    def forward(self, x, edge_index):
        # The function calls model(data.x, data.edge_index)
        # We only need to use x and return logits of shape [num_nodes, num_classes]
        x = F.relu(self.fc1(x))
        out = self.fc2(x)
        return out

# Create a minimal PyTorch Geometric Data-like object
class SimpleData:
    def __init__(self, x, edge_index):
        self.x = x
        self.edge_index = edge_index

# Set up parameters
num_nodes_train = 4
num_nodes_test = 3
input_dim = 5
hidden_dim = 8
num_classes = 3

# Create model
model = SimpleGNN(input_dim, hidden_dim, num_classes)
model.eval()

# Create training data
train_x = torch.randn(num_nodes_train, input_dim)
train_edge_index = torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long)
train_data = SimpleData(train_x, train_edge_index)

# Create test data
test_x = torch.randn(num_nodes_test, input_dim)
test_edge_index = torch.tensor([[0, 1], [1, 2]], dtype=torch.long)
test_data = SimpleData(test_x, test_edge_index)

# Create mappings from subgraph indices to original node indices
# train_data has 4 nodes mapped to original indices 0, 1, 2, 3
train_to_orig = {0: 0, 1: 1, 2: 2, 3: 3}

# test_data has 3 nodes mapped to original indices 4, 5, 6
test_to_orig = {0: 4, 1: 5, 2: 6}

ARGS = {
    'model': model,
    'train_data': train_data,
    'test_data': test_data,
    'train_to_orig': train_to_orig,
    'test_to_orig': test_to_orig,
}
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 (7, 3) — shape (7, 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
compute_posterior_without_edges Ran
ran, honoured the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/training/evaluate.py
code served (permissive licence) · get_code("4317280625a7b5c7")
How it ran

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

import torch
import torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Define a minimal GNN model that matches the function's usage
class MinimalGNN(nn.Module):
    def __init__(self, input_dim, hidden_dim, output_dim):
        super().__init__()
        self.lin1 = nn.Linear(input_dim, hidden_dim)
        self.lin2 = nn.Linear(hidden_dim, output_dim)
    
    def forward(self, x, edge_index):
        # The function calls model(data.x, null_edge_index)
        # We just need to process x and return logits
        out = F.relu(self.lin1(x))
        out = self.lin2(out)
        return out

# Create a minimal Data object (PyTorch Geometric style)
class MinimalData:
    def __init__(self, x, edge_index):
        self.x = x
        self.edge_index = edge_index

# Setup parameters
num_nodes = 2
input_features = 4
hidden_dim = 3
num_classes = 5

# Create node features (2 nodes, 4 features each)
x = torch.randn(num_nodes, input_features)

# Create edge index (empty for this test, but include for completeness)
edge_index = torch.empty(2, 0, dtype=torch.long)

# Create the data object
data = MinimalData(x=x, edge_index=edge_index)

# Create and initialize the model
model = MinimalGNN(input_features, hidden_dim, num_classes)
model.eval()

# Define arguments dictionary
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 Tensor, ndim 2, dtype family float, shape (2, 5) — shape (2, 5) 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_posterior Ran
ran, honoured the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/training/evaluate.py
code served (permissive licence) · get_code("2162aad8111e07c7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch.nn as nn

torch.manual_seed(0)

class SimpleGNNModel(nn.Module):
    """Minimal GNN model that accepts node features and edge indices"""
    def __init__(self, in_features, out_features):
        super().__init__()
        self.linear = nn.Linear(in_features, out_features)
    
    def forward(self, x, edge_index):
        # x: node features
        # edge_index: edge connectivity
        return self.linear(x)

class Data:
    """Minimal data object with x and edge_index attributes"""
    def __init__(self, x, edge_index):
        self.x = x
        self.edge_index = edge_index

# Create a small GNN model
model = SimpleGNNModel(in_features=4, out_features=3)

# Create minimal data object
# x: node features (2 nodes, 4 features each)
x = torch.randn(2, 4)
# edge_index: sparse edge connectivity (2, 2) - two edges
edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)
data = Data(x, edge_index)

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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
load_splits Ran
ran; our contract draft was wrong, not the code
PriXAI/GraphStructurePrivacyAnalysis-public/attacks/attack_utils.py
code served (permissive licence) · get_code("43918dd4fc77b97d")
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 pickle
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create sample split data - a dict with train/val/test indices
sample_splits = {
    'train': [0, 1, 2, 3],
    'val': [4, 5],
    'test': [6, 7]
}

# Write the splits to a pickle file
splits_file = os.path.join(temp_dir, 'splits.pkl')
with open(splits_file, 'wb') as f:
    pickle.dump(sample_splits, f)

# Define ARGS with the filename parameter
ARGS = {
    'filename': splits_file
}
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 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
normalize_bool Ran
ran, violated the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/utils/plot_3panel_attack_test_sizes.py
code served (permissive licence) · get_code("c95cf3f8fc78a597")
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

torch.manual_seed(0)

ARGS = {
    "value": "true"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
normalize_model_name Ran
ran; our contract draft was wrong, not the code
PriXAI/GraphStructurePrivacyAnalysis-public/utils/plot_3panel_attack_test_sizes.py
code served (permissive licence) · get_code("8d7535d6176fe33f")
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 str. 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

# The function normalize_model_name takes a single parameter: model_name
# It looks up the model_name in MODEL_NAME_MAP and returns the mapped value,
# or returns the original model_name if not found

ARGS = {
    'model_name': 'GraphSAGE'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_mean_std Ran
ran, honoured the contract we drafted
PriXAI/GraphStructurePrivacyAnalysis-public/utils/plot_3panel_attack_test_sizes.py
code served (permissive licence) · get_code("a6d9f7716528dec8")
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 re

def parse_mean_std(value):
    text = str(value).strip().replace('\\pm', '±').replace('+/-', '±')
    match = re.match('^\\s*([-+]?\\d*\\.?\\d+)\\s*±\\s*([-+]?\\d*\\.?\\d+)\\s*$', text)
    if match:
        return (float(match.group(1)), float(match.group(2)))
    return (float(text), 0.0)

ARGS = {
    "value": "1.5 ± 0.3"
}
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 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
snowball_sampling Ran
ran; our contract draft was wrong, not the code
PriXAI/GraphStructurePrivacyAnalysis-public/utils/data_utils.py
code served (permissive licence) · get_code("71e3e53d06cf11c7")
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 torch.nn as nn
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a small graph as PyTorch Geometric Data object
num_nodes = 10
num_features = 4
num_classes = 2

# Node features: shape (num_nodes, num_features)
x = torch.randn(num_nodes, num_features)

# Edge index: create a simple connected graph
edge_list = [
    (0, 1), (1, 2), (2, 3), (3, 4), (4, 5),
    (5, 6), (6, 7), (7, 8), (8, 9), (9, 0),
    (0, 2), (1, 3), (2, 4), (3, 5), (4, 6)
]
edge_index = torch.tensor(edge_list, dtype=torch.long).t().contiguous()

# Node labels: shape (num_nodes,)
y = torch.randint(0, num_classes, (num_nodes,))

# Create the Data object
data = Data(x=x, edge_index=edge_index, y=y)

# Define parameters for snowball_sampling
initial_nodes = [0, 1]  # Start from nodes 0 and 1
max_nodes = 6  # Maximum number of nodes to sample
max_neighbors = 3  # Maximum number of neighbors to sample at each step

ARGS = {
    "data": data,
    "initial_nodes": initial_nodes,
    "max_nodes": max_nodes,
    "max_neighbors": max_neighbors,
}
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 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
snowball_sampling_with_train_test Ran
ran on a synthesized input
PriXAI/GraphStructurePrivacyAnalysis-public/utils/data_utils.py
code served (permissive licence) · get_code("03c119815e1f2b40")
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 random
from torch_geometric.data import Data
from torch_geometric.utils import to_undirected

torch.manual_seed(0)

# Create a small toy graph
num_nodes = 10
num_edges = 12

# Create edge_index: a simple connected graph
edges = [
    (0, 1), (1, 0),
    (1, 2), (2, 1),
    (2, 3), (3, 2),
    (3, 4), (4, 3),
    (4, 5), (5, 4),
    (5, 6), (6, 5),
    (0, 2), (2, 0),
    (1, 3), (3, 1),
]

edge_index = torch.tensor(edges, dtype=torch.long).t().contiguous()

# Create node features and labels
x = torch.randn(num_nodes, 4)
y = torch.randint(0, 2, (num_nodes,))

# Create PyG Data object
data = Data(x=x, y=y, edge_index=edge_index, num_nodes=num_nodes)

# Define parameters for the function
initial_nodes = [0, 1]  # Starting seed nodes
train_ratio = 0.6  # 60% of nodes for training
max_neighbors = 3  # Fan-out per frontier node
undirected = True  # Make graph undirected
rng = random.Random(42)  # For reproducibility

ARGS = {
    "data": data,
    "initial_nodes": initial_nodes,
    "train_ratio": train_ratio,
    "max_neighbors": max_neighbors,
    "undirected": undirected,
    "rng": rng,
}
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
execute_function_by_name Not yet run
unverified (harvested, no recorded run)
PriXAI/GraphStructurePrivacyAnalysis-public/models/model.py
code served (permissive licence) · get_code("d94e118cfe33cca4")
How it ran

no invocation recorded.

load_dataset Not yet run
unverified (harvested, no recorded run)
PriXAI/GraphStructurePrivacyAnalysis-public/utils/data_utils.py
code served (permissive licence) · get_code("155f827299ef5169")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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 widely used for tasks such as node classification and link prediction, but their use in sensitive settings raises concerns about training-data leakage. Prior work on privacy leakage in GNNs largely borrows assumptions from non-graph domains, overlooking the role of graph structure. We argue for a graph-specific analysis of privacy risk and study how graph structure affects node-level membership inference. We formalize membership inference (MI) over node-neighborhood tuples and investigate two important dimensions: (i) training-graph construction and (ii) inference-time edge access. We compare snowball sampling, a structure-aware procedure, with uniform random node sampling for constructing training graphs. Our experiments show that snowball sampling often hurts generalization relative to random sampling due to its coverage bias. In contrast, allowing access to inter-train-test edges at inference improves test accuracy, reduces the train-test gap, while also having a strong and setting-dependent effect on membership advantage. These results show that graph structure directly shapes privacy risk. We further show that the generalization gap, measured as the performance difference between training and test nodes, is an incomplete proxy for membership inference risk: membership advantage can rise or fall independently of changes in this gap, with inference-time edge access often playing a crucial role. Theoretically, we show that for node-level tasks, standard privacy-auditing results based on membership inference do not directly carry over to inductive graph settings, because training and test nodes are structurally dependent rather than interchangeable. We release the code and data at https: //github.com/PriXAI/GraphStructurePrivacyAnalysis-public.

For agents

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

get_harvested_code_for_paper("2601.17130")
get_code_for_paper("2601.17130")
have("2601.17130")

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

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

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

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

Connect an agent — have() is free.