Node-Aligned Graph-to-Graph: Elevating Template-free Deep Learning Approaches in Single-Step Retrosynthesis

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

TL;DR

NAG2G (Node-Aligned Graph-to-Graph) is a new template-free deep learning model that achieves state-of-the-art accuracy in single-step retrosynthesis. By combining 2D molecular graphs with 3D conformations and using a novel node-alignment strategy, it bridges the performance gap between flexible "template-free" models and traditional rule-based systems.

What Problem Does This Paper Address?

Retrosynthesis is the process of working backward from a target molecule to identify the simpler chemical building blocks (reactants) needed to create it. In computer-aided synthesis design, researchers typically choose between two paths:

  1. Template-based methods: These rely on a "library" of known reaction rules. They are chemically accurate but limited by the scope of their library—they can't predict novel chemistry.
  2. Template-free methods: These treat retrosynthesis like a language translation task (e.g., translating a product's SMILES string into a reactant's SMILES string). While flexible, these models often ignore the underlying 2D/3D structure of molecules and struggle to maintain "atom alignment"—knowing which atom in the product corresponds to which atom in the reactant.

The authors of NAG2G address this by creating a model that respects the graph nature of molecules while maintaining the flexibility of template-free approaches.

Overview of computer-aided SSR workflow based on template-based, semi-template-based and template-free design.

Methods

NAG2G utilizes a Transformer-based encoder-decoder architecture specifically designed for molecular graphs.

  • Multi-Modal Encoding: Unlike models that only look at 1D strings, the NAG2G encoder (based on Uni-Mol+) incorporates both 2D molecular graphs and 3D conformations. This allows the model to capture spatial relationships and topological details that 1D strings miss.
  • Node-Aligned Generation: This is the core innovation. In typical graph generation, the order in which you "draw" the nodes is arbitrary. NAG2G uses product-reactant atom mapping to ensure the decoder generates reactant nodes in an order that aligns with the product. Shared atoms are generated first, followed by atoms unique to the reactants.
  • Auto-regressive Decoding: The model generates the reactant graph node-by-node. For each node, it predicts the atom type, formal charge, number of attached hydrogens, and finally the bonds (edges) connecting it to previously generated nodes.
  • Time-Varying Graph Features: The authors introduced an efficient way to integrate dynamic graph-level features (like node degrees and shortest paths) into the attention mechanism, improving accuracy without the massive memory overhead usually associated with these features.
Figure 2: The network architecture of NAG2G.

Datasets

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

  • USPTO-50k: A dataset of 50,016 atom-mapped reactions categorized into 10 reaction classes.
  • USPTO-FULL: A much larger, more complex dataset containing approximately 1 million atom-mapped reactions.

Key Insights and Ideas

  • Alignment is Essential: The ablation studies revealed that node alignment is the single most important factor. Without it, the Top-10 accuracy dropped by roughly 50%. This suggests that teaching the model "where atoms go" is more critical than the specific neural architecture used.
  • 3D Information Boosts Performance: By including 3D coordinates in the encoder, the model gains a better "intuition" for chemical feasibility, helping it distinguish between similar-looking molecules that have different spatial properties.
  • End-to-End Validity: By predicting formal charges and hydrogen counts directly during node generation rather than relying on post-processing software (like RDKit), the model achieves a Top-1 chemical validity of 99.7%.

Key Results

NAG2G sets a new high-water mark for template-free retrosynthesis:

  • USPTO-50k: When the reaction class is unknown, NAG2G achieved a Top-1 accuracy of 55.1%, outperforming both template-based (e.g., GLN at 52.5%) and semi-template-based models (e.g., MARS at 54.6%).
  • USPTO-FULL: On the expansive full dataset, the model achieved a Top-1 accuracy of 47.7% (and 49.7% on a filtered subset), significantly surpassing previous baselines like MEGAN (33.6%).
  • Real-World Utility: The authors performed case studies on complex drugs like Nirmatrelvir (an antiviral) and Osimertinib (a cancer drug). NAG2G successfully predicted the documented synthetic routes, often ranking the correct chemical steps as its #1 or #2 choice.

Limitations and Future Work

While highly effective, the authors note a few areas for improvement:

  • Graph Similarity Bias: The current design is optimized for single-step retrosynthesis where the product and reactant graphs are structurally similar. It may require refinements for reactions involving massive structural rearrangements.
  • Missing Context: The USPTO datasets lack detailed information on reaction conditions (temperature, solvents, pressure) and yields. Integrating this data could help the model provide even more practical rankings for synthetic chemists.
  • Multi-Step Planning: The ultimate goal is to evolve NAG2G from a single-step predictor into a full multi-step synthesis planning tool.

Summary updated

BibTeX
@inproceedings{yao2024node,
  author = {Lin Yao and Wentao Guo and Zhen Wang and Shang Xiang and Wentan Liu and Guolin Ke},
  title = {{Node-Aligned Graph-to-Graph: Elevating Template-free Deep Learning Approaches in Single-Step Retrosynthesis}},
  booktitle = {JACS},
  year = {2024},
  doi = {10.1021/jacsau.3c00737},
}
Figure