SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.24012 · NeurIPS · 2024

Diffusion Twigs with Loop Guidance for Conditional Graph Generation

Vikas Garg, Yogesh Verma, Giangiacomo Mercatali, Andre Freitas

arXiv · PDF · Open in the Atlas

Code that ran

16 of 21 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 5 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, 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/2410.24012.json · badge: /api/ran/2410.24012.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
Aalto-QuML/Diffusion_twigs canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
aalto-quml/diffusion_twigs canonical (classifier label)
classifier basis: classifier_2025
2 ran · 2 no recorded run
FunctionStatusWhere it lives
interpolate_fn Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/diffusion/noise_schedule.py
code served (permissive licence) · get_code("6a35b62fbc80f70a")
How it ran

Ran in Syntology's jail 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, 1) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:15:28Z). 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)

# x: PyTorch tensor with shape [N, C], where N is batch size, C is number of channels
x = torch.randn(2, 1)

# xp: PyTorch tensor with shape [C, K], where K is number of keypoints
xp = torch.linspace(0, 1, 4).unsqueeze(0).repeat(1, 1)  # shape [1, 4]

# yp: PyTorch tensor with shape [C, K]
yp = torch.linspace(0, 2, 4).unsqueeze(0).repeat(1, 1)  # shape [1, 4]

ARGS = {
    "x": x,
    "xp": xp,
    "yp": yp,
}
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, 1) — shape (2, 1) 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
unsorted_segment_sum Ran
ran; our contract draft was wrong, not the code
aalto-quml/diffusion_twigs/cond_gen/model.py
code served (permissive licence) · get_code("00645c62afd4a2ec")
How it ran

Ran in Syntology's jail 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. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:17:26Z). 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)

# Create small test tensors
# data: shape (num_nodes, feature_dim)
data = torch.randn(2, 4)

# segment_ids: shape (num_nodes,) - assigns each node to a segment
segment_ids = torch.tensor([0, 1], dtype=torch.long)

# num_segments: total number of segments
num_segments = 2

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
}
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
compute_mmd Ran
ran; our contract draft was wrong, not the code
aalto-quml/diffusion_twigs/evaluation/mmd.py
code served (permissive licence) · get_code("50a84a037f597f43")
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 float, 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)

# Create small sample tensors for source and target distributions
# source: shape (2, 4) - 2 samples, 4 features
# target: shape (3, 4) - 3 samples, 4 features
source = torch.randn(2, 4)
target = torch.randn(3, 4)

ARGS = {
    "source": source,
    "target": target,
    "batch_size": 1000,
    "kernel_mul": 2.0,
    "kernel_num": 5,
    "fix_sigma": None,
}
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 float, 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/models/cdgs.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
expand_dims Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/diffusion/noise_schedule.py
code served (permissive licence) · get_code("e6110366588c5c65")
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 4, dtype family float, shape (2, 1, 1, 1) 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)

# Create a small 1D tensor with shape [N]
v = torch.randn(2)

# Create a dims parameter - total number of dimensions desired
dims = 4

ARGS = {
    "v": v,
    "dims": dims,
}
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 4, dtype family float, shape (2, 1, 1, 1) — shape (2, 1, 1, 1) 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
gaussian Ran
ran, violated the contract we drafted
Aalto-QuML/Diffusion_twigs/models/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from bowenwang77/DR-Label, is pointer only (licence: NONE) · get_code("294ba20b052bfbc7")
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 bowenwang77/DR-Label, 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_optimizer Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/losses.py
code served (permissive licence) · get_code("f1b5f46eb8214d80")
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 nested optim attributes
class OptimConfig:
    def __init__(self):
        self.optimizer = 'Adam'
        self.lr = 0.001
        self.beta1 = 0.9
        self.eps = 1e-8
        self.weight_decay = 1e-4

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

# 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 config
config = Config()

# Instantiate model and get its parameters
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_polynomial_schedule Ran
ran, honoured the contract we drafted
Aalto-QuML/Diffusion_twigs/diffusion/noise_schedule.py
code served (permissive licence) · get_code("615f5bcf927413ba")
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 float, shape (10,) 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)

ARGS = {
    "time_steps": 10,
    "s": 0.0001,
    "power": 2,
}
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 1, dtype family float, shape (10,) — shape (10,) 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_rw_feat Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/models/cdgs.py
code served (permissive licence) · get_code("aab71a74e206a559")
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. 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)

# k_step: number of random walk steps
k_step = 3

# dense_adj: batch of dense adjacency matrices
# Shape: (batch_size, num_nodes, num_nodes)
# Using batch_size=2, num_nodes=4
batch_size = 2
num_nodes = 4
dense_adj = torch.rand(batch_size, num_nodes, num_nodes)

