SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2212.01842 · 2022

GraphGDP: Generative Diffusion Processes for Permutation Invariant Graph Generation

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; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 9 failures of our instrument; 3 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/2212.01842.json · badge: /api/ran/2212.01842.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
graph-0/graphgdp canonical (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
conv1x1 Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/models/layers.py
code served (permissive licence) · get_code("40212f42656d386e")
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 Conv2d. 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 = {
    'in_planes': 3,
    'out_planes': 64,
    'stride': 1,
    'bias': True,
    'dilation': 1,
    'padding': 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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_act Ran
ran on a synthesized input
graph-0/graphgdp/models/layers.py
code served (permissive licence) · get_code("fcf5cbfaa8b698a4")
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 ReLU. 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

# Create a stand-in config class that mimics the nested structure
class Config:
    def __init__(self, nonlinearity):
        self.model = type('Model', (), {'nonlinearity': nonlinearity})()

# Test with 'relu' as an example nonlinearity
config = Config('relu')

ARGS = {
    'config': config
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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_data_inverse_scaler Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/datasets.py
code served (permissive licence) · get_code("6c419026e778dee2")
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 function. 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
from types import SimpleNamespace

torch.manual_seed(0)

# Build a minimal config object with a data attribute that has a 'centered' field
config = SimpleNamespace()
config.data = SimpleNamespace()
config.data.centered = True

ARGS = {
    "config": config
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_data_scaler Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/datasets.py
code served (permissive licence) · get_code("346d2e6cc8b48a5d")
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 function. 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
from types import SimpleNamespace

torch.manual_seed(0)

# Create a minimal config object with the data.centered attribute
config = SimpleNamespace(
    data=SimpleNamespace(
        centered=True
    )
)

ARGS = {
    "config": config
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_optimizer Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/losses.py
code served (permissive licence) · get_code("cd6d1a027522be44")
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 Adam. 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 torch.optim as optim

torch.manual_seed(0)

# Create a minimal config object with the required attributes
class Config:
    def __init__(self):
        self.optim = OptimConfig()

class OptimConfig:
    def __init__(self):
        self.optimizer = 'Adam'
        self.lr = 0.001
        self.beta1 = 0.9
        self.eps = 1e-8
        self.weight_decay = 1e-5

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

# Instantiate objects
config = Config()
model = SimpleModel()
params = model.parameters()

ARGS = {
    'config': config,
    'params': params
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
graph-0/graphgdp/models/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from retinal-research/cunsb-rfie, is pointer only (licence: NOASSERTION) · get_code("4f8e8738883964be")
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 retinal-research/cunsb-rfie, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

networkx_graphs Ran
ran on a synthesized input
graph-0/graphgdp/datasets.py
code served (permissive licence) · get_code("ed18f42e9ae89218")
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. 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.data import Data
import networkx as nx

torch.manual_seed(0)

# Create a minimal PyG dataset-like object
# The function calls len(dataset) and dataset[i], and expects Data objects
# that can be converted to networkx graphs via to_networkx()

class MinimalDataset:
    def __init__(self):
        self.data_list = []
        
        # Create first graph
        x1 = torch.randn(4, 3)
        edge_index1 = torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long)
        data1 = Data(x=x1, edge_index=edge_index1)
        self.data_list.append(data1)
        
        # Create second graph
        x2 = torch.randn(3, 3)
        edge_index2 = torch.tensor([[0, 1], [1, 2]], dtype=torch.long)
        data2 = Data(x=x2, edge_index=edge_index2)
        self.data_list.append(data2)
    
    def __len__(self):
        return len(self.data_list)
    
    def __getitem__(self, idx):
        return self.data_list[idx]

dataset = MinimalDataset()

ARGS = {
    "dataset": dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
optimization_manager Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/losses.py
code served (permissive licence) · get_code("6d0eb222ef011692")
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 function. 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)

class ConfigOptim:
    def __init__(self):
        self.lr = 0.001
        self.warmup = 100
        self.grad_clip = 1.0

class Config:
    def __init__(self):
        self.optim = ConfigOptim()

# Create a minimal model with parameters to optimize
model = torch.nn.Linear(4, 3)

# Create optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.001)

# Create config
config = Config()

# Create dummy input and compute a loss to have gradients
x = torch.randn(2, 4)
y = torch.randn(2, 3)
output = model(x)
loss = torch.nn.functional.mse_loss(output, y)
loss.backward()

ARGS = {
    "config": config,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
register_corrector Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/sampling.py
pointer only (licence: MIT); the stored copy get_code serves, from tristan-deep/joint-diffusion, is pointer only (licence: NONE) · get_code("a53120cd234c1c84")
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 tristan-deep/joint-diffusion, 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.

register_model Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/models/utils.py
code served (permissive licence) · get_code("e4b39361eb110388")
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 type. 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)

# Clear the global registry for clean test
_MODELS = {}

class SimpleModel(nn.Module):
    """Minimal model class for testing."""
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Test case 1: Using decorator without arguments (cls is passed directly)
ARGS = {
    'cls': SimpleModel,
    'name': 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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
register_predictor Ran
ran; our contract draft was wrong, not the code
graph-0/graphgdp/sampling.py
pointer only (licence: MIT); the stored copy get_code serves, from tristan-deep/joint-diffusion, is pointer only (licence: NONE) · get_code("abf6bf1442562d4a")
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 tristan-deep/joint-diffusion, 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.

create_model Not yet run
unverified (harvested, no recorded run)
graph-0/graphgdp/models/utils.py
code served (permissive licence) · get_code("51707ec7a2051aae")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
graph-0/graphgdp/models/utils.py
code served (permissive licence) · get_code("b3e18524b8df81a1")
How it ran

no invocation recorded.

get_predictor Not yet run
unverified (harvested, no recorded run)
graph-0/graphgdp/sampling.py
code served (permissive licence) · get_code("a58facb8fe71823a")
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, 11 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 11 later) and 3 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_data_inverse_scaler 17 other papers
6 dated earlier, 11 later
2106.05527 (2021-06)
Soft Truncation: A Universal Training Technique of Score-based Diffusion Model for High Precision Score Estimation
2110.05243 (2021-10)
Score-based diffusion models for accelerated MRI
2205.01490 (2022-05)
Subspace Diffusion Generative Models
and 14 more not named here
get_data_scaler 17 other papers
6 dated earlier, 11 later
2106.05527 (2021-06)
Soft Truncation: A Universal Training Technique of Score-based Diffusion Model for High Precision Score Estimation
2110.05243 (2021-10)
Score-based diffusion models for accelerated MRI
2205.01490 (2022-05)
Subspace Diffusion Generative Models
and 14 more not named here
get_predictor 16 other papers
4 dated earlier, 12 later · 1 only as an assembly brick
2006.09011 (2020-06)
Improved Techniques for Training Score-Based Generative Models
2105.14080 (2021-05)
Gotta Go Fast When Generating Data with Score-Based Models
2112.07068 (2021-12)
Score-Based Generative Modeling with Critically-Damped Langevin Diffusion
and 13 more not named here
optimization_manager 16 other papers
7 dated earlier, 9 later
2106.05527 (2021-06)
Soft Truncation: A Universal Training Technique of Score-based Diffusion Model for High Precision Score Estimation
2110.05243 (2021-10)
Score-based diffusion models for accelerated MRI
2205.01490 (2022-05)
Subspace Diffusion Generative Models
and 13 more not named here
get_optimizer 15 other papers
5 dated earlier, 10 later
2110.05243 (2021-10)
Score-based diffusion models for accelerated MRI
2205.01490 (2022-05)
Subspace Diffusion Generative Models
2209.12753 (2022-09)
On Investigating the Conservative Property of Score-Based Generative Models
and 12 more not named here
get_model 6 other papers
6 later
2303.05456 (2023-03)
Restoration based Generative Models
2305.19693 (2023-05)
Spontaneous Symmetry Breaking in Generative Diffusion Models
2310.10649 (2023-10)
A Computational Framework for Solving Wasserstein Lagrangian Flows
and 3 more not named here
register_model 6 other papers
6 later
2303.05456 (2023-03)
Restoration based Generative Models
2305.19693 (2023-05)
Spontaneous Symmetry Breaking in Generative Diffusion Models
2310.10649 (2023-10)
A Computational Framework for Solving Wasserstein Lagrangian Flows
and 3 more not named here
get_timestep_embedding 4 other papers
4 later
2305.15086 (2023-05)
Unpaired Image-to-Image Translation via Neural Schrödinger Bridge
2407.10703 (2024-07)
Towards Robust Event-based Networks for Nighttime via Unpaired Day-to-Night Event Translation
2409.10966 (2024-09)
CUNSB-RFIE: Context-aware Unpaired Neural Schrödinger Bridge in Retinal Fundus Image Enhancement
and 1 more not named here
conv1x1 1 other paper
1 later
2410.24012 (2024-10)
Diffusion Twigs with Loop Guidance for Conditional Graph Generation
register_corrector 1 other paper
1 later
2302.05290 (2023-02)
Removing Structured Noise with Diffusion Models
register_predictor 1 other paper
1 later
2302.05290 (2023-02)
Removing Structured Noise with Diffusion Models

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 generative models have broad applications in biology, chemistry and social science. However, modelling and understanding the generative process of graphs is challenging due to the discrete and high-dimensional nature of graphs, as well as permutation invariance to node orderings in underlying graph distributions. Current leading autoregressive models fail to capture the permutation invariance nature of graphs for the reliance on generation ordering and have high time complexity. Here, we propose a continuous-time generative diffusion process for permutation invariant graph generation to mitigate these issues. Specifically, we first construct a forward diffusion process defined by a stochastic differential equation (SDE), which smoothly converts graphs within the complex distribution to random graphs that follow a known edge probability. Solving the corresponding reverse-time SDE, graphs can be generated from newly sampled random graphs. To facilitate the reverse-time SDE, we newly design a position-enhanced graph score network, capturing the evolving structure and position information from perturbed graphs for permutation equivariant score estimation. Under the evaluation of comprehensive metrics, our proposed generative diffusion process achieves competitive performance in graph distribution learning. Experimental results also show that GraphGDP can generate high-quality graphs in only 24 function evaluations, much faster than previous autoregressive models.

For agents

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

get_harvested_code_for_paper("2212.01842")
get_code_for_paper("2212.01842")
have("2212.01842")

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

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

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

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

Connect an agent — have() is free.