SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.19121 · 2024

Spatio-Spectral Graph Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 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/2405.19121.json · badge: /api/ran/2405.19121.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
sigeisler/s2gnn canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
cheby Ran
ran, honoured the contract we drafted
sigeisler/s2gnn/graphgps/layer/chebnet_conv_layer.py
pointer only (licence: MIT); the stored copy get_code serves, from ivam-he/chebnetii, is pointer only (licence: NONE) · get_code("d7653b0093307e2d")
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 ivam-he/chebnetii, 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_ckpt_epoch Ran
ran, honoured the contract we drafted
sigeisler/s2gnn/graphgps/checkpoint.py
code served (permissive licence) · get_code("9bc9644080fc8b8c")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import tempfile
import os
from unittest.mock import MagicMock, patch
from torch_geometric.graphgym.config import cfg

# Create a temporary directory for the run_dir
temp_dir = tempfile.mkdtemp()
cfg.run_dir = temp_dir

# Create the checkpoint directory
ckpt_dir = os.path.join(temp_dir, 'ckpt')
os.makedirs(ckpt_dir, exist_ok=True)

# Create some dummy checkpoint files to make get_ckpt_epochs() work
for epoch_num in [0, 5, 10]:
    ckpt_path = os.path.join(ckpt_dir, f'{epoch_num}.ckpt')
    with open(ckpt_path, 'w') as f:
        f.write('dummy')

# Define arguments for get_ckpt_epoch
ARGS = {
    'epoch': -1,  # Negative index to test the conditional branch
}
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 int, ndim 0, dtype family int, 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
get_ckpt_path Ran
ran; our contract draft was wrong, not the code
sigeisler/s2gnn/graphgps/checkpoint.py
code served (permissive licence) · get_code("795006cd02f46c57")
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.path as osp
from torch_geometric.graphgym.config import cfg

# Mock the cfg object if needed
class MockConfig:
    def __init__(self):
        self.run_dir = '/tmp/test_run'

# Set up the config
if not hasattr(cfg, 'run_dir'):
    cfg.run_dir = '/tmp/test_run'