ARGS = {
    "k_step": k_step,
    "dense_adj": dense_adj,
}
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 — a tuple 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
get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Aalto-QuML/Diffusion_twigs/models/cdgs.py
code served (permissive licence) · get_code("786fa26b045cbe1b")
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 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
import math

torch.manual_seed(0)

# The function expects:
# - timesteps: a 1D tensor of timestep indices
# - embedding_dim: an integer for the embedding dimension
# - max_positions: an integer (has default value 10000)

ARGS = {
    "timesteps": torch.tensor([0, 5], dtype=torch.long),
    "embedding_dim": 4,
    "max_positions": 10000,
}
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 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
gradient_clipping Ran
ran, honoured the contract we drafted
Aalto-QuML/Diffusion_twigs/losses.py
code served (permissive licence) · get_code("68f93962e8452c1b")
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


# Stand-in class for gradnorm_queue that supports mean(), std(), and add()
class GradNormQueue:
    def __init__(self):
        self.values = [1.0, 1.2, 0.9, 1.1]  # Pre-populate with some gradient norm values
    
    def mean(self):
        return torch.tensor(sum(self.values) / len(self.values))
    
    def std(self):
        mean_val = sum(self.values) / len(self.values)
        variance = sum((x - mean_val) ** 2 for x in self.values) / len(self.values)
        return torch.tensor(variance ** 0.5)
    
    def add(self, value):
        self.values.append(value)


# Create a simple model with parameters
torch.manual_seed(0)
model = nn.Linear(4, 3)

# Get parameters from the model
params = model.parameters()

# Create gradnorm_queue
gradnorm_queue = GradNormQueue()

# max_grad threshold
max_grad = 5.0

# disable_log flag
disable_log = False

ARGS = {
    "params": params,
    "gradnorm_queue": gradnorm_queue,
    "max_grad": max_grad,
    "disable_log": disable_log,
}
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
merge_x Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/mix_dpm_solver.py
code served (permissive licence) · get_code("bf8a68c3c7c7d6d2")
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 2, dtype family float, shape (2, 7) 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)

# Create two small tensors with distinct dimensions
# x: shape (2, 4) - batch size 2, feature dim 4
# y: shape (2, 3) - batch size 2, feature dim 3
x = torch.randn(2, 4)
y = torch.randn(2, 3)

ARGS = {
    'x': x,
    'y': y,
}
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 2, dtype family float, shape (2, 7) — shape (2, 7) 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
modulate Ran
ran, honoured the contract we drafted
Aalto-QuML/Diffusion_twigs/models/mol_gnn.py
code served (permissive licence) · get_code("62fcb3912a967a50")
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)

# Create small tensors for the modulate function
x = torch.randn(2, 4)  # batch size 2, dimension 4
shift = torch.randn(2, 4)  # same shape as x
scale = torch.randn(2, 4)  # same shape as x

ARGS = {
    "x": x,
    "shift": shift,
    "scale": scale,
}
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
optimization_manager Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/losses.py
code served (permissive licence) · get_code("d4922b3c3f09927a")
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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

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

class OptimConfig:
    def __init__(self):
        self.lr = 0.001
        self.warmup = 100
        self.grad_clip = 1.0
        self.disable_grad_log = False

config = Config()

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
split_x Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Aalto-QuML/Diffusion_twigs/mix_dpm_solver.py
code served (permissive licence) · get_code("a49a3d3652f5b470")
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. 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)

# The function split_x takes a tensor x and slices it along the last dimension
# x[:, :, :3] gets the first 3 channels
# x[:, :, 3:] gets the remaining channels
# So x needs to be at least 3D with last dimension >= 3

# Create a tensor with shape (batch=2, height=4, width=5, channels=7)
# This allows us to split into [:3] and [3:] channels
x = torch.randn(2, 4, 5, 7)

