G2Retro as a two-step graph generative models for retrosynthesis prediction

Ziqi Chen, Oluwatosin R Ayinde, James R. Fuchs, Huan Sun, Xia Ning

Abstract

Retrosynthesis is a procedure where a target molecule is transformed into potential reactants and thus the synthesis routes can be identified. Recently, computational approaches have been developed to accelerate the design of synthesis routes. In this paper, we develop a generative framework G<sup>2</sup>Retro for one-step retrosynthesis prediction. G<sup>2</sup>Retro imitates the reversed logic of synthetic reactions. It first predicts the reaction centers in the target molecules (products), identifies the synthons needed to assemble the products, and transforms these synthons into reactants. G<sup>2</sup>Retro defines a comprehensive set of reaction center types, and learns from the molecular graphs of the products to predict potential reaction centers. To complete synthons into reactants, G<sup>2</sup>Retro considers all the involved synthon structures and the product structures to identify the optimal completion paths, and accordingly attaches small substructures sequentially to the synthons. Here we show that G<sup>2</sup>Retro is able to better predict the reactants for given products in the benchmark dataset than the state-of-the-art methods.

Introduction

Identifying feasible synthesis routes for drug-like molecules is a major bottleneck in pharmaceutical R&D. While computational methods have emerged to accelerate this process, they generally fall into three categories: template-based methods, which rely on fixed libraries and struggle with generalization; template-free methods, which treat retrosynthesis as sequence-to-sequence translation (SMILES) but often lack chemical interpretability; and semi-template-based methods, which have historically suffered from limited coverage and diversity.

G2Retro addresses these gaps by providing a comprehensive, graph-based generative model that is both highly accurate and chemically intuitive. By working directly on molecular graphs, G2Retro captures the essential connectivity and local environments that dictate chemical reactivity, avoiding the structural "hallucinations" common in sequence-based models.

Methodology

The G2Retro framework operates in two distinct, sequential steps that mirror how a chemist might approach a disconnection:

  1. Reaction Center Identification: Using a Graph Message Passing Network (GMPN), the model learns to represent the target molecule's structure. It then predicts potential "reaction centers"—the specific bonds or atoms where the molecule should be broken apart. It handles three main types: newly formed bonds, bonds with type changes, and atoms where fragments are removed.
  2. Synthon Completion: Once the molecule is split into "synthons" (incomplete fragments), G2Retro transforms them into full, stable reactants. It does this by sequentially attaching small substructures (bonds or rings) from a pre-defined vocabulary.
Overview of the G2Retro retrosynthesis prediction process, showing reaction center identification (a) and synthon completion (b).

A key innovation is the use of a beam search strategy during inference. This allows the model to explore and rank multiple potential reaction centers and completion paths, resulting in a diverse set of proposed synthetic routes rather than just a single "best" guess.

Results and Discussion

The authors evaluated G2Retro on the USPTO-50K dataset, a standard benchmark containing 50,000 atom-mapped reactions. G2Retro and its variant G2Retro-B (which integrates synthetically accessible fragments) demonstrated superior performance across the board.

When the reaction type is unknown—the most realistic scenario—G2Retro-B achieved a top-1 accuracy of 54.1%, outperforming nineteen baseline methods. It showed significant leads in top-3, top-5, and top-10 accuracies, reaching 86.7% for top-10. Furthermore, its comprehensive definition of reaction centers allowed it to handle 97.5% of the test cases, significantly higher coverage than many competing graph-based models.

Module performance comparison on reaction center identification and synthon completion in top-k accuracy (%).

The model also successfully predicted synthesis routes for several drugs newly approved in 2022, such as Mitapivat and Tapinarof, which were not present in its training data. This demonstrates its predictive power for novel chemical space and its ability to propose multiple high-likelihood routes, which is highly valuable for researchers looking for alternative starting materials.

Conclusion

G2Retro represents a significant leap in retrosynthesis prediction by imitating the "reversed logic" of synthetic reactions. Despite its success, some limitations remain; the model currently cannot handle reactions involving multiple newly formed bonds or complex molecular rearrangements. Future work will focus on integrating G2Retro into multi-step synthesis planning tools and conducting wet-lab validation to confirm the chemical feasibility of the model's diverse suggestions.

Summary updated

BibTeX
@inproceedings{chen2023g,
  author = {Ziqi Chen and Oluwatosin R Ayinde and James R. Fuchs and Huan Sun and Xia Ning},
  title = {{G2Retro as a two-step graph generative models for retrosynthesis prediction}},
  booktitle = {Communications},
  year = {2023},
  doi = {10.1038/s42004-023-00897-3},
}
Figure