SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.14208 · ICML · 2023

GREAD: Graph Neural Reaction-Diffusion Networks

Noseong Park, Jeongwhan Choi, Seoyoung Hong, Sung-Bae Cho

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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, 0 violated it and 6 have no contract verdict; 3 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/2211.14208.json · badge: /api/ran/2211.14208.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
jeongwhanchoi/gread canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 0 no recorded run
FunctionStatusWhere it lives
add_labels Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from twitter-research/graph-neural-pde
pointer only · get_code("2ca430b1c5874d57")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

compute_enegry_evolution Ran
ran on a synthesized input
jeongwhanchoi/gread/src/base_classes.py
code served (permissive licence) · get_code("34b68102305cf124")
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 2, 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 MockODEBlock(nn.Module):
    def __init__(self):
        super().__init__()
        
    def integrateAt(self, t_list):
        # Returns a tensor of shape (len(t_list), batch_size, num_nodes, num_features)
        # Simulating integration results at different time points
        num_timesteps = len(t_list)
        batch_size = 2
        num_nodes = 4
        num_features = 3
        return torch.randn(num_timesteps, batch_size, num_nodes, num_features)

class MockEnergyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.odeblock = MockODEBlock()
    
    def compute_energy(self, x, edge_index):
        # x shape: (batch_size, num_nodes, num_features)
        # edge_index shape: (2, num_edges)
        # Returns a scalar energy value per sample in batch
        batch_size = x.shape[0]
        return torch.randn(batch_size)
    
    def compute_enegry_evolution(self, edge_index, t_list):
        inter_step = self.odeblock.integrateAt(t_list)
        energy_list = [self.compute_energy(inter_step[i], edge_index) for i in range(inter_step.shape[0])]
        return energy_list

model = MockEnergyModel()

# edge_index: (2, num_edges) - representing source and target nodes
edge_index = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 0]], dtype=torch.long)

# t_list: list of time points
t_list = [0.0, 0.5, 1.0]

ARGS = {
    "self": model,
    "edge_index": edge_index,
    "t_list": t_list
}
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 list, ndim 2, 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
get_label_masks Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from tk-rusch/graphcon
pointer only; the stored copy get_code serves, from tk-rusch/graphcon, is pointer only (licence: NONE) · get_code("5198723f26aa8e49")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_optimizer Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from twitter-research/graph-neural-pde
pointer only · get_code("dab3444777a2e6c7")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

hetero_params Ran
ran on a synthesized input
jeongwhanchoi/gread/src/gread_params.py
code served (permissive licence) · get_code("5d74f163186ed970")
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)

# The function hetero_params takes an 'opt' dictionary and conditionally sets
# two keys based on whether opt['dataset'] is in ['chameleon', 'squirrel'].
# We need to construct a minimal valid opt dict.

# Test case 1: dataset is 'chameleon' (should set hetero_SL and hetero_undir to True)
opt_dict = {
    'dataset': 'chameleon',
}

ARGS = {
    'opt': opt_dict
}
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
run_evaluator Ran
ran on a synthesized input
jeongwhanchoi/gread/src/early_stop_solver.py
code served (permissive licence) · get_code("78ac42cc931414c2")
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)

# Create a simple evaluator class that implements the eval method
class SimpleEvaluator:
    def eval(self, input_dict):
        y_true = input_dict['y_true']
        y_pred = input_dict['y_pred']
        # Simple accuracy: count matching predictions
        acc = (y_pred.argmax(dim=1) == y_true).float().mean().item()
        return {'acc': acc}

# Create a simple data object with required attributes
class SimpleData:
    def __init__(self):
        # Create small tensors: 8 samples total, 4 classes
        self.y = torch.tensor([0, 1, 2, 3, 0, 1, 2, 3], dtype=torch.long)
        # Create masks for train/val/test splits
        self.train_mask = torch.tensor([True, True, False, False, False, False, False, False])
        self.val_mask = torch.tensor([False, False, True, True, False, False, False, False])
        self.test_mask = torch.tensor([False, False, False, False, True, True, True, True])

# Create instances
evaluator = SimpleEvaluator()
data = SimpleData()