ARGS = {
    "x": x
}
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 — a tuple 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
unsorted_segment_sum Ran
ran; our contract draft was wrong, not the code
Aalto-QuML/Diffusion_twigs/cond_gen/model.py
code served (permissive licence) · get_code("dfdf6dc1a0720e57")
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 2, dtype family float, shape (3, 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
import numpy as np

torch.manual_seed(0)

# Create tiny tensors for testing
# data: shape (batch_size, feature_dim) - the values to sum
# segment_ids: shape (batch_size,) - which segment each row belongs to
# num_segments: int - total number of segments

batch_size = 2
feature_dim = 4
num_segments = 3

data = torch.randn(batch_size, feature_dim)
segment_ids = torch.tensor([0, 2], dtype=torch.long)

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
}
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 2, dtype family float, shape (3, 4) — shape (3, 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
get_classifier Not yet run
unverified (harvested, no recorded run)
aalto-quml/diffusion_twigs/cond_gen/model.py
code served (permissive licence) · get_code("5c23bdb7b2567c43")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
aalto-quml/diffusion_twigs/cond_gen/model.py
code served (permissive licence) · get_code("52783c0f24bea3b1")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
Aalto-QuML/Diffusion_twigs/cond_gen/model.py
code served (permissive licence) · get_code("5b608e33b1979012")
How it ran

no invocation recorded.

rdmol_process Not yet run
unverified (harvested, no recorded run)
Aalto-QuML/Diffusion_twigs/eval_rdkit_pkl.py
code served (permissive licence) · get_code("d028b89ba675432e")
How it ran

no invocation recorded.

rdmol_to_data Not yet run
unverified (harvested, no recorded run)
Aalto-QuML/Diffusion_twigs/build_geom_dataset.py
code served (permissive licence) · get_code("c0eaed94ea97d8bc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 5 the same month, 7 later) and 9 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
expand_dims 39 other papers
27 dated earlier, 1 the same month, 8 later, 3 same year, order not determinable · 4 only as an assembly brick
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
2206.00927 (2022-06)
DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps
and 36 more not named here
interpolate_fn 34 other papers
25 dated earlier, 1 the same month, 5 later, 3 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
2212.09478 (2022-12)
MM-Diffusion: Learning Multi-Modal Diffusion Models for Joint Audio and Video Generation
and 31 more not named here
modulate 27 other papers
6 dated earlier, 2 the same month, 18 later, 1 undated · 2 only as an assembly brick
2312.15736 (2023-12)
Towards Real-World Blind Face Restoration with Generative Diffusion Prior
2404.11199 (2024-04)
RiboDiffusion: Tertiary Structure-based RNA Inverse Folding with Generative Diffusion Models
2405.17527 (2024-05)
Unisolver: PDE-Conditional Transformers Towards Universal Neural PDE Solvers
and 24 more not named here
unsorted_segment_sum 19 other papers
16 dated earlier, 1 the same month, 2 later · 2 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1906.02547 (2019-06)
Combining Generative and Discriminative Models for Hybrid Inference
2102.09844 (2021-02)
E(n) Equivariant Graph Neural Networks
and 16 more not named here
gaussian 12 other papers
7 dated earlier, 2 the same month, 3 later
2203.04810 (2022-03)
Benchmarking Graphormer on Large-Scale Molecular Modeling Datasets
2210.01765 (2022-10)
One Transformer Can Understand Both 2D & 3D Molecular Data
2301.09505 (2023-01)
Rethinking the Expressive Power of GNNs via Graph Biconnectivity
and 9 more not named here
get_timestep_embedding 4 other papers
4 dated earlier
2212.01842 (2022-12)
GraphGDP: Generative Diffusion Processes for Permutation Invariant Graph Generation
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
and 1 more not named here
get_optimizer 2 other papers
1 dated earlier, 1 later
2404.11199 (2024-04)
RiboDiffusion: Tertiary Structure-based RNA Inverse Folding with Generative Diffusion Models
2601.19232 (2026-01)
Structure-based RNA Design by Step-wise Optimization of Latent Diffusion Model
get_polynomial_schedule 2 other papers
1 dated earlier, 1 later
2404.11199 (2024-04)
RiboDiffusion: Tertiary Structure-based RNA Inverse Folding with Generative Diffusion Models
2601.19232 (2026-01)
Structure-based RNA Design by Step-wise Optimization of Latent Diffusion Model
conv1x1 1 other paper
1 dated earlier
2212.01842 (2022-12)
GraphGDP: Generative Diffusion Processes for Permutation Invariant Graph Generation
rdmol_process 1 other paper
1 dated earlier
2305.12347 (2023-05)
Learning Joint 2D & 3D Diffusion Models for Complete Molecule Generation

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 novel score-based diffusion framework named Twigs that incorporates multiple co-evolving flows for enriching conditional generation tasks. Specifically, a central or trunk diffusion process is associated with a primary variable (e.g., graph structure), and additional offshoot or stem processes are dedicated to dependent variables (e.g., graph properties or labels). A new strategy, which we call loop guidance, effectively orchestrates the flow of information between the trunk and the stem processes during sampling. This approach allows us to uncover intricate interactions and dependencies, and unlock new generative capabilities. We provide extensive experiments to demonstrate strong performance gains of the proposed method over contemporary baselines in the context of conditional graph generation, underscoring the potential of Twigs in challenging generative tasks such as inverse molecular design and molecular optimization. Code is available at https://github.com/Aalto-QuML/Diffusion_twigs. † Equal Contribution. Order decided via coin flip.

For agents

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

get_harvested_code_for_paper("2410.24012")
get_code_for_paper("2410.24012")
have("2410.24012")

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

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

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

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

Connect an agent — have() is free.