Directly optimizing for synthesizability in generative molecular design using retrosynthesis models

Jeff Guo, Philippe Schwaller

TL;DR

This paper introduces a method to directly optimize for molecular synthesizability during the generative design process, using retrosynthesis models as a real-time oracle. This approach, powered by a sample-efficient generative model called Saturn, allows for the creation of molecules that are not only desirable in terms of properties but also demonstrably synthesizable, even under tight computational constraints.

What Problem Does This Paper Address?

Designing novel molecules for applications like drug discovery is a complex task. A major hurdle is ensuring that these computationally designed molecules can actually be synthesized in a lab. Existing methods often rely on "synthesizability heuristics" (like the SA score) or use expensive retrosynthesis models only after molecules have been generated (post-hoc filtering). The problem is that heuristics can be unreliable, especially for molecules outside the typical "drug-like" space, and post-hoc filtering is computationally inefficient. The authors aim to bridge this gap by integrating retrosynthesis models directly into the generative process, making synthesizability a primary optimization objective.

Methods

The core of this work is the integration of a sample-efficient generative model, Saturn (built on the Mamba architecture), with retrosynthesis models. Instead of using retrosynthesis models as a final check, they are treated as "oracles" within the optimization loop. This means that at each step of generation, the model considers whether a potential molecule can be synthesized. The authors demonstrate that this direct optimization is feasible due to Saturn's high sample efficiency, allowing it to explore the chemical space and learn to generate synthesizable molecules within a limited number of "oracle calls" (computational evaluations). They also explore "curriculum learning" to guide the model when starting from a dataset of non-synthesizable molecules.

Datasets

  • ChEMBL 33: Used for pre-training the Saturn model.
  • ZINC 250k: Used for pre-training the Saturn model. A subset of ZINC 250k, specifically molecules not solvable by AiZynth, was also used to create an "intentionally unsuitable" training distribution.
  • Building Block Stocks: Various building block datasets were used for the retrosynthesis models, including:
  • ZINC 'Fragment' and 'Reactive' sub-sets
    • Enamine EU stock
    • Enamine US stock
    • Sigma Aldrich sub-set

Key Insights and Ideas

  • Retrosynthesis Models as Real-Time Oracles: The paper demonstrates that with a sufficiently sample-efficient generative model, expensive retrosynthesis models can be effectively used during the generation process, not just as a post-hoc filter.
  • Beyond Drug-Like Molecules: Synthesizability heuristics like the SA score, which are well-correlated with retrosynthesis solvability for drug-like molecules, become less reliable for other classes, such as functional materials. This highlights the need for direct retrosynthesis model integration in such cases.
  • Curriculum Learning for Synthesizability: Even when starting with a generative model trained on non-synthesizable molecules, a combination of curriculum learning (e.g., first optimizing for SA score) and direct retrosynthesis optimization can quickly yield synthesizable molecules.
  • Over-reliance on Heuristics Can Be Detrimental: The study shows that strictly optimizing for heuristics like SA score can lead to overlooking potentially synthesizable and desirable molecules that might have slightly "sub-optimal" heuristic scores.

Key Results

  • Efficient Optimization: The proposed method can generate molecules satisfying multi-parameter optimization tasks (e.g., docking score, QED, SA score) while being synthesizable, using a significantly lower oracle budget (1000 calls) compared to previous methods (up to 400,000 calls).
  • Improved Performance for Functional Materials: For functional materials, directly optimizing for retrosynthesis solvability yielded significantly more synthesizable molecules compared to relying on SA score heuristics.
  • Robustness to Training Data: Even when pre-trained on a dataset intentionally purged of synthesizable molecules, the model could still generate synthesizable molecules with desirable properties within a short timeframe (2-3 hours).
  • Model Agnosticism: The approach is demonstrated to work with various retrosynthesis models (AiZynth, RetroKNN, Graph2Edits, RootAligned), showcasing its flexibility.

Limitations and Future Work

  • Computational Cost: While the paper demonstrates feasibility, the inference cost of retrosynthesis models remains a bottleneck. The authors suggest that increased sample efficiency of generative models is key to making this approach more widely adopted.
  • Heuristic vs. Direct Optimization Trade-offs: The paper highlights that for drug discovery, optimizing SA score and then filtering might be a more efficient allocation of resources than direct retrosynthesis optimization, especially with smaller building block sets. However, for functional materials, direct optimization is superior. This suggests that the optimal strategy depends on the domain and available building blocks.
  • Future Work: The authors implicitly suggest further exploration of different retrosynthesis models, building block sets, and more complex optimization objectives. The codebase is made publicly available, encouraging further research in this direction.

Summary updated

BibTeX
@inproceedings{guo2025directly,
  author = {Jeff Guo and Philippe Schwaller},
  title = {{Directly optimizing for synthesizability in generative molecular design using retrosynthesis models}},
  booktitle = {Chemical},
  year = {2025},
  doi = {10.1039/d5sc01476j},
}
Figure