# Define ARGS for get_ckpt_path
ARGS = {
    'epoch': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch_geometric — 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
get_final_pretrained_ckpt Ran
ran; our contract draft was wrong, not the code
sigeisler/s2gnn/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
load_ckpt Ran
ran; our contract draft was wrong, not the code
sigeisler/s2gnn/graphgps/checkpoint.py
code served (permissive licence) · get_code("85a688d6f0fbec00")
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
import torch.optim as optim
from torch_geometric.graphgym.config import cfg
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for checkpoints
temp_dir = tempfile.mkdtemp()
cfg.run_dir = temp_dir

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

model = SimpleModel()

# Create an optimizer
optimizer = optim.SGD(model.parameters(), lr=0.01)

# Create a simple scheduler
scheduler = optim.lr_scheduler.StepLR(optimizer, step_size=1)

# Prepare checkpoint directory
ckpt_dir = os.path.join(temp_dir, 'ckpt')
os.makedirs(ckpt_dir, exist_ok=True)

# Create and save a checkpoint file
checkpoint = {
    'model_state': model.state_dict(),
    'optimizer_state': optimizer.state_dict(),
    'scheduler_state': scheduler.state_dict(),
    'data_state': {'epoch': 0, 'loss': 0.5}
}
ckpt_path = os.path.join(ckpt_dir, '0.ckpt')
torch.save(checkpoint, ckpt_path)

ARGS = {
    'model': model,
    'optimizer': optimizer,
    'scheduler': scheduler,
    'return_data': True,
    'epoch': -1
}
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, 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
load_pretrained_model_cfg Ran
ran; our contract draft was wrong, not the code
sigeisler/s2gnn/graphgps/finetuning.py
code served (permissive licence) · get_code("883f697aaaa033b8")
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 CfgNode. 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 tempfile
import os
import os.path as osp
from yacs.config import CfgNode

# Create a temporary directory for the pretrained model config
tmpdir = tempfile.mkdtemp()

# Create a minimal config.yaml file in the temporary directory
config_yaml_path = osp.join(tmpdir, 'config.yaml')
with open(config_yaml_path, 'w') as f:
    f.write("""
model:
  type: GPSModel
  graph_pooling: mean
  edge_decoding: mlp
dataset:
  node_encoder: true
  node_encoder_name: linear
  node_encoder_bn: false
  edge_encoder: true
  edge_encoder_name: linear
  edge_encoder_bn: false
posenc_GraphormerBias:
  enable: false
posenc_LapPE:
  enable: false
gt:
  layer_type: CustomMessagePassing
gnn:
  head: gat
  layers_post_mp: 2
  act: relu
  dropout: 0.1
  dim_hidden: 64
  num_layers: 3
""")

# Create the main cfg
cfg = CfgNode()
cfg.pretrained = CfgNode()
cfg.pretrained.dir = tmpdir
cfg.model = CfgNode()
cfg.model.type = 'GPSModel'
cfg.model.graph_pooling = 'mean'
cfg.model.edge_decoding = 'mlp'
cfg.dataset = CfgNode()
cfg.dataset.node_encoder = True
cfg.dataset.node_encoder_name = 'linear'
cfg.dataset.node_encoder_bn = False
cfg.dataset.edge_encoder = True
cfg.dataset.edge_encoder_name = 'linear'
cfg.dataset.edge_encoder_bn = False
cfg.posenc_GraphormerBias = CfgNode()
cfg.posenc_GraphormerBias.enable = False
cfg.posenc_LapPE = CfgNode()
cfg.posenc_LapPE.enable = False
cfg.gt = CfgNode()
cfg.gt.layer_type = 'CustomMessagePassing'
cfg.gnn = CfgNode()
cfg.gnn.head = 'gat'
cfg.gnn.layers_post_mp = 2
cfg.gnn.act = 'relu'
cfg.gnn.dropout = 0.1
cfg.gnn.dim_hidden = 64
cfg.gnn.num_layers = 3

ARGS = {
    'cfg': cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch_geometric, yacs — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CfgNode — a CfgNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CfgNode 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
new_optimizer_config Ran
ran; our contract draft was wrong, not the code
sigeisler/s2gnn/main_tpugraphs.py
code served (permissive licence) · get_code("398db63189d345b3")
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

torch.manual_seed(0)

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

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

# Instantiate the config
test_cfg = MinimalConfig()

ARGS = {
    "cfg": test_cfg
}
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)
sigeisler/s2gnn/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.

init_model_from_pretrained Not yet run
unverified (harvested, no recorded run)
sigeisler/s2gnn/graphgps/finetuning.py
code served (permissive licence) · get_code("897f9d9194e1b336")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 3 later) and 5 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
get_final_pretrained_ckpt 27 other papers
16 dated earlier, 5 the same month, 6 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
13 dated earlier, 3 the same month, 5 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
cheby 4 other papers
2 dated earlier, 2 later · 1 only as an assembly brick
2110.14446 (2021-10)
Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods
2202.03580 (2022-02)
Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited
2407.14459 (2024-07)
PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer
and 1 more not named here
new_optimizer_config 4 other papers
3 dated earlier, 1 the same month
2305.12322 (2023-05)
Learning Large Graph Property Prediction via Graph Segment Training
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
and 1 more not named here

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

Spatial Message Passing Graph Neural Networks (MPGNNs) are widely used for learning on graph-structured data. However, key limitations of l-step MPGNNs are that their "receptive field" is typically limited to the l-hop neighborhood of a node and that information exchange between distant nodes is limited by over-squashing. Motivated by these limitations, we propose Spatio-Spectral Graph Neural Networks (S$^2$GNNs) -- a new modeling paradigm for Graph Neural Networks (GNNs) that synergistically combines spatially and spectrally parametrized graph filters. Parameterizing filters partially in the frequency domain enables global yet efficient information propagation. We show that S$^2$GNNs vanquish over-squashing and yield strictly tighter approximation-theoretic error bounds than MPGNNs. Further, rethinking graph convolutions at a fundamental level unlocks new design spaces. For example, S$^2$GNNs allow for free positional encodings that make them strictly more expressive than the 1-Weisfeiler-Lehman (WL) test. Moreover, to obtain general-purpose S$^2$GNNs, we propose spectrally parametrized filters for directed graphs. S$^2$GNNs outperform spatial MPGNNs, graph transformers, and graph rewirings, e.g., on the peptide long-range benchmark tasks, and are competitive with state-of-the-art sequence modeling. On a 40 GB GPU, S$^2$GNNs scale to millions of nodes.

For agents

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

get_harvested_code_for_paper("2405.19121")
get_code_for_paper("2405.19121")
have("2405.19121")

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

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

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

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

Connect an agent — have() is free.