[Paper Review] Retroformer: Pushing the Limits of Interpretable End-to-end Retrosynthesis Transformer
Retroformer introduces a novel Transformer-based architecture with a local attention head that jointly encodes molecular sequences and graphs, enabling end-to-end, template-free retrosynthesis prediction without cheminformatics tools. It achieves state-of-the-art performance with 64% top-1 accuracy on known reaction classes and improves molecule and reaction validity by 23.6% and 22.0%, respectively, over baseline Transformers.
Retrosynthesis prediction is one of the fundamental challenges in organic synthesis. The task is to predict the reactants given a core product. With the advancement of machine learning, computer-aided synthesis planning has gained increasing interest. Numerous methods were proposed to solve this problem with different levels of dependency on additional chemical knowledge. In this paper, we propose Retroformer, a novel Transformer-based architecture for retrosynthesis prediction without relying on any cheminformatics tools for molecule editing. Via the proposed local attention head, the model can jointly encode the molecular sequence and graph, and efficiently exchange information between the local reactive region and the global reaction context. Retroformer reaches the new state-of-the-art accuracy for the end-to-end template-free retrosynthesis, and improves over many strong baselines on better molecule and reaction validity. In addition, its generative procedure is highly interpretable and controllable. Overall, Retroformer pushes the limits of the reaction reasoning ability of deep generative models.
Motivation & Objective
- To develop a fully end-to-end, interpretable, and controllable retrosynthesis model without relying on cheminformatics tools for molecule editing.
- To improve the reasoning capability of deep generative models in retrosynthesis by jointly encoding molecular sequences and graph structures.
- To enhance reaction and molecule validity while maintaining high accuracy in template-free retrosynthesis.
- To enable precise control over reaction center detection and atom mapping for downstream synthetic planning.
Proposed method
- Introduces a local attention head that enables efficient information exchange between local reactive regions and global reaction context in the Transformer decoder.
- Combines SMILES sequence encoding with graph structure encoding in a unified Transformer encoder to capture both sequential and topological molecular features.
- Employs a guided alignment loss during training to improve token-level correspondence between source (product) and target (reactants) SMILES sequences.
- Uses a local-global decoder architecture that focuses generation on detected reaction centers, improving constraint and validity.
- Applies a reaction center search strategy to boost top-k accuracy while preserving interpretability and controllability.
- Leverages attention weights directly for atom mapping, enabling interpretable transformation prediction without additional alignment modules.
Experimental results
Research questions
- RQ1Can a pure end-to-end Transformer model achieve state-of-the-art performance in template-free retrosynthesis without external cheminformatics tools?
- RQ2How does joint encoding of molecular sequence and graph structure improve reaction reasoning and validity?
- RQ3To what extent can local attention mechanisms enhance the model's sensitivity to reactive centers?
- RQ4Can the model achieve high validity and interpretability while maintaining competitive accuracy in both known and unknown reaction classes?
- RQ5How does the guided alignment loss and reaction center search strategy affect generation quality and diversity?
Key findings
- Retroformer achieves 64% top-1 accuracy on the known reaction class and 53.2% on the unknown reaction class, setting a new state-of-the-art for template-free retrosynthesis.
- The model improves molecule validity by 23.6% and reaction validity by 22.0% compared to the vanilla Transformer baseline.
- The ablation study confirms that the local-global decoder and guided alignment loss are essential for optimal performance, with a 2.9% top-1 accuracy gain from the local-global design.
- The reaction center search strategy boosts top-10 accuracy by 4.9% compared to the full global decoder, enhancing diversity without sacrificing accuracy.
- Atom mapping derived from attention weights shows strong alignment with chemically meaningful transformations, though symmetry can lead to one-to-one mapping failures.
- The model demonstrates high interpretability: it can detect and highlight reaction centers with high confidence and generate reactants controllably when guided.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.