SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.04999 · IJCAI · 2024

Rethinking the Effectiveness of Graph Classification Datasets in Benchmarks for Assessing GNNs

Yong Cao, Zhengdao Li, Kai Hwang, Kefan Shuai, Yiming Miao

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 8 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2407.04999.json · badge: /api/ran/2407.04999.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
ICLab4DL/GNNBenchEffectiveness canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_tuple Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/baseline_models/gnn_baselines.py
code served (permissive licence) · get_code("b24ed7ecbd6249ab")
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, 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)

# Test case 1: Apply function to a single tensor
tensor_single = torch.randn(2, 4)

def square_fn(x):
    return x ** 2

# Test case 2: Apply function to a tuple of tensors
tensor_tuple = (torch.randn(2, 4), torch.randn(3, 5))

# Test case 3: Apply function to a tuple with mixed types (tensor and non-tensor)
tensor_mixed = (torch.randn(2, 4), 42, "metadata")

ARGS = {
    "tup": tensor_single,
    "fn": square_fn
}
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, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
concat_tuple Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/baseline_models/gnn_baselines.py
code served (permissive licence) · get_code("d25cbd25aadd7fea")
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

torch.manual_seed(0)

# Case 1: List of tuples of tensors
tup1 = (torch.randn(2, 4), torch.randn(2, 3))
tup2 = (torch.randn(2, 4), torch.randn(2, 3))
tups_tuple_case = [tup1, tup2]

