SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.01155 · 2024

SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 4 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/2405.01155.json · badge: /api/ran/2405.01155.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
mirunacrt/synflownet canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
cross Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mirunacrt/synflownet/src/synflownet/algo/trajectory_balance.py
code served (permissive licence) · get_code("2a8ed5bf472b7004")
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 (4, 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 a small 1D tensor for testing
x = torch.randn(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 (4, 4) — shape (4, 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
graph_without_edge Ran
ran; our contract draft was wrong, not the code
mirunacrt/synflownet/src/synflownet/envs/graph_building_env.py
code served (permissive licence) · get_code("698d73f4260ce129")
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 Graph. 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 networkx as nx

# Create a simple graph with some edges
g = nx.Graph()
g.add_edges_from([(0, 1), (1, 2), (2, 3), (0, 3)])

# Define an edge to remove
e = (0, 1)

ARGS = {
    "g": g,
    "e": e,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 1 and dtype family int 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
graph_without_node Ran
ran; our contract draft was wrong, not the code
mirunacrt/synflownet/src/synflownet/envs/graph_building_env.py
code served (permissive licence) · get_code("91084575c9dd054e")
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 DiGraph. 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 networkx as nx

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

# Define the node to remove
n = 1

ARGS = {
    "g": g,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiGraph — a DiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiGraph output the recorded ndim 1 and dtype family int 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
graph_without_node_attr Ran
ran; our contract draft was wrong, not the code
mirunacrt/synflownet/src/synflownet/envs/graph_building_env.py
code served (permissive licence) · get_code("cf0b5b8b09080022")
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 DiGraph. 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 networkx as nx

# Create a simple directed graph with node attributes
g = nx.DiGraph()
g.add_node("node_1", color="red", size=10)
g.add_node("node_2", color="blue", size=20)
g.add_edge("node_1", "node_2")

# Parameters for the function
n = "node_1"  # node to remove attribute from
a = "color"   # attribute to remove

ARGS = {
    "g": g,
    "n": n,
    "a": a
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiGraph — a DiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiGraph output the recorded ndim 1 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
init_empty Ran
ran; our contract draft was wrong, not the code
mirunacrt/synflownet/src/synflownet/config.py
code served (permissive licence) · get_code("f19d3a5719b35922")
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 TestConfig. 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.

from dataclasses import dataclass, field, MISSING
from omegaconf import MISSING as OMEGACONF_MISSING

@dataclass
class NestedConfig:
    nested_field: int = OMEGACONF_MISSING
    nested_value: str = OMEGACONF_MISSING

@dataclass
class TestConfig:
    field1: int = OMEGACONF_MISSING
    field2: str = OMEGACONF_MISSING
    nested: NestedConfig = field(default_factory=NestedConfig)
    field3: float = OMEGACONF_MISSING

cfg = TestConfig()

ARGS = {
    "cfg": cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TestConfig — a TestConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TestConfig 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
load_yaml Ran
ran; our contract draft was wrong, not the code
mirunacrt/synflownet/src/synflownet/config.py
code served (permissive licence) · get_code("a1aab6ebb1f26dd0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import yaml
import tempfile
import os

# Create a temporary YAML file with some test content
yaml_content = """
test_key: test_value
nested:
  inner_key: inner_value
list_example:
  - item1
  - item2
"""

# Write to a temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.yaml', delete=False) as f:
    f.write(yaml_content)
    temp_yaml_path = f.name

try:
    ARGS = {
        'yaml_path': temp_yaml_path
    }
finally:
    # Clean up the temporary file after defining ARGS
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
model_grad_norm Ran
ran, honoured the contract we drafted
mirunacrt/synflownet/src/synflownet/online_trainer.py
code served (permissive licence) · get_code("693d4ee3896b4768")
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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

x = torch.randn(2, 4)
y = torch.randn(2, 2)
output = model(x)
loss = nn.MSELoss()(output, y)
loss.backward()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
shift_right Ran
ran; our contract draft was wrong, not the code
mirunacrt/synflownet/src/synflownet/algo/trajectory_balance.py
code served (permissive licence) · get_code("a508d01ed77ced0b")
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 a small tensor with shape (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4)

# z is a scalar or can be a tensor element
z = 0

ARGS = {
    "x": x,
    "z": z,
}
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
load_original_model Not yet run
unverified (harvested, no recorded run)
mirunacrt/synflownet/src/synflownet/models/bengio2021flow.py
code served (permissive licence) · get_code("98b668e5ea7726ba")
How it ran

no invocation recorded.

load_weights Not yet run
unverified (harvested, no recorded run)
mirunacrt/synflownet/src/synflownet/models/bengio2021flow.py
code served (permissive licence) · get_code("687893e4cbfb90a7")
How it ran

no invocation recorded.

override_config Not yet run
unverified (harvested, no recorded run)
mirunacrt/synflownet/src/synflownet/config.py
code served (permissive licence) · get_code("1c29a989bc24ec49")
How it ran

no invocation recorded.

subTB Not yet run
unverified (harvested, no recorded run)
mirunacrt/synflownet/src/synflownet/algo/trajectory_balance.py
code served (permissive licence) · get_code("d2e1d2a558b75603")
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, 9 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 2 the same month, 1 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
cross 4 other papers
3 dated earlier, 1 the same month
2106.04399 (2021-06)
Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
2209.12782 (2022-09)
Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
and 1 more not named here
shift_right 4 other papers
3 dated earlier, 1 the same month
2106.04399 (2021-06)
Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
2209.12782 (2022-09)
Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
and 1 more not named here
subTB 2 other papers
2 dated earlier
2106.04399 (2021-06)
Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
2209.12782 (2022-09)
Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
graph_without_edge 1 other paper
1 dated earlier
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
graph_without_node 1 other paper
1 dated earlier
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
graph_without_node_attr 1 other paper
1 dated earlier
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
init_empty 1 other paper
1 later
2602.04119 (2026-02)
Synthesizable Molecular Generation via Soft-constrained GFlowNets with Rich Chemical Priors
load_original_model 1 other paper
1 dated earlier
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design
load_weights 1 other paper
1 dated earlier
2310.03223 (2023-10)
TacoGFN: Target-conditioned GFlowNet for Structure-based Drug Design

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

Generative models see increasing use in computer-aided drug design. However, while performing well at capturing distributions of molecular motifs, they often produce synthetically inaccessible molecules. To address this, we introduce SynFlowNet, a GFlowNet model whose action space uses chemical reactions and purchasable reactants to sequentially build new molecules. By incorporating forward synthesis as an explicit constraint of the generative mechanism, we aim at bridging the gap between in silico molecular generation and real world synthesis capabilities. We evaluate our approach using synthetic accessibility scores and an independent retrosynthesis tool to assess the synthesizability of our compounds, and motivate the choice of GFlowNets through considerable improvement in sample diversity compared to baselines. Additionally, we identify challenges with reaction encodings that can complicate traversal of the MDP in the backward direction. To address this, we introduce various strategies for learning the GFlowNet backward policy and thus demonstrate how additional constraints can be integrated into the GFlowNet MDP framework. This approach enables our model to successfully identify synthesis pathways for previously unseen molecules.

For agents

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

get_harvested_code_for_paper("2405.01155")
get_code_for_paper("2405.01155")
have("2405.01155")

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

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

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

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

Connect an agent — have() is free.