SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.11633 · 2022

Graphically Structured Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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, 1 violated it and 6 have no contract verdict; 4 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/2210.11633.json · badge: /api/ran/2210.11633.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
plai-group/gsdm canonical (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
plai-group/gsdm/models/diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
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 Xingyu-Zheng/BiDM, 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.

bmf_shared_var_positions Ran
ran on a synthesized input
plai-group/gsdm/datasets/bmf.py
code served (permissive licence) · get_code("96b495198783c719")
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 int; 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 numpy as np
import functools

@functools.lru_cache(maxsize=1000, typed=False)
def bmf_shared_var_positions(t, m, n, fit_intermediate):

    def make_indices(r, c, extra_dim=1):
        arr = np.array([[[[i, j, k] for k in range(extra_dim)] for j in range(c)] for i in range(r)])
        return [list(ind) for ind in arr.reshape(-1, 3)]
    return make_indices(t, m) + make_indices(n, m) + (make_indices(t, n, m) if fit_intermediate else []) + make_indices(t, n)


ARGS = {
    "t": 3,
    "m": 4,
    "n": 5,
    "fit_intermediate": True
}
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 list, ndim 2, dtype family int — 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
bmf_shared_var_positions Ran
ran on a synthesized input
plai-group/gsdm/datasets/hbmf.py
code served (permissive licence) · get_code("4229a368125cbbc7")
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 int; 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 numpy as np
import functools

def bmf_shared_var_positions(t, m, n, fit_intermediate):

    def make_indices(r, c, extra_dim=1):
        arr = np.array([[[[i, j, k] for k in range(extra_dim)] for j in range(c)] for i in range(r)])
        return [list(ind) for ind in arr.reshape(-1, 3)]
    return make_indices(t, m) + make_indices(n, m) + (make_indices(t, n, m) if fit_intermediate else []) + make_indices(t, n) + make_indices(1, 1) + (make_indices(t, 1) if fit_intermediate else [])


ARGS = {
    "t": 3,
    "m": 4,
    "n": 5,
    "fit_intermediate": True
}
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 list, ndim 2, dtype family int — 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
check_integrity Ran
ran, violated the contract we drafted
plai-group/gsdm/datasets/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xingyu-zheng/bidm, is pointer only (licence: NONE) · get_code("7345763c9b9300fb")
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 xingyu-zheng/bidm, 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.

cmf_shared_var_positions Ran
ran on a synthesized input
plai-group/gsdm/datasets/cmf.py
code served (permissive licence) · get_code("6d0d7e1fb0959a7b")
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 int; 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 numpy as np
import functools

@functools.lru_cache(maxsize=1000, typed=False)
def cmf_shared_var_positions(t, m, n, fit_intermediate):

    def make_indices(r, c, extra_dim=1):
        arr = np.array([[[[i, j, k] for k in range(extra_dim)] for j in range(c)] for i in range(r)])
        return [list(ind) for ind in arr.reshape(-1, 3)]
    return make_indices(t, m) + make_indices(n, m) + (make_indices(t, n, m) if fit_intermediate else []) + make_indices(t, n)

ARGS = {
    "t": 3,
    "m": 4,
    "n": 5,
    "fit_intermediate": True
}
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 list, ndim 2, dtype family int — 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
list_dir Ran
ran; our contract draft was wrong, not the code
plai-group/gsdm/datasets/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoboxia/T-Revision, is pointer only (licence: NONE) · get_code("915e1c6c38494be9")
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 xiaoboxia/T-Revision, 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.

list_files Ran
ran; our contract draft was wrong, not the code
plai-group/gsdm/datasets/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoboxia/T-Revision, is pointer only (licence: NONE) · get_code("208e196e9582a9a6")
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 xiaoboxia/T-Revision, 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.

noise_estimation_loss Ran
ran on a synthesized input
plai-group/gsdm/functions/losses.py
code served (permissive licence) · get_code("c639cf282cbd3993")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal config object
class Config:
    def __init__(self):
        self.model = type('obj', (object,), {'conditional': 'yes'})()

# Build a minimal model that satisfies the function's usage
class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.module = type('obj', (object,), {'config': Config()})()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x, t, log_attn=False, obs_mask=None, obs=None):
        # x shape: (batch, features)
        # return output of same shape as x
        return self.linear(x)

# Create model wrapped to have .module attribute
model = DummyModel()
model.module = type('obj', (object,), {'config': Config()})()

# Tensor dimensions:
# batch_size = 2
# feature_dim = 4
# time_steps = 3
batch_size = 2
feature_dim = 4
num_timesteps = 3

x0 = torch.randn(batch_size, feature_dim)
t = torch.randint(0, num_timesteps, (batch_size,), dtype=torch.long)
e = torch.randn(batch_size, feature_dim)
b = torch.linspace(0.0001, 0.02, num_timesteps)
w = torch.ones(num_timesteps)

