SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.12322 · 2023

Learning Large Graph Property Prediction via Graph Segment Training

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2305.12322.json · badge: /api/ran/2305.12322.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
kaidic/gst canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
default Ran
ran, violated the contract we drafted
kaidic/gst/graphgps/layer/performer_layer.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("60fff7c3c400d7ff")
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 ThomasMrY/VCT, 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.

empty Ran
ran; our contract draft was wrong, not the code
kaidic/gst/graphgps/layer/performer_layer.py
code served (permissive licence) · get_code("19925529d217754e")
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)

# The function 'empty' checks if a tensor has zero elements by calling tensor.numel()
# It returns True if numel() == 0, False otherwise
# We need to provide a tensor argument

# Create a small non-empty tensor for testing
tensor_nonempty = torch.randn(2, 4)

# Also create an empty tensor to test the function
tensor_empty = torch.tensor([])

ARGS = {
    "tensor": tensor_nonempty
}
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
exists Ran
ran, violated the contract we drafted
kaidic/gst/graphgps/layer/performer_layer.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
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 ThomasMrY/VCT, 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.

get_final_pretrained_ckpt Ran
ran; our contract draft was wrong, not the code
kaidic/gst/graphgps/finetuning.py
code served (permissive licence) · get_code("1bb331bf70a78136")
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 os
import tempfile
import shutil

# Create a temporary directory with checkpoint files
temp_dir = tempfile.mkdtemp()

# Create some checkpoint files with epoch numbers
checkpoint_files = ['1.ckpt', '2.ckpt', '5.ckpt', '3.ckpt']
for ckpt_file in checkpoint_files:
    filepath = os.path.join(temp_dir, ckpt_file)
    with open(filepath, 'w') as f:
        f.write('dummy checkpoint data')

# Define arguments for the function
ARGS = {
    'ckpt_dir': temp_dir
}
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 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
init_model_from_pretrained Ran
ran; our contract draft was wrong, not the code
kaidic/gst/graphgps/finetuning.py
code served (permissive licence) · get_code("9e4db46ba20af98e")
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 SimpleModel. 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 os
import os.path as osp
import tempfile
from torch_geometric.graphgym.checkpoint import MODEL_STATE

torch.manual_seed(0)

# Create a temporary directory structure for pretrained checkpoints
temp_dir = tempfile.mkdtemp()
ckpt_dir = osp.join(temp_dir, '0', 'ckpt')
os.makedirs(ckpt_dir, exist_ok=True)

# Create a simple model class
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.main_layer = nn.Linear(4, 3)
        self.post_mp = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.main_layer(x)
        x = self.post_mp(x)
        return x

# Create a pretrained model and save its state
pretrained_model = SimpleModel()
pretrained_state = pretrained_model.state_dict()

# Save checkpoint with epoch number in filename
ckpt_data = {MODEL_STATE: pretrained_state}
ckpt_path = osp.join(ckpt_dir, '5.ckpt')
torch.save(ckpt_data, ckpt_path)

# Create a fresh model to load into
model = SimpleModel()

