» Articles » PMID: 40065398

Accelerating the Inference of String Generation-based Chemical Reaction Models for Industrial Applications

Overview
Journal J Cheminform
Publisher Biomed Central
Specialty Chemistry
Date 2025 Mar 11
PMID 40065398
Authors
Affiliations
Soon will be listed here.
Abstract

Transformer-based, template-free SMILES-to-SMILES translation models for reaction prediction and single-step retrosynthesis are of interest to computer-aided synthesis planning systems, as they offer state-of-the-art accuracy. However, their slow inference speed limits their practical utility in such applications. To address this challenge, we propose speculative decoding with a simple chemically specific drafting strategy and apply it to the Molecular Transformer, an encoder-decoder transformer for conditional SMILES generation. Our approach achieves over 3X faster inference in reaction product prediction and single-step retrosynthesis with no loss in accuracy, increasing the potential of the transformer as the backbone of synthesis planning systems. To accelerate the simultaneous generation of multiple precursor SMILES for a given query SMILES in single-step retrosynthesis, we introduce Speculative Beam Search, a novel algorithm tackling the challenge of beam search acceleration with speculative decoding. Our methods aim to improve transformer-based models' scalability and industrial applicability in synthesis planning.

References
1.
Hartog P, Westerlund A, Tetko I, Genheden S . Investigations into the Efficiency of Computer-Aided Synthesis Planning. J Chem Inf Model. 2025; 65(4):1771-1781. PMC: 11863376. DOI: 10.1021/acs.jcim.4c01821. View

2.
Vidal D, Thormann M, Pons M . LINGO, an efficient holographic text based method to calculate biophysical properties and intermolecular similarities. J Chem Inf Model. 2005; 45(2):386-93. DOI: 10.1021/ci0496797. View

3.
Tetko I, Karpov P, van Deursen R, Godin G . State-of-the-art augmented NLP transformer models for direct and single-step retrosynthesis. Nat Commun. 2020; 11(1):5575. PMC: 7643129. DOI: 10.1038/s41467-020-19266-y. View

4.
Schwaller P, Laino T, Gaudin T, Bolgar P, Hunter C, Bekas C . Molecular Transformer: A Model for Uncertainty-Calibrated Chemical Reaction Prediction. ACS Cent Sci. 2019; 5(9):1572-1583. PMC: 6764164. DOI: 10.1021/acscentsci.9b00576. View

5.
Genheden S, Thakkar A, Chadimova V, Reymond J, Engkvist O, Bjerrum E . AiZynthFinder: a fast, robust and flexible open-source software for retrosynthetic planning. J Cheminform. 2020; 12(1):70. PMC: 7672904. DOI: 10.1186/s13321-020-00472-1. View