# obs_mask should have 'xt' key based on how it's used: obs_mask['xt'] * x0
obs_mask = {
    'xt': torch.ones(batch_size, feature_dim)
}

ARGS = {
    'model': model,
    'x0': x0,
    't': t,
    'e': e,
    'b': b,
    'w': w,
    'predict': 'eps',
    'obs_mask': obs_mask,
    'keepdim': False,
    'log_attn': False,
    'mean_over_latents': False,
    'loss_mask': None,
    'regression': False,
}
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 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
nonlinearity Ran
ran; our contract draft was wrong, not the code
plai-group/gsdm/models/diffusion.py
code served (permissive licence) · get_code("3137073275f8c21a")
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) 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)

# The function takes a single parameter 'x' which is used with:
# - multiplication operator (*)
# - torch.sigmoid() function
# This means x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 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 (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
sorting_faithful_inversion_edges Ran
ran on a synthesized input
plai-group/gsdm/datasets/sorting.py
code served (permissive licence) · get_code("5c12a3350be0ab4b")
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 set. 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
import functools

# Set random seed for reproducibility
np.random.seed(0)

# Define arguments for sorting_faithful_inversion_edges
ARGS = {
    "n": 3,
    "nc": 5,
    "fit_intermediate": True,
    "sparsity_mask_index": 0
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
sudoku_generate Ran
ran on a synthesized input
plai-group/gsdm/datasets/sudoku.py
code served (permissive licence) · get_code("028399c1a766ee1d")
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 1, dtype family int, shape (81,) 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 numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Analyze the function:
# - gridTotalCount: used as size for torch.zeros, should be an integer
# - gridBlockSize1: used in range(), list indexing, modulo operations - should be int
# - gridBlockSize2: used in range(), list indexing, modulo operations - should be int
# - gridBlockCount: used in range(), modulo operations, list operations - should be int

# The function creates a sudoku-like grid structure with blocks
# Let's use a small 3x3 sudoku with 3x3 blocks
gridBlockSize1 = 3  # height of each block
gridBlockSize2 = 3  # width of each block
gridBlockCount = 9  # number of blocks (3x3 grid of blocks)
gridTotalCount = gridBlockCount * gridBlockCount  # 81 total cells

ARGS = {
    "gridTotalCount": gridTotalCount,
    "gridBlockSize1": gridBlockSize1,
    "gridBlockSize2": gridBlockSize2,
    "gridBlockCount": gridBlockCount
}
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 Tensor, ndim 1, dtype family int, shape (81,) — shape (81,) 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_timestep_embedding Not yet run
unverified (harvested, no recorded run)
plai-group/gsdm/models/diffusion.py
code served (permissive licence) · get_code("c601e599e233bbf3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 5 later) and 7 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
nonlinearity 156 other papers
15 dated earlier, 1 the same month, 140 later · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
Normalize 90 other papers
10 dated earlier, 1 the same month, 79 later · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
list_dir 19 other papers
5 dated earlier, 14 later
1803.02999 (2018-03)
On First-Order Meta-Learning Algorithms
1903.12648 (2019-03)
Overcoming Catastrophic Forgetting with Unlabeled Data in the Wild
1906.00189 (2019-06)
Are Anchor Points Really Indispensable in Label-Noise Learning?
and 16 more not named here
check_integrity 16 other papers
2 dated earlier, 14 later
1908.07724 (2019-08)
Restricted Recurrent Neural Networks
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2211.14680 (2022-11)
A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction
and 13 more not named here
list_files 16 other papers
5 dated earlier, 11 later
1803.02999 (2018-03)
On First-Order Meta-Learning Algorithms
1903.12648 (2019-03)
Overcoming Catastrophic Forgetting with Unlabeled Data in the Wild
1906.00189 (2019-06)
Are Anchor Points Really Indispensable in Label-Noise Learning?
and 13 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

We introduce a framework for automatically defining and learning deep generative models with problem-specific structure. We tackle problem domains that are more traditionally solved by algorithms such as sorting, constraint satisfaction for Sudoku, and matrix factorization. Concretely, we train diffusion models with an architecture tailored to the problem specification. This problem specification should contain a graphical model describing relationships between variables, and often benefits from explicit representation of subcomputations. Permutation invariances can also be exploited. Across a diverse set of experiments we improve the scaling relationship between problem dimension and our model's performance, in terms of both training time and final accuracy. Our code can be found at https://github.com/plai-group/gsdm.

For agents

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

get_harvested_code_for_paper("2210.11633")
get_code_for_paper("2210.11633")
have("2210.11633")

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

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

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

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

Connect an agent — have() is free.