SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.00800 · NeurIPS · 2023

GRAPHPATCHER: Mitigating Degree Bias for Graph Neural Networks via Test-time Augmentation

Tong Zhao, Wenhao Yu, Neil Shah, Mingxuan Ju, Yanfang Ye

arXiv · PDF · Open in the Atlas

Code that ran

21 of 31 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 19 failures of our instrument; 10 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/2310.00800.json · badge: /api/ran/2310.00800.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
jumxglhf/ParetoGNN canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
qitianwu/GraphOOD-EERM canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
jumxglhf/GraphPatcher canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
ChandlerBang/GTrans community
Papers with Code archive
3 ran · 0 no recorded run
amazon-science/gnn-tail-generalization community
Papers with Code archive
1 ran · 0 no recorded run
shuaiOKshuai/Tail-GNN community
Papers with Code archive
0 ran · 4 no recorded run
FunctionStatusWhere it lives
AdaptivelyAugmentTopologyAttributes Ran
ran on a synthesized input · constructed an object; no result was computed
ChandlerBang/GTrans/augmentor.py
pointer only (licence: NONE) · get_code("e344df649595f72c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChandlerBang/GTrans 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.

accuracy Ran
ran; our contract draft was wrong, not the code
jumxglhf/GraphPatcher/src/utils.py
pointer only (licence: NONE) · get_code("5cd2193d9777cc7b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jumxglhf/GraphPatcher 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.

drop_edge_by_weight Ran
ran; our contract draft was wrong, not the code
ChandlerBang/GTrans/augmentor.py
pointer only (licence: NONE) · get_code("d1c97cec7d552892")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChandlerBang/GTrans 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.

drop_feature_by_weight Ran
ran; our contract draft was wrong, not the code
ChandlerBang/GTrans/augmentor.py
pointer only (licence: NONE) · get_code("4222186969912038")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChandlerBang/GTrans 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.

evaluate_gnn Ran
ran; our contract draft was wrong, not the code
jumxglhf/GraphPatcher/src/utils.py
pointer only (licence: NONE) · get_code("1d41b3dff629a86c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jumxglhf/GraphPatcher 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.

f1_macro Ran
ran; our contract draft was wrong, not the code
jumxglhf/GraphPatcher/src/utils.py
pointer only (licence: NONE) · get_code("56c2f4c4927a5f1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jumxglhf/GraphPatcher 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.

fit_node_clustering Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/evaluator.py
code served (permissive licence) · get_code("d8566040267608c2")
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 numpy as np
import torch

torch.manual_seed(0)

# The function expects:
# - kmeans_input: a 2D array-like of shape (n_samples, n_features) containing embeddings
# - y: a 1D array-like of integer class labels, where max value + 1 = number of classes
# - repeat: int for number of KMeans repetitions (default 5)

# Create a small dataset with 6 samples, 4 features
n_samples = 6
n_features = 4
n_classes = 3

# Create kmeans_input as a numpy array (the function calls normalize on it)
kmeans_input = np.random.randn(n_samples, n_features).astype(np.float32)

# Create y as a numpy array with class labels from 0 to n_classes-1
# y needs a .max() method that returns a tensor-like object with .item()
y = np.array([0, 0, 1, 1, 2, 2], dtype=np.int64)

# Convert y to a torch tensor so it has .max().item() as the function expects
y = torch.tensor(y, dtype=torch.long)

ARGS = {
    'kmeans_input': kmeans_input,
    'y': y,
    'repeat': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, 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
gradient_normalizers Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/min_norm_solvers.py
code served (permissive licence) · get_code("31d9547f7a6e800c")
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 numpy as np

torch.manual_seed(0)

# Construct grads: a dictionary mapping task names to lists of gradient tensors
grads = {
    'task1': [torch.randn(4, 3, requires_grad=False), torch.randn(2, 5, requires_grad=False)],
    'task2': [torch.randn(3, 2, requires_grad=False), torch.randn(4, 4, requires_grad=False)],
}

# Construct losses: a dictionary mapping task names to loss tensors
losses = {
    'task1': torch.tensor(0.5),
    'task2': torch.tensor(0.3),
}

# normalization_type: one of 'l2', 'loss', 'loss+', 'none'
normalization_type = 'l2'

ARGS = {
    'grads': grads,
    'losses': losses,
    'normalization_type': normalization_type,
}
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 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
init_logger Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/evaluator.py
code served (permissive licence) · get_code("be4b0014138164d5")
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 Logger. 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 logging
import sys
import tempfile
import os

# Create a temporary file path for testing (but we won't actually write to it)
temp_dir = tempfile.gettempdir()
temp_filename = os.path.join(temp_dir, "test_logger.log")

ARGS = {
    "filename": temp_filename
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
init_logger Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/utils.py
code served (permissive licence) · get_code("42eab89fc010d007")
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 Logger. 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 logging
import torch
import sys
import tempfile
import os

torch.manual_seed(0)

ARGS = {
    "is_main": True,
    "is_distributed": False,
    "filename": None,
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
link_prediction_data_process Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/data_train.py
code served (permissive licence) · get_code("f5dc88cfa599b144")
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

torch.manual_seed(0)

# Create a minimal graph object that mimics DGL graph interface
class MinimalGraph:
    def __init__(self):
        # Create node data with '_N' feature key
        self.ndata = {
            'feat': {
                '_N': torch.randn(2, 4)  # 2 nodes, 4 features
            }
        }
    
    def edges(self):
        # Return edge indices as tuple of tensors
        u = torch.tensor([0, 1])
        v = torch.tensor([1, 0])
        return (u, v)

# Create positive pair graph
pos_pair_graph = MinimalGraph()

# Create negative pair graph
neg_pair_graph = MinimalGraph()

# Create subgraph list with one graph
sg = [MinimalGraph()]

# Create input_nodes (just a dummy tensor)
input_nodes = torch.tensor([0, 1])

# Assemble outputs_from_dataloader tuple
outputs_from_dataloader = (input_nodes, pos_pair_graph, neg_pair_graph, sg)

# Define ARGS dict with all parameters
ARGS = {
    'outputs_from_dataloader': outputs_from_dataloader,
    'device': 'cpu',
    'mask_ratio': 0.4
}
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 — 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
load_fb100 Ran
ran; our contract draft was wrong, not the code
qitianwu/GraphOOD-EERM/multigraph/load_data.py
pointer only (licence: NONE) · get_code("6104f3da76fc0a87")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qitianwu/GraphOOD-EERM 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.

mask_test_edges Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/link_gen.py
code served (permissive licence) · get_code("51b4bde5870c0d50")
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 scipy.sparse as sp
import numpy as np

# Create a small sparse adjacency matrix for a graph with 5 nodes
# Using a simple connected graph structure
rows = np.array([0, 0, 1, 1, 2, 2, 3, 3, 4])
cols = np.array([1, 2, 2, 3, 3, 4, 4, 0, 0])
data = np.ones(len(rows))

adj_orig = sp.csr_matrix((data, (rows, cols)), shape=(5, 5))
# Make it symmetric to represent undirected graph
adj_orig = adj_orig + adj_orig.T

val_frac = 0.1
test_frac = 0.2

ARGS = {
    "adj_orig": adj_orig,
    "val_frac": val_frac,
    "test_frac": test_frac,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
node_norm Ran
ran on a synthesized input · constructed an object; no result was computed
amazon-science/gnn-tail-generalization/GNN_model/norm_tricks.py
code served (permissive licence) · get_code("810554e0ef2693e0")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small input tensor: batch_size=2, features=4
x = torch.randn(2, 4)

ARGS = {
    'node_norm_type': 'n',
    'unbiased': False,
    'eps': 1e-05,
    'power_root': 2,
}
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 node_norm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a node_norm 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_sp Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/utils_lp.py
code served (permissive licence) · get_code("61544af615756a6b")
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 csr_matrix. 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

# Create a small sparse adjacency matrix (4x4)
# Using a simple sparse matrix with some non-zero entries
row = np.array([0, 1, 2, 3, 0, 2])
col = np.array([1, 2, 3, 0, 3, 1])
data = np.array([1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
adj_matrix = sp.csr_matrix((data, (row, col)), shape=(4, 4))

ARGS = {
    "adj_matrix": adj_matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix 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
rand_train_test_idx Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qitianwu/GraphOOD-EERM/multigraph/data_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from CUAI/Non-Homophily-Large-Scale, is pointer only (licence: NONE) · get_code("13234652741e2264")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qitianwu/GraphOOD-EERM 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.

scale_feats Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/data.py
pointer only (licence: CC0-1.0); the stored copy get_code serves, from yf-he/UniGraph, is pointer only (licence: NONE) · get_code("11cf69e6642b61f5")
How it ran

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

sce_loss Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/model.py
pointer only (licence: CC0-1.0); the stored copy get_code serves, from ZiyanLiu16/MUGEN, is pointer only (licence: NONE) · get_code("6f9bb5eb98ec4887")
How it ran

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

set_optim Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/src/utils.py
code served (permissive licence) · get_code("2ef3f478a8137f01")
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 SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class OptConfig:
    def __init__(self, optim='adam', lr=0.001, weight_decay=0.01, scheduler='linear', 
                 total_steps=100, scheduler_steps=None, warmup_steps=10, fixed_lr=False):
        self.optim = optim
        self.lr = lr
        self.weight_decay = weight_decay
        self.scheduler = scheduler
        self.total_steps = total_steps
        self.scheduler_steps = scheduler_steps
        self.warmup_steps = warmup_steps
        self.fixed_lr = fixed_lr

model = SimpleModel()
opt = OptConfig(optim='adam', lr=0.001, weight_decay=0.01, scheduler='linear', 
                total_steps=100, scheduler_steps=None, warmup_steps=10, fixed_lr=False)

ARGS = {
    'opt': opt,
    '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 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
sparse_to_tuple Ran
ran; our contract draft was wrong, not the code
jumxglhf/ParetoGNN/link_gen.py
code served (permissive licence) · get_code("78ccfe0f0f11ce2c")
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 scipy.sparse as sp
import numpy as np

# Create a small sparse matrix in CSR format
# Use distinct dimensions: 4 rows, 3 columns
row_indices = np.array([0, 1, 2, 3, 1])
col_indices = np.array([0, 1, 2, 0, 2])
data = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

sparse_mx = sp.csr_matrix((data, (row_indices, col_indices)), shape=(4, 3))

ARGS = {
    "sparse_mx": sparse_mx
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_planetoid Ran
ran; our contract draft was wrong, not the code
qitianwu/GraphOOD-EERM/multigraph/data_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from zehong-wang/subgraph-pooling, is pointer only (licence: NONE) · get_code("7e85cbb79f6726cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qitianwu/GraphOOD-EERM 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.

TailGNN Not yet run
unverified (harvested, no recorded run)
shuaiOKshuai/Tail-GNN/models/tailgnn.py
pointer only (licence: NONE) · get_code("64d784acf9d0b280")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuaiOKshuai/Tail-GNN 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. No invocation recorded.

TransGAT Not yet run
unverified (harvested, no recorded run)
shuaiOKshuai/Tail-GNN/models/tailgnn.py
pointer only (licence: NONE) · get_code("b61c4057e0f405dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuaiOKshuai/Tail-GNN 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. No invocation recorded.

TransGCN Not yet run
unverified (harvested, no recorded run)
shuaiOKshuai/Tail-GNN/models/tailgnn.py
pointer only (licence: NONE) · get_code("e5665fe048dfd945")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuaiOKshuai/Tail-GNN 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. No invocation recorded.

TransSAGE Not yet run
unverified (harvested, no recorded run)
shuaiOKshuai/Tail-GNN/models/tailgnn.py
pointer only (licence: NONE) · get_code("f3c6e6fd0f38f5ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuaiOKshuai/Tail-GNN 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. No invocation recorded.

cross_validation_gen Not yet run
unverified (harvested, no recorded run)
jumxglhf/GraphPatcher/src/data.py
pointer only (licence: NONE) · get_code("b4b1a22b146f7626")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jumxglhf/GraphPatcher 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. No invocation recorded.

cross_validation_gen Not yet run
unverified (harvested, no recorded run)
jumxglhf/ParetoGNN/src/data.py
code served (permissive licence) · get_code("00278ba7c826c4d9")
How it ran

no invocation recorded.

even_quantile_labels Not yet run
unverified (harvested, no recorded run)
qitianwu/GraphOOD-EERM/multigraph/data_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from zehong-wang/subgraph-pooling, is pointer only (licence: NONE) · get_code("919cb6dbf2c173bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qitianwu/GraphOOD-EERM 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. No invocation recorded.

fit_logistic_regression Not yet run
unverified (harvested, no recorded run)
jumxglhf/ParetoGNN/src/evaluator.py
code served (permissive licence) · get_code("bbe17841fcb8eef7")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
jumxglhf/ParetoGNN/src/utils.py
code served (permissive licence) · get_code("2f38972c0c3cfedc")
How it ran

no invocation recorded.

load_twitch Not yet run
unverified (harvested, no recorded run)
qitianwu/GraphOOD-EERM/multigraph/load_data.py
pointer only (licence: NONE) · get_code("a7d643acf04a759b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qitianwu/GraphOOD-EERM 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. No invocation recorded.

Also present in other papers' code

Of 31 samples lifted from this paper's linked repositories, 31 carry a function identity and 0 do not. Of the 31 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 6 later) and 24 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
rand_train_test_idx 14 other papers
4 dated earlier, 10 later
2110.14446 (2021-10)
Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods
2302.01524 (2023-02)
Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing
2306.08274 (2023-06)
A Simple and Scalable Graph Neural Network for Large Directed Graphs
and 11 more not named here
sparse_to_tuple 9 other papers
8 dated earlier, 1 later
1611.07308 (2016-11)
Variational Graph Auto-Encoders
1804.00099 (2018-04)
Graph Convolutional Neural Networks via Scattering
1904.00326 (2019-04)
MedGCN: Medication recommendation and lab test imputation via graph convolutional networks
and 6 more not named here
to_planetoid 8 other papers
3 dated earlier, 5 later
2110.14446 (2021-10)
Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods
2302.01524 (2023-02)
Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing
2306.08274 (2023-06)
A Simple and Scalable Graph Neural Network for Large Directed Graphs
and 5 more not named here
sce_loss 6 other papers
2 dated earlier, 4 later
2304.04779 (2023-04)
GraphMAE2: A Decoding-Enhanced Masked Self-Supervised Graph Learner
2309.04589 (2023-09)
Motif-aware Attribute Masking for Molecular Graph Pre-training
2402.07225 (2024-02)
Rethinking Graph Masked Autoencoders through Alignment and Uniformity
and 3 more not named here
even_quantile_labels 5 other papers
1 dated earlier, 4 later
2110.14446 (2021-10)
Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods
2402.08907 (2024-02)
Subgraph Pooling: Tackling Negative Transfer on Graphs
2402.11494 (2024-02)
Graph Out-of-Distribution Generalization via Causal Intervention
and 2 more not named here
scale_feats 2 other papers
1 dated earlier, 1 later
2305.05368 (2023-05)
Deep Graph Neural Networks via Posteriori-Sampling-based Node-Adaptive Residual Module
2402.13630 (2024-02)
UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphs
cross_validation_gen 1 other paper
1 same year, order not determinable
aaai_25558 (2023 (year only))
Let Graph Be the Go Board: Gradient-Free Node Injection Attack for Graph Neural Networks via Reinforcement Learning

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

Recent studies have shown that graph neural networks (GNNs) exhibit strong biases towards the node degree: they usually perform satisfactorily on high-degree nodes with rich neighbor information but struggle with low-degree nodes. Existing works tackle this problem by deriving either designated GNN architectures or training strategies specifically for low-degree nodes. Though effective, these approaches unintentionally create an artificial out-of-distribution scenario, where models mainly or even only observe low-degree nodes during the training, leading to a downgraded performance for high-degree nodes that GNNs originally perform well at. In light of this, we propose a test-time augmentation framework, namely GRAPHPATCHER, to enhance test-time generalization of any GNNs on low-degree nodes. Specifically, GRAPHPATCHER iteratively generates virtual nodes to patch artificially created low-degree nodes via corruptions, aiming at progressively reconstructing target GNN's predictions over a sequence of increasingly corrupted nodes. Through this scheme, GRAPHPATCHER not only learns how to enhance low-degree nodes (when the neighborhoods are heavily corrupted) but also preserves the original superior performance of GNNs on high-degree nodes (when lightly corrupted). Additionally, GRAPHPATCHER is model-agnostic and can also mitigate the degree bias for either self-supervised or supervised GNNs. Comprehensive experiments are conducted over seven benchmark datasets and GRAPHPATCHER consistently enhances common GNNs' overall performance by up to 3.6% and low-degree performance by up to 6.5%, significantly outperforming state-of-the-art baselines. The source code is publicly available at https://github.com/jumxglhf/GraphPatcher.

For agents

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

get_harvested_code_for_paper("2310.00800")
get_code_for_paper("2310.00800")
have("2310.00800")

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

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

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

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

Connect an agent — have() is free.