Abstract
Computer-aided synthesis planning (CASP) has been helping chemists to synthesize novel molecules at an accelerated pace. The recent integration of deep learning with CASP has opened up new avenues for digitizing and exploring the vastly unknown chemical space, and has led to high expectations for fully automated synthesis plannings using machine-discovered novel reactions in the "future". Despite many progresses in the past few years, most deep-learning methods only focus on improving few aspects of CASP (e.g., top-k accuracy). In this work, we target specifically the efficiency of reaction space exploration and its impact on CASP. We propose NeuralTPL, a template-oriented generative approach, that performs impressively across a range of evaluation metrics including chemical validity, diversity, and novelty for various tasks in CASP. In addition, our Transformer-based model bears the potential to learn the core reaction transformation as it can efficiently explore the reaction space. We then perform several experiments and conduct a thorough analysis regarding the three metrics and demonstrate its chemical value for improving the existing deep-learning-driven CASP algorithms.
Introduction
Computer-aided synthesis planning (CASP) is a cornerstone of modern drug discovery, enabling chemists to navigate the vast "reaction space" to find efficient pathways for complex molecular synthesis. Traditionally, deep learning approaches in CASP have been divided into two distinct paradigms: template-based and template-free methods. Template-based methods rely on a fixed library of chemical rules, ensuring high validity but lacking the ability to generalize to novel reactions. Conversely, template-free methods treat chemistry as a sequence-to-sequence translation task, offering flexibility but often resulting in "hallucinations"—chemically impossible molecular structures.
The NeuralTPL Framework
NeuralTPL addresses these limitations by factorizing the reaction search into "molecule space" and "template space." By focusing on the generation of reaction templates rather than full molecular sequences, the model significantly reduces the search space complexity while maintaining chemical rigor.
The core of the architecture is a Transformer-based Conditional Variational Autoencoder (CVAE). The model is designed to handle two primary generative tasks: template generation (predicting a likely reaction template given a product and its reaction center) and leaving groups generation (identifying the specific fragments of reactants lost during the transformation). To enhance the model's focus on chemical transformations, the authors introduced Reaction Center Masking (RCM), which forces the model to learn the underlying logic of the reaction rather than simply memorizing molecular patterns.
Key Results and Chemical Discovery
NeuralTPL was evaluated using the USPTO-50K benchmark, demonstrating exceptional performance. It achieved a top-10 accuracy of 95.9% for template generation and 97.6% for leaving group generation. Crucially, the model's reaction validity rate was 18% higher than standard template-free Transformers, highlighting the benefits of its constrained generative approach.
Beyond raw metrics, NeuralTPL excels in exploring unknown chemical space. By mapping reactions into a continuous latent space, the model can interpolate between known transformations to suggest novel synthetic routes.
In practical applications, NeuralTPL proved its value by expanding existing template databases. In "low-coverage" scenarios involving rare reactions, this expansion improved the accuracy of state-of-the-art models by approximately 40%. The framework successfully identified valid synthetic pathways for commercial drugs such as PBT2 and Zifrosilone—pathways that were entirely missed by models using static, non-generative databases.
Conclusion and Future Directions
NeuralTPL represents a significant step toward automated, exploratory synthesis planning. While the model currently depends on high-quality atom-mapping and faces challenges regarding template standardization, its ability to generate valid, novel chemical rules offers a powerful tool for digitizing the chemical universe. Future work will focus on refining template granularity and improving the robustness of the underlying atom-mapping processes.
Summary updated