SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.17397 · 2023

Classifier-free graph diffusion for molecular property targeting

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 1 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2312.17397.json · badge: /api/ran/2312.17397.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
asduffo/freegress canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
compare_hash Ran
ran, violated the contract we drafted
asduffo/freegress/src/datasets/guacamol_dataset.py
code served (permissive licence) · get_code("ab10f4ba7e15c9c9")
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 bool, 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 hashlib
import tempfile
import os

# Create a temporary file with known content
temp_dir = tempfile.mkdtemp()
output_file = os.path.join(temp_dir, "test_smiles.txt")

# Write some test content to the file
test_content = b"CCO\nCC(C)O\nc1ccccc1"
with open(output_file, 'wb') as f:
    f.write(test_content)

# Compute the correct hash of this content
correct_hash = hashlib.md5(test_content).hexdigest()

ARGS = {
    "output_file": output_file,
    "correct_hash": correct_hash
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
degree_worker Ran
ran; our contract draft was wrong, not the code
asduffo/freegress/src/analysis/spectre_utils.py
code served (permissive licence) · get_code("2830d89cd6960c9d")
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 1, dtype family int, shape (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 numpy as np
import networkx as nx

# Create a simple graph for testing
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2), (2, 3), (3, 0), (1, 3)])

ARGS = {
    "G": G
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (4,) — shape (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
files_exist Ran
ran, violated the contract we drafted
asduffo/freegress/src/datasets/guacamol_dataset.py
code served (permissive licence) · get_code("934e88324646e2d7")
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 bool, 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 os
import tempfile
import os.path as osp

# Create temporary files for testing
with tempfile.TemporaryDirectory() as tmpdir:
    # Create some test files
    test_file1 = osp.join(tmpdir, "file1.txt")
    test_file2 = osp.join(tmpdir, "file2.txt")
    
    with open(test_file1, 'w') as f:
        f.write("test1")
    with open(test_file2, 'w') as f:
        f.write("test2")
    
    # Define ARGS with a list of existing files
    ARGS = {
        "files": [test_file1, test_file2]
    }
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
l2 Ran
ran, honoured the contract we drafted
asduffo/freegress/src/analysis/dist_helper.py
pointer only (licence: MIT); the stored copy get_code serves, from lf-wen/hgdm, is pointer only (licence: NONE) · get_code("039fc6561a9516bc")
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 lf-wen/hgdm, 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.

normalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
asduffo/freegress/src/utils.py
code served (permissive licence) · get_code("82a9ab480b4063ca")
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 PlaceHolder. 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)

# Create small tensors with distinct dimensions
batch_size = 2
num_nodes = 4
num_node_features = 3
num_edge_features = 5
num_y_features = 2

# X: (batch, nodes, node_features)
X = torch.randn(batch_size, num_nodes, num_node_features)

# E: (batch, nodes, nodes, edge_features)
E = torch.randn(batch_size, num_nodes, num_nodes, num_edge_features)
# Make E symmetric
E = (E + E.transpose(1, 2)) / 2

# y: (batch, y_features)
y = torch.randn(batch_size, num_y_features)

# norm_values: list of tensors for normalization scales
norm_values = [
    torch.ones(num_node_features),
    torch.ones(num_edge_features),
    torch.ones(num_y_features)
]

# norm_biases: list of tensors for normalization offsets
norm_biases = [
    torch.zeros(num_node_features),
    torch.zeros(num_edge_features),
    torch.zeros(num_y_features)
]

# node_mask: (batch, nodes) binary mask
node_mask = torch.ones(batch_size, num_nodes, dtype=torch.bool)
node_mask[0, 2] = False  # Mask out one node in first batch

ARGS = {
    'X': X,
    'E': E,
    'y': y,
    'norm_values': norm_values,
    'norm_biases': norm_biases,
    'node_mask': node_mask
}
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 PlaceHolder — a PlaceHolder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PlaceHolder 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
spectral_worker Ran
ran; our contract draft was wrong, not the code
asduffo/freegress/src/analysis/spectre_utils.py
code served (permissive licence) · get_code("d06299b76725edd9")
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 1, dtype family float, shape (200,) 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
import networkx as nx
from scipy.linalg import eigvalsh

# Create a simple graph for testing
G = nx.karate_club_graph()

# Define the arguments dictionary
ARGS = {
    "G": G,
    "n_eigvals": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (200,) — shape (200,) 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
to_dense Ran
ran; our contract draft was wrong, not the code
asduffo/freegress/src/utils.py
code served (permissive licence) · get_code("04bee8fa958e3921")
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
from torch_geometric.utils import to_dense_adj, to_dense_batch

torch.manual_seed(0)

# Create small test tensors
# x: node features, shape [num_nodes, num_features]
x = torch.randn(5, 4)

# edge_index: [2, num_edges] with node indices
edge_index = torch.tensor([
    [0, 1, 2, 3, 4, 0, 1],
    [1, 2, 3, 4, 0, 2, 3]
], dtype=torch.long)

# edge_attr: edge features, shape [num_edges, num_edge_features]
edge_attr = torch.randn(7, 3)

# batch: which graph each node belongs to, shape [num_nodes]
# Assign nodes to 2 graphs: nodes 0-2 to graph 0, nodes 3-4 to graph 1
batch = torch.tensor([0, 0, 0, 1, 1], dtype=torch.long)

ARGS = {
    'x': x,
    'edge_index': edge_index,
    'edge_attr': edge_attr,
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — 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
to_list Ran
ran, violated the contract we drafted
asduffo/freegress/src/datasets/guacamol_dataset.py
code served (permissive licence) · get_code("85832bcd5531c861")
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 1, 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 torch
import numpy as np
from typing import Sequence

torch.manual_seed(0)

# Test case 1: A sequence (list)
test_list = [1, 2, 3, 4]

# Test case 2: A sequence (tuple)
test_tuple = (5, 6, 7)

# Test case 3: A non-sequence value (int)
test_int = 42

# Test case 4: A non-sequence value (float)
test_float = 3.14

# Test case 5: A string (which is a Sequence but should be treated specially)
test_string = "hello"

# Test case 6: A numpy array (is a Sequence)
test_numpy = np.array([1, 2, 3])

# Test case 7: A torch tensor (is a Sequence)
test_tensor = torch.tensor([1, 2, 3, 4])

# Test case 8: A dict (not a Sequence)
test_dict = {"a": 1, "b": 2}

# We'll test with one representative case
ARGS = {
    "value": [1, 2, 3, 4]
}
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 list, ndim 1, 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
mol2smiles Not yet run
unverified (harvested, no recorded run)
asduffo/freegress/src/analysis/rdkit_functions.py
code served (permissive licence) · get_code("0c9e13c0bf546794")
How it ran

no invocation recorded.

unnormalize Not yet run
unverified (harvested, no recorded run)
asduffo/freegress/src/utils.py
code served (permissive licence) · get_code("4656e7ee2a2bec2f")
How it ran

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, 10 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 10 later) and 0 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
l2 10 other papers
5 dated earlier, 5 later
1910.00760 (2019-10)
Efficient Graph Generation with Graph Recurrent Attention Networks
2204.01613 (2022-04)
SPECTRE: Spectral Conditioning Helps to Overcome the Expressivity Limits of One-shot Graph Generators
2305.19337 (2023-05)
HiGen: Hierarchical Graph Generative Networks
and 7 more not named here
degree_worker 6 other papers
3 dated earlier, 3 later
1910.00760 (2019-10)
Efficient Graph Generation with Graph Recurrent Attention Networks
2204.01613 (2022-04)
SPECTRE: Spectral Conditioning Helps to Overcome the Expressivity Limits of One-shot Graph Generators
2305.19337 (2023-05)
HiGen: Hierarchical Graph Generative Networks
and 3 more not named here
to_list 6 other papers
2 dated earlier, 4 later
2303.08137 (2023-03)
LayoutDM: Discrete Diffusion Model for Controllable Layout Generation
2310.15817 (2023-10)
Discriminator Guidance for Autoregressive Diffusion Models
2403.06020 (2024-03)
Multi-conditioned Graph Diffusion for Neural Architecture Search
and 3 more not named here
normalize 4 other papers
4 later
2401.13858 (2024-01)
Graph Diffusion Transformers for Multi-Conditional Molecular Generation
2405.11416 (2024-05)
Discrete-state Continuous-time Diffusion for Graph Generation
2410.04263 (2024-10)
DeFoG: Discrete Flow Matching for Graph Generation
and 1 more not named here
unnormalize 4 other papers
4 later
2401.13858 (2024-01)
Graph Diffusion Transformers for Multi-Conditional Molecular Generation
2405.11416 (2024-05)
Discrete-state Continuous-time Diffusion for Graph Generation
2410.04263 (2024-10)
DeFoG: Discrete Flow Matching for Graph Generation
and 1 more not named here
compare_hash 3 other papers
1 dated earlier, 2 later
2311.02142 (2023-11)
Sparse Training of Discrete Diffusion Models for Graph Generation
2410.04263 (2024-10)
DeFoG: Discrete Flow Matching for Graph Generation
2603.28572 (2026-03)
Unrestrained Simplex Denoising for Discrete Data A Non-Markovian Approach Applied to Graph Generation
files_exist 3 other papers
3 later
2403.06020 (2024-03)
Multi-conditioned Graph Diffusion for Neural Architecture Search
2410.04263 (2024-10)
DeFoG: Discrete Flow Matching for Graph Generation
2603.28572 (2026-03)
Unrestrained Simplex Denoising for Discrete Data A Non-Markovian Approach Applied to Graph Generation
mol2smiles 2 other papers
2 later
2410.04263 (2024-10)
DeFoG: Discrete Flow Matching for Graph Generation
2603.28572 (2026-03)
Unrestrained Simplex Denoising for Discrete Data A Non-Markovian Approach Applied to Graph Generation
spectral_worker 2 other papers
2 later
2410.04263 (2024-10)
DeFoG: Discrete Flow Matching for Graph Generation
2603.28572 (2026-03)
Unrestrained Simplex Denoising for Discrete Data A Non-Markovian Approach Applied to Graph Generation
to_dense 2 other papers
2 later
2405.11416 (2024-05)
Discrete-state Continuous-time Diffusion for Graph Generation
2603.28572 (2026-03)
Unrestrained Simplex Denoising for Discrete Data A Non-Markovian Approach Applied to Graph 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-22.

Repositories linked to this paper

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

Abstract

This work focuses on the task of property targeting: that is, generating molecules conditioned on target chemical properties to expedite candidate screening for novel drug and materials development. DiGress is a recent diffusion model for molecular graphs whose distinctive feature is allowing property targeting through classifier-based (CB) guidance. While CB guidance may work to generate molecular-like graphs, we hint at the fact that its assumptions apply poorly to the chemical domain. Based on this insight we propose a classifier-free DiGress (FreeGress), which works by directly injecting the conditioning information into the training process. CF guidance is convenient given its less stringent assumptions and since it does not require to train an auxiliary property regressor, thus halving the number of trainable parameters in the model. We empirically show that our model yields up to 79% improvement in Mean Absolute Error with respect to DiGress on property targeting tasks on QM9 and ZINC-250k benchmarks. As an additional contribution, we propose a simple yet powerful approach to improve chemical validity of generated samples, based on the observation that certain chemical properties such as molecular weight correlate with the number of atoms in molecules.

For agents

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

get_harvested_code_for_paper("2312.17397")
get_code_for_paper("2312.17397")
have("2312.17397")

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

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

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

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

Connect an agent — have() is free.