Node-Aligned Graph-to-Graph Generation for Retrosynthesis Prediction

Lin Yao, Zhen Wang, Wentao Guo, Shang Xiang, Guolin Ke

TL;DR

NAG2G (Node-Aligned Graph-to-Graph) is a new template-free deep learning model that significantly improves single-step retrosynthesis prediction. By combining 2D molecular graphs with 3D conformations and using a novel "node alignment" strategy to guide the step-by-step generation of reactant atoms, it achieves state-of-the-art accuracy and near-perfect chemical validity without relying on pre-defined reaction rules.

What Problem Does This Paper Address?

Single-step retrosynthesis (SSR)—predicting the starting materials (reactants) needed to create a target molecule (product)—is a cornerstone of organic chemistry and drug discovery.

Current deep learning approaches generally fall into two camps:

  1. Template-based: These rely on a fixed library of known reaction rules. They are accurate but limited; they can't predict novel chemistry outside their "dictionary."
  2. Template-free: These are more flexible but often treat molecules as 1D text strings (SMILES). This approach ignores the rich 2D and 3D structural information of molecules and often produces "invalid" chemical strings that don't represent real molecules.

Graph-based models are a promising middle ground, but they face a major hurdle: generation order. Unlike a sentence, a molecular graph doesn't have a natural start or end. Deciding which atom to "draw" first during prediction is a significant challenge that often leads to poor performance.

Methods

The authors introduce NAG2G, a Transformer-based encoder-decoder architecture designed specifically for graph-to-graph transformations.

  • The Encoder (Uni-Mol+): Instead of just looking at the 2D connections (bonds), the encoder incorporates 3D conformations. This allows the model to "see" the spatial environment of each atom, which is crucial for understanding reactivity.
  • The Decoder (Auto-regressive): The model generates the reactant graph node-by-node. For each atom, it predicts the type (e.g., Carbon, Oxygen), formal charge, number of hydrogens, and finally, the bonds to previously generated atoms.
  • Node Alignment (The "Secret Sauce"): To solve the ordering problem, NAG2G aligns the reactant's atoms with the product's atoms. It generates atoms that are shared between the product and reactant first, following the product's internal order. Unique reactant atoms (those added during the reaction) are generated last. This provides a consistent "map" for the model to follow.
  • Efficient Graph Features: The authors developed a memory-efficient way to integrate time-varying graph features (like node degrees) into the Transformer's attention mechanism, allowing the model to understand the evolving structure of the reactant as it's being built.

Datasets

The model was trained and evaluated on two industry-standard benchmarks:

  • USPTO-50k: A high-quality dataset of ~50,000 atom-mapped reactions across 10 common reaction classes.
  • USPTO-FULL: A much larger, noisier dataset containing approximately 1 million reactions to test the model's scalability and robustness.

Key Insights and Ideas

  • Alignment is the Key to Performance: The ablation studies show that "node alignment" is the most critical component. Without it, accuracy drops by nearly 50%. By forcing the model to follow the product's structure, the learning task becomes much simpler and more consistent.
  • 3D Information Matters: Incorporating 3D coordinates helps the model capture chemical nuances that 2D graphs miss, leading to more "chemically intuitive" predictions.
  • End-to-End Validity: By predicting formal charges and hydrogen counts directly within the model (rather than relying on post-processing software), NAG2G achieves a Top-1 validity of 99.7%. This means almost every prediction is a chemically "legal" structure.

Key Results

NAG2G sets new benchmarks for template-free retrosynthesis:

  • Superior Accuracy: On USPTO-50k (with reaction class unknown), NAG2G achieved a Top-1 accuracy of 55.1%, outperforming previous state-of-the-art template-free models like Retroformer (53.2%) and G2GT (48.0%).
  • Surpassing Templates: Remarkably, NAG2G even outperformed many template-based and semi-template-based methods, which was previously a rare feat for template-free models.
  • Scalability: On the massive USPTO-FULL dataset, NAG2G maintained its lead, showing it can handle the complexity of expansive chemical spaces.
  • Real-World Utility: The authors demonstrated the model's practical value by successfully predicting the multi-step synthesis pathways for complex drugs like Nirmatrelvir (an active ingredient in Paxlovid) and Osimertinib.

Limitations and Future Work

  • Input-Output Similarity: The current design is optimized for reactions where the product and reactants share a significant structural core. It might require further refinement for "rearrangement" reactions where the molecular skeleton changes drastically.
  • Reaction Conditions: The model currently focuses on the transformation of atoms and bonds but does not yet predict optimal solvents, temperatures, or catalysts.
  • Multi-Step Planning: While NAG2G excels at single steps, the ultimate goal is to integrate it into a full "closed-loop" system for autonomous multi-step synthesis planning, which involves navigating a massive tree of potential chemical routes.

Summary updated

BibTeX
@misc{yao2023node,
  author = {Lin Yao and Zhen Wang and Wentao Guo and Shang Xiang and Guolin Ke},
  title = {{Node-Aligned Graph-to-Graph Generation for Retrosynthesis Prediction}},
  year = {2023},
  eprint = {2309.15798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.15798},
}

Loading related content...

Figure