Papers › SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints

SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints

2 May 2024arXiv:2405.01155archive 2025-07-28

Miruna Cretu, Charles Harris, Ilia Igashov, Arne Schneuing, Marwin Segler, Bruno Correia, Julien Roy, Emmanuel Bengio, Pietro Liò

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.01155")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mirunacrt/synflownet officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
5ran
5unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mirunacrt/synflownet. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cross mirunacrt/synflownet/src/synflownet/algo/trajectory_balance.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 2a8ed5bf472b7004 · report
graph_without_edge mirunacrt/synflownet/src/synflownet/envs/graph_building_env.py official repository ran MIT (permissive) · 698d73f4260ce129 · report
graph_without_node mirunacrt/synflownet/src/synflownet/envs/graph_building_env.py official repository ran MIT (permissive) · 91084575c9dd054e · report
graph_without_node_attr mirunacrt/synflownet/src/synflownet/envs/graph_building_env.py official repository ran MIT (permissive) · cf0b5b8b09080022 · report
load_yaml mirunacrt/synflownet/src/synflownet/config.py official repository ran MIT (permissive) · a1aab6ebb1f26dd0 · report
model_grad_norm mirunacrt/synflownet/src/synflownet/online_trainer.py official repository ran MIT (permissive) · 693d4ee3896b4768 · report
shift_right mirunacrt/synflownet/src/synflownet/algo/trajectory_balance.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a508d01ed77ced0b · report
init_empty mirunacrt/synflownet/src/synflownet/config.py official repository unverified MIT (permissive) · f19d3a5719b35922 · report
load_original_model mirunacrt/synflownet/src/synflownet/models/bengio2021flow.py official repository unverified MIT (permissive) · 98b668e5ea7726ba · report
load_weights mirunacrt/synflownet/src/synflownet/models/bengio2021flow.py official repository unverified MIT (permissive) · 687893e4cbfb90a7 · report
override_config mirunacrt/synflownet/src/synflownet/config.py official repository unverified MIT (permissive) · 1c29a989bc24ec49 · report
subTB mirunacrt/synflownet/src/synflownet/algo/trajectory_balance.py official repository unverified MIT (permissive) · d2e1d2a558b75603 · report

Tasks

DiversityDrug DesignDrug DiscoveryRetrosynthesis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AWARE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections