NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints

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

Overview

SynFlowNet is a generative model designed to bridge the gap between AI-designed "fantasy" molecules and the practical reality of the wet lab. By utilizing a Generative Flow Network (GFlowNet) that operates strictly in terms of actual chemical reactions and purchasable building blocks, SynFlowNet ensures that every designed molecule comes with a valid, diverse, and physically possible synthesis recipe.

The Synthesizability Gap

In computer-aided drug design, generative models excel at dreaming up molecules with high predicted binding affinities. However, they frequently suffer from a "synthesizability gap": many of these computationally ideal molecules are impossible or prohibitively expensive to actually synthesize in a laboratory.

Existing approaches usually attempt to fix this issue after the fact—either by applying simple heuristic scores that are often too crude, or by running slow retrosynthesis software that is too computationally expensive to use iteratively during the design phase. Other models build molecules atom-by-atom or fragment-by-fragment, but these methods offer no guarantee that the resulting structure can be assembled using known chemical reactions.

Introducing SynFlowNet

To address these limitations, the authors introduce SynFlowNet, which treats molecule generation as a sequential synthesis process rather than a simple graph-building exercise.

SynFlowNet Architecture overview showing the reaction DAG, building block sampling with fingerprints, and the learned backward policy.
  1. GFlowNet Framework: Unlike traditional Reinforcement Learning (RL), which tends to collapse onto a single "best" solution, GFlowNets are designed to sample a diverse variety of high-reward solutions proportionally to their reward. This mode-seeking behavior is critical in drug discovery, where researchers need many different structural "leads" to test.
  2. Reaction-Based Action Space: Instead of adding arbitrary atoms or fragments, the model’s "actions" consist of choosing a specific, documented chemical reaction (e.g., an amide coupling) and selecting a valid reactant from a library of purchasable building blocks.
  3. Learned Backward Policy: A major technical challenge in training GFlowNets is the "backward policy"—the ability to deconstruct an object to learn its structure and calculate flow. In a reaction-based space, random deconstruction often leads to "dead ends" (intermediates that cannot be made from available starting materials). The authors developed a parameterized backward policy (using ML and REINFORCE) to ensure the model stays within the bounds of valid chemistry.
  4. Scalable Action Selection: To handle massive libraries of over 200,000 building blocks, the model uses Morgan fingerprints and a dot-product similarity mechanism. This prevents the neural network's output layer from becoming impossibly large and allows for efficient sampling.

Datasets and Evaluation

The model's environment is built on robust, real-world chemical data:

  • Enamine REAL: A massive library of purchasable building blocks (up to 221,181 molecules utilized).
  • Reaction Templates: A set of 105 documented chemical reactions (13 uni-molecular and 92 bi-molecular).
  • ChEMBL & PDB: Used as references for drug-like molecules to evaluate novelty, and for target-specific case studies (like HSP90 and SARS-CoV-2 Mpro) to evaluate binding affinity rewards.

Key Insights

  • Synthesis as a Hard Constraint: By making the action space the synthesis pathway itself, the model physically cannot generate an unsynthesizable molecule. It doesn't just design a molecule; it designs the exact recipe to make it.
  • Solving the MDP Consistency Problem: The paper identifies that reaction-based Markov Decision Processes (MDPs) are inherently "leaky"—not every backward step leads to a valid starting state. Their learned backward policy provides a novel solution to maintain the mathematical consistency required for GFlowNet training.
  • Fingerprints for Scaling: Using fixed chemical fingerprints for the output layer allows the model to scale to hundreds of thousands of reactants without retraining the entire architecture, making it highly practical for real-world industrial libraries.

Performance and Results

SynFlowNet demonstrates significant improvements over baseline models:

  • Synthesizability: When tested with AiZynthFinder (an independent retrosynthesis tool), SynFlowNet achieved a 62% success rate, compared to a 0% success rate for standard fragment-based GFlowNets.
  • Diversity: SynFlowNet discovered significantly more unique Bemis-Murcko scaffolds than entropy-regularized RL (Soft Q-Learning), proving its superior ability to explore diverse chemical neighborhoods.
  • Novelty: The model successfully generated high-reward molecules that were structurally distinct from known molecules in the ChEMBL database.

Limitations and Future Work

While a significant step forward, SynFlowNet has a few current limitations:

  • Linear Pathways: The model currently only explores linear synthesis (adding one building block at a time) and does not yet support convergent synthesis (joining two complex intermediates).
  • Reaction Conditions & Selectivity: The model assumes reactions "just work" without accounting for specific temperatures, solvents, catalysts, or regioselectivity (where a reaction might happen at multiple spots on the same molecule).
  • Stereochemistry: The current framework does not explicitly model 3D chirality or stereoisomers during the synthesis steps.

Future iterations could incorporate synthesis cost, yield, and specific reaction conditions directly into the backward reward to further refine the "real-worldness" of the generated pathways.

Summary updated

BibTeX
@inproceedings{cretu2025synflownet,
  author = {Miruna Cretu and Charles Harris and Ilia Igashov and Arne Schneuing and Marwin Segler and Bruno Correia and Julien Roy and Emmanuel Bengio and Pietro Lio},
  title = {{SynFlowNet: Design of Diverse and Novel Molecules with Synthesis Constraints}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=uvHmnahyp1},
}
Figure