# Create predictions: 8 samples, 4 classes (logits)
y_pred = torch.randn(8, 4)

ARGS = {
    'evaluator': evaluator,
    'data': data,
    'y_pred': y_pred
}
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
shared_grand_params Ran
ran on a synthesized input
jeongwhanchoi/gread/src/gread_params.py
code served (permissive licence) · get_code("9258a750860491c6")
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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'opt': {
        'block': None,
        'function': None,
        'optimizer': None,
        'epoch': None,
        'lr': None,
        'method': None,
        'geom_gcn_splits': 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 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
shared_gread_params Ran
ran on a synthesized input
jeongwhanchoi/gread/src/gread_params.py
code served (permissive licence) · get_code("b55b354d7bbb6311")
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

torch.manual_seed(0)

ARGS = {
    'opt': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'epochs': 10,
        'model': 'gread_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 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
threshold_mat Ran
ran on a synthesized input
jeongwhanchoi/gread/src/distances_kNN.py
code served (permissive licence) · get_code("bc4f44e9386e89e5")
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, 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 numpy as np

# Create a small distance matrix for testing
np.random.seed(0)
dist = np.random.rand(4, 3)

ARGS = {
    "dist": dist,
    "quant": 1 / 1000
}
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 (4, 3) — shape (4, 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
get_component Not yet run
unverified (harvested, no recorded run)
jeongwhanchoi/gread/src/data.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ssjcode/FSD-CAP, is pointer only (licence: NONE) · get_code("c68140584cc0e991")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ssjcode/FSD-CAP, 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 4 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_optimizer 8 other papers
5 dated earlier, 3 later
2106.10934 (2021-06)
GRAND: Graph Neural Diffusion
2110.09443 (2021-10)
Beltrami Flow and Neural Diffusion on Graphs
2202.02296 (2022-02)
Graph-Coupled Oscillator Networks
and 5 more not named here
get_component 7 other papers
4 dated earlier, 3 later
1911.05485 (2019-11)
Diffusion Improves Graph Learning
2111.12128 (2021-11)
On the Unreasonable Effectiveness of Feature propagation in Learning on Graphs with Missing Node Features
2206.10991 (2022-06)
Understanding convolution on graphs via energies
and 4 more not named here
add_labels 6 other papers
4 dated earlier, 2 later
2106.10934 (2021-06)
GRAND: Graph Neural Diffusion
2110.09443 (2021-10)
Beltrami Flow and Neural Diffusion on Graphs
2202.02296 (2022-02)
Graph-Coupled Oscillator Networks
and 3 more not named here
get_label_masks 6 other papers
4 dated earlier, 2 later
2106.10934 (2021-06)
GRAND: Graph Neural Diffusion
2110.09443 (2021-10)
Beltrami Flow and Neural Diffusion on Graphs
2202.02296 (2022-02)
Graph-Coupled Oscillator Networks
and 3 more not named here
threshold_mat 1 other paper
1 dated earlier
2209.07754 (2022-09)
On the Robustness of Graph Neural Diffusion to Topology Perturbations

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Graph neural networks (GNNs) are one of the most popular research topics for deep learning. GNN methods typically have been designed on top of the graph signal processing theory. In particular, diffusion equations have been widely used for designing the core processing layer of GNNs, and therefore they are inevitably vulnerable to the notorious oversmoothing problem. Recently, a couple of papers paid attention to reaction equations in conjunctions with diffusion equations. However, they all consider limited forms of reaction equations. To this end, we present a reactiondiffusion equation-based GNN method that considers all popular types of reaction equations in addition to one special reaction equation designed by us. To our knowledge, our paper is one of the most comprehensive studies on reaction-diffusion equation-based GNNs. In our experiments with 9 datasets and 28 baselines, our method, called GREAD, outperforms them in a majority of cases. Further synthetic data experiments show that it mitigates the oversmoothing problem and works well for various homophily rates.

For agents

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

get_harvested_code_for_paper("2211.14208")
get_code_for_paper("2211.14208")
have("2211.14208")

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

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

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

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

Connect an agent — have() is free.