ARGS = {
    "tups": tups_tuple_case,
    "dim": 0
}
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
dot_product_decode Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/models.py
code served (permissive licence) · get_code("ae488d391f6d24c2")
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, ndim 2, dtype family float, shape (3, 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

torch.manual_seed(0)

# Z should be a 2D tensor representing node embeddings
# Shape: (num_nodes, embedding_dim)
# Using 3 nodes and 4 dimensions to keep it small and distinct
Z = torch.randn(3, 4)

ARGS = {
    'Z': Z
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (3, 3) — shape (3, 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
fill_nan_inf Ran
ran, honoured the contract we drafted
ICLab4DL/GNNBenchEffectiveness/my_utils.py
code served (permissive licence) · get_code("8126ac4ddc6f84ab")
How it ran

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

import numpy as np

# Create a numpy array with NaN and Inf values
a = np.array([
    [1.0, np.nan, 3.0, np.inf],
    [np.nan, 2.0, np.inf, 4.0]
], dtype=np.float32)

ARGS = {
    "a": a
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_each_folder_syn Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/kernel_baselines.py
code served (permissive licence) · get_code("a8975ab6e0eef7e3")
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
import numpy as np

torch.manual_seed(0)

class MockDataItem:
    def __init__(self, y_val, adj_matrix):
        self.y = y_val
        self._adj = adj_matrix
    
    def to_numpy_array(self):
        return self._adj
    
    def __iter__(self):
        yield self

class MockDataset:
    def __init__(self):
        self.train_items = [
            MockDataItem(torch.tensor(0), np.random.rand(3, 3)),
            MockDataItem(torch.tensor(1), np.random.rand(3, 3))
        ]
        self.test_items = [
            MockDataItem(torch.tensor(0), np.random.rand(3, 3))
        ]
    
    def get_subset(self):
        return self.train_items + self.test_items
    
    def get_test_fold(self, fold_id, batch_size=1, shuffle=True):
        return MockDataLoader(self.test_items)
    
    def get_model_selection_fold(self, fold_id, inner_idx=None, batch_size=1, shuffle=True):
        train_loader = MockDataLoader(self.train_items)
        val_loader = MockDataLoader(self.test_items)
        return train_loader, val_loader
    
    def get_dense_adjs(self, dataset):
        return [[np.random.rand(3, 3)] for _ in dataset]

class MockDataLoader:
    def __init__(self, items):
        self.dataset = MockDatasetWithSubset(items)
    
    def __iter__(self):
        return iter(self.dataset)

class MockDatasetWithSubset:
    def __init__(self, items):
        self.items = items
    
    def get_subset(self):
        return self.items
    
    def __iter__(self):
        return iter(self.items)
    
    def __len__(self):
        return len(self.items)

dataset = MockDataset()
fold_id = 0
batch_size = 2

ARGS = {
    "dataset": dataset,
    "fold_id": fold_id,
    "batch_size": batch_size
}
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
get_spd_matrix Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/models.py
code served (permissive licence) · get_code("205ba837e4a7ba39")
How it ran

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

# Create a small directed graph for testing
G = nx.DiGraph()
G.add_edges_from([(0, 1), (1, 2), (2, 3), (0, 2), (1, 3)])

# Create a list of source nodes for shortest path computation
S = [0, 2]

# Define arguments
ARGS = {
    "G": G,
    "S": S,
    "max_spd": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 2) — shape (4, 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
get_test_acc Ran
ran, honoured the contract we drafted
ICLab4DL/GNNBenchEffectiveness/generate_regression_datasets.py
code served (permissive licence) · get_code("0d93961be0db1f27")
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 list, 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 json
import os
import tempfile
import shutil

# Create a temporary directory structure with the required JSON files
temp_dir = tempfile.mkdtemp()

# Create assessment_results.json for as_whole=True case
assessment_results = {
    'avg_TS_score': 0.85,
    'avg_TE_ROCAUC': 0.92
}
assessment_path = os.path.join(temp_dir, 'assessment_results.json')
with open(assessment_path, 'w') as fp:
    json.dump(assessment_results, fp)

# Create OUTER_FOLD directories with outer_results.json files for as_whole=False case
for i in range(1, 11):
    fold_dir = os.path.join(temp_dir, f'OUTER_FOLD_{i}')
    os.makedirs(fold_dir, exist_ok=True)
    
    outer_fold_scores = {
        'OUTER_TR': 0.80 + i * 0.001,
        'OUTER_TS': 0.75 + i * 0.002,
        'OUTER_TR_ROCAUC': 0.88 + i * 0.001,
        'OUTER_TE_ROCAUC': 0.90 + i * 0.0005
    }
    
    results_path = os.path.join(fold_dir, 'outer_results.json')
    with open(results_path, 'w') as fp:
        json.dump(outer_fold_scores, fp)

ARGS = {
    'data_root_path': temp_dir,
    'fold': 10,
    'as_whole': False,
    'roc_auc': False
}
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 list, ndim 1, dtype family float — 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
gumbel_sampling Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/models.py
code served (permissive licence) · get_code("ab41c5d5147f4bb7")
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, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 gumbel_sampling takes:
# - shape: a tuple/list defining the output tensor shape
# - mu: scalar (default 0)
# - beta: scalar (default 1)
# It generates random tensors and applies Gumbel distribution sampling

ARGS = {
    "shape": (2, 4),
    "mu": 0,
    "beta": 1
}
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, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_pyg_dataset Ran
ran, violated the contract we drafted
ICLab4DL/GNNBenchEffectiveness/generate_regression_datasets.py
code served (permissive licence) · get_code("2112bcd784400ec3")
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 = {
    "d_name": "ogb-products"
}
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
last_relevant_pytorch Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/baseline_models/gnn_baselines.py
pointer only (licence: MIT); the stored copy get_code serves, from tsy935/eeg-gnn-ssl, is pointer only (licence: NONE) · get_code("36467b1c44ee49ec")
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 tsy935/eeg-gnn-ssl, 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.

numpy_to_csr Ran
ran; our contract draft was wrong, not the code
ICLab4DL/GNNBenchEffectiveness/my_utils.py
code served (permissive licence) · get_code("0d32a908c36c5aac")
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
from scipy.sparse import csr_matrix

# Create a small numpy array with some non-zero elements
m = np.array([
    [1, 0, 2, 0],
    [0, 3, 0, 0],
    [4, 0, 5, 0]
], dtype=np.float64)

ARGS = {
    "m": m
}
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
get_dense_adjs Not yet run
unverified (harvested, no recorded run)
ICLab4DL/GNNBenchEffectiveness/save_statistics.py
code served (permissive licence) · get_code("b65e0f41c5c27de5")
How it ran

no invocation recorded.

get_each_folder Not yet run
unverified (harvested, no recorded run)
ICLab4DL/GNNBenchEffectiveness/kernel_baselines.py
code served (permissive licence) · get_code("eaac1501e0ff7a2b")
How it ran

no invocation recorded.

matrix_power Not yet run
unverified (harvested, no recorded run)
ICLab4DL/GNNBenchEffectiveness/my_utils.py
code served (permissive licence) · get_code("5e98cba1c9a2acfb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 2 later) and 10 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
dot_product_decode 3 other papers
3 dated earlier
1611.07308 (2016-11)
Variational Graph Auto-Encoders
1906.06532 (2019-06)
Attributed Graph Clustering: A Deep Attentional Embedding Approach
2106.00967 (2021-06)
Multiresolution Equivariant Graph Variational Autoencoder
apply_tuple 2 other papers
1 dated earlier, 1 later
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections
2509.15857 (2025-09)
EvoBrain: Dynamic Multi-Channel EEG Graph Modeling for Time-Evolving Brain Networks
concat_tuple 2 other papers
1 dated earlier, 1 later
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections
2509.15857 (2025-09)
EvoBrain: Dynamic Multi-Channel EEG Graph Modeling for Time-Evolving Brain Networks
last_relevant_pytorch 1 other paper
1 dated earlier
2104.08336 (2021-04)
Self-Supervised Graph Neural Networks for Improved Electroencephalographic Seizure Analysis

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

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 classification benchmarks, vital for assessing and developing graph neural networks (GNNs), have recently been scrutinized, as simple methods like MLPs have demonstrated comparable performance. This leads to an important question: Do these benchmarks effectively distinguish the advancements of GNNs over other methodologies? If so, how do we quantitatively measure this effectiveness? In response, we first propose an empirical protocol based on a fair benchmarking framework to investigate the performance discrepancy between simple methods and GNNs. We further propose a novel metric to quantify the dataset effectiveness by considering both dataset complexity and model performance. To the best of our knowledge, our work is the first to thoroughly study and provide an explicit definition for dataset effectiveness in the graph learning area. Through testing across 16 real-world datasets, we found our metric to align with existing studies and intuitive assumptions. Finally, we explore the causes behind the low effectiveness of certain datasets by investigating the correlation between intrinsic graph properties and class labels, and we developed a novel technique supporting the correlation-controllable synthetic dataset generation. Our findings shed light on the current understanding of benchmark datasets, and our new platform could fuel the future evolution of graph classification benchmarks.

For agents

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

get_harvested_code_for_paper("2407.04999")
get_code_for_paper("2407.04999")
have("2407.04999")

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

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

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

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

Connect an agent — have() is free.