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

Ualign: pushing the limit of template-free retrosynthesis prediction with unsupervised SMILES alignment

Kaipeng Zeng, Bo Yang, Xin Zhao, Yu Zhang, Fan Nie, Xiaokang Yang, Yaohui Jin, Yanyan Xu

Abstract

UAlign is a novel template-free retrosynthesis model that combines graph neural networks with a Transformer decoder to predict chemical reactants. Its core innovation is an unsupervised SMILES alignment technique that forces the model to "reuse" unchanged molecular substructures, significantly boosting accuracy and SMILES validity to levels that rival or exceed traditional template-based methods.

Introduction

Retrosynthesis—the process of working backward from a target molecule to identify the starting materials needed to create it—is a cornerstone of drug discovery and chemical manufacturing. AI approaches to this problem generally fall into three categories: template-based, semi-template, and template-free. Template-based methods rely on fixed libraries, while semi-template methods are prone to error propagation. Template-free methods treat the problem as a language translation task (Product SMILES $\rightarrow$ Reactant SMILES). While flexible, they often ignore molecular topology and struggle to maintain substructures that remain unchanged during a reaction. UAlign aims to bridge this gap by providing a template-free model with structural awareness and high accuracy without requiring manual atom-mapping.

Methodology

UAlign uses a Graph-to-Sequence (G2S) architecture consisting of two main components:

  1. The Encoder (EGAT+): Instead of treating a molecule as a simple string of text, UAlign uses a modified Graph Attention Network. This "EGAT+" explicitly incorporates chemical bond information (edges) into the message-passing process, allowing the model to build a richer representation of the molecule's topology.
  2. Unsupervised SMILES Alignment: In most chemical reactions, the majority of the molecule's structure remains untouched. UAlign uses an unsupervised mechanism to ensure the output reactant SMILES follow the same atom-ordering (DFS order) as the input product graph. By aligning the "input" atoms with the "output" tokens, the model learns to focus specifically on the "reaction centers" where bonds break or form.
  3. Two-Stage Training: The model is first trained to translate molecular graphs into their corresponding SMILES strings. Once it understands the "language" of molecules, it is then trained on the actual retrosynthesis task.
Overview of the UAlign architecture featuring the EGAT+ encoder and the Transformer decoder with SMILES alignment.
Illustration of the Order-Preserving Reactant SMILES generation using DFS ordering.

Experimental Results

The researchers evaluated UAlign on three standard industry benchmarks: USPTO-50K, USPTO-MIT, and USPTO-FULL.

  • Accuracy: On USPTO-50K (class unknown), it achieved a 53.5% Top-1 accuracy, outperforming previous template-free models by over 3%. When the reaction class was known, accuracy reached 66.4%.
  • Scaling Up: On the massive USPTO-FULL dataset, it achieved 50.4% Top-1 accuracy, a significant 3.8% lead over the previous state-of-the-art.
  • Validity and Efficiency: The model produced valid chemical strings (SMILES) 99.8% of the time. It is also highly efficient, averaging 0.481 seconds per prediction.

Discussion and Conclusion

UAlign demonstrates that "molecular editing" is a powerful paradigm for retrosynthesis. By using a graph encoder rather than a text-based one, the model captures the physical properties of molecules more effectively. The unsupervised alignment approach allows the model to develop robust attention maps, enabling it to "copy-paste" unchanged substructures and focus on chemical changes.

While UAlign sets new records, limitations remain. The model is purely data-driven and lacks explicit thermodynamic or kinetic knowledge. Future work will focus on integrating chemical laws and extending the model to multi-step synthetic route planning.

Summary updated

BibTeX
@article{zeng2024ualign,
  author = {Kaipeng Zeng and Bo Yang and Xin Zhao and Yu Zhang and Fan Nie and Xiaokang Yang and Yaohui Jin and Yanyan Xu},
  title = {{Ualign: pushing the limit of template-free retrosynthesis prediction with unsupervised SMILES alignment}},
  journal = {J. Cheminformatics},
  year = {2024},
  doi = {10.1186/s13321-024-00877-2},
}
Figure