# Define the arguments
ARGS = {
    'model': model,
    'pretrained_dir': temp_dir,
    'freeze_main': False,
    'reset_prediction_head': True,
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_pretrained_model_cfg Ran
ran; our contract draft was wrong, not the code
kaidic/gst/graphgps/finetuning.py
pointer only (licence: MIT); the stored copy get_code serves, from sunjss/over-aggregating, is pointer only (licence: NONE) · get_code("a969312556ec39bb")
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 sunjss/over-aggregating, 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.

new_optimizer_config Ran
ran; our contract draft was wrong, not the code
kaidic/gst/main_tpugraphs.py
code served (permissive licence) · get_code("585566394225e457")
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 OptimizerConfig. 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.graphgym.config import cfg, set_cfg
from torch_geometric.graphgym.optim import OptimizerConfig

torch.manual_seed(0)

# Create a minimal config object that has the optim attributes the function needs
class MinimalConfig:
    def __init__(self):
        self.optim = MinimalOptimConfig()

class MinimalOptimConfig:
    def __init__(self):
        self.optimizer = "adam"
        self.base_lr = 0.001
        self.weight_decay = 1e-5
        self.momentum = 0.9

cfg_instance = MinimalConfig()

ARGS = {
    "cfg": cfg_instance
}
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 OptimizerConfig — a OptimizerConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OptimizerConfig 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
apply_chunking_to_forward Not yet run
unverified (harvested, no recorded run)
kaidic/gst/graphgps/layer/bigbird_layer.py
pointer only (licence: MIT); the stored copy get_code serves, from sunjss/over-aggregating, is pointer only (licence: NONE) · get_code("ae56bcfaae96da3c")
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 sunjss/over-aggregating, 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. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 8 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 4 the same month, 8 later) and 0 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
exists 486 other papers
174 dated earlier, 13 the same month, 293 later, 4 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
default 163 other papers
82 dated earlier, 6 the same month, 73 later, 1 same year, order not determinable, 1 undated · 27 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1810.00825 (2018-10)
Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks
1907.01470 (2019-07)
Augmenting Self-attention with Persistent Memory
and 160 more not named here
get_final_pretrained_ckpt 27 other papers
2 dated earlier, 2 the same month, 23 later
2302.04181 (2023-02)
Attending to Graph Transformers
2302.08647 (2023-02)
Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structures
2305.08018 (2023-05)
DRew: Dynamically Rewired Message Passing with Delay
and 24 more not named here
apply_chunking_to_forward 21 other papers
4 dated earlier, 17 later
2002.01685 (2020-02)
Parsing as Pretraining
2210.09545 (2022-10)
Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models
2302.04181 (2023-02)
Attending to Graph Transformers
and 18 more not named here
empty 7 other papers
1 dated earlier, 6 later
2207.02505 (2022-07)
Pure Transformers are Powerful Graph Learners
2307.10802 (2023-07)
Meta-Transformer: A Unified Framework for Multimodal Learning
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
and 4 more not named here
init_model_from_pretrained 6 other papers
1 the same month, 5 later
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2306.07812 (2023-06)
Automated 3D Pre-Training for Molecular Property Prediction
2406.05815 (2024-06)
What Can We Learn from State Space Models for Machine Learning on Graphs?
and 3 more not named here
new_optimizer_config 4 other papers
4 later
2402.02518 (2024-02)
Unifying Generation and Prediction on Graphs with Latent Graph Diffusion
2404.03380 (2024-04)
On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformers
2405.11951 (2024-05)
Distinguished In Uniform: Self Attention Vs. Virtual Nodes
and 1 more not named here
load_pretrained_model_cfg 2 other papers
2 later
2406.05815 (2024-06)
What Can We Learn from State Space Models for Machine Learning on Graphs?
2510.21267 (2025-10)
Relieving the Over-Aggregating Effect in Graph Transformers

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

Learning to predict properties of large graphs is challenging because each prediction requires the knowledge of an entire graph, while the amount of memory available during training is bounded. Here we propose Graph Segment Training (GST), a general framework that utilizes a divide-and-conquer approach to allow learning large graph property prediction with a constant memory footprint. GST first divides a large graph into segments and then backpropagates through only a few segments sampled per training iteration. We refine the GST paradigm by introducing a historical embedding table to efficiently obtain embeddings for segments not sampled for backpropagation. To mitigate the staleness of historical embeddings, we design two novel techniques. First, we finetune the prediction head to fix the input distribution shift. Second, we introduce Stale Embedding Dropout to drop some stale embeddings during training to reduce bias. We evaluate our complete method GST-EFD (with all the techniques together) on two large graph property prediction benchmarks: MalNet and TpuGraphs. Our experiments show that GST-EFD is both memory-efficient and fast, while offering a slight boost on test accuracy over a typical full graph training regime.

For agents

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

get_harvested_code_for_paper("2305.12322")
get_code_for_paper("2305.12322")
have("2305.12322")

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

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

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

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

Connect an agent — have() is free.