DiffER2: Diffusion Ensembles for Retrosynthesis Prediction with SMILES Adapted Particle Guidance
Authors: Sean Current, Daniel Adu-Ampratwum, Xia Ning, Srinivasan Parthasarathy
Organizations: Department of Computer Science, The Ohio State University, Columbus, OH 43202 · College of Pharmacy, The Ohio State University, Columbus, OH 43202 · Department of Biomedical Informatics, The Ohio State University, Columbus, OH 43202
Computational retrosynthesis prediction has the potential to reduce development time for newly discovered drugs by automatically generating potential reactions for a target product. Data-driven approaches commonly treat this as a sequence-to-sequence generation task on SMILES strings. In this work, we construct ensembles of discrete-time and continuous-time diffusion models for molecular generation and incorporate guidance mechanisms for improved output diversity. We propose an adaptation of particle guidance to SMILES sequence generation which significantly improves the number of unique molecules generated by diffusion ensembles while increasing top-k accuracy. These results further expand the efficacy of discrete diffusion for SMILES generation, and our empirical analyses offer new insights into the capabilities of diffusion models for chemical retrosynthesis.
Figures & tables
Figure 1: Overview of the DiffER 2 ensemble. The DiffER 2 ensemble contains both continuous-time (C-DiffER) and discrete-time (DiffER) models to leverage differing capabilities between the two diffusion archetypes. Both normal sampling methods and SMILES adapted particle guidance are used to generate output. Output SMILES are ranked according to frequency of the canonical form. DiffER κ indicates the value of κ as described in Section 3.2 .
Figure 2: Box plot showing the number of unique molecules produced by the various DiffER 2 ensembles. "K=1 is False" indicates reactions that do not have an accurate top-1 reactant. "K=1 is True" indicates reactions that do have an accurate top-1 reactant. "Overall" includes all reactions.
Category
Model
K=1
3
5
10
Template-based
GLN ( Dai et al., 2019 )
52.5
69.0
75.6
83.7
LocalRetro ( Chen and Jung, 2021 )
53.4
77.5
85.9
92.4
Semi-template
RetroPrime ( Wang et al., 2021 )
51.4
70.8
74.0
76.1
G 2 Retro ( Chen et al., 2023 )
53.9
74.6
80.7
86.6
GDiffRetro ( Sun et al., 2025 )
58.9
79.1
81.9
-
Template-free
MEGAN ( Sacha et al., 2021 )
48.1
70.7
78.4
86.1
Table 1: Top-K accuracy for a select set of baseline models. A full table of results can be found in Appendix A.4 . The best performing model in each category is bolded , while the second-best performing model is underlined . A † indicates results that are statistically significant from DiffER at the 95% level.
Figure 3: Case study on a N-heterocyclization reaction with dihalides. From left to right: the source product, the ground-truth reactant(s), and the top-3 predicted reactant(s) for the DiffER 2 PG+ ensemble. Red highlighting indicates differences between the source product and the reactants. The value in parentheses indicates the rate at which the reactant(s) are produced by the ensemble.
Figure 4: Lines of best fit between top-k accuracy and reactant properties for the DiffER 2 PG+ and R-SMILES ( Zhong et al., 2022 ) models. All slopes are significantly different from 0 ( p<0.01 ) except Edit Distance.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Category
Model
K=1
3
5
10
Template-based
Retrosim Coley et al. (2017)
37.3
54.7
63.3
74.1
Neuralsym Segler and Waller (2017)
44.4
65.3
72.4
78.9
GLN Dai et al. (2019)
52.5
69.0
75.6
83.7
LocalRetro Chen and Jung (2021)
53.4
77.5
85.9
92.4
Semi-template
G2Gs Shi et al. (2020)
48.9
67.6
72.5
75.5
GraphRetro Somnath et al. (2021)
53.7
68.3
72.2
75.5
Appendix
Table 2: Complete top-K accuracy comparison to baseline models. DiffER 2 is the ensemble model and C-DiffER are the individual continuous-time diffusion models. The best performing model in each category is bolded , while the second-best performing model is underlined .
Model
K=1
3
5
10
R-SMILES Zhong et al. (2022)
53.8
66.7
73.7
82.1
DiffER Current et al. (2024)
53.8
64.7
70.1
75.6
DiffER 2
54.1
65.2
70.6
75.5
DiffER 2 PG
54.4
66.0
71.8
77.6
DiffER 2 PG+
54.4
66.1
72.0 †
78.4 †
Appendix
Table 3: Top-K round-trip accuracy for select models.A † indicates results that are significantly different from DiffER at the 95% level.
Reaction Type
K=1
3
5
10
Support
Heteroatom alkylation and arylation
58.5
81.1
87.5
91.2
1516
Acyclation and related processes
70.1
89.9
93.5
95.5
1190
Deprotections
55.2
80.8
87.1
90.5
822
C-C bond formation
41.3
64.9
73.9
81.5
567
Reductions
56.6
78.4
85.5
89.4
463
Functional group interconversion
39.6
56.0
70.3
75.3
182
Appendix
Table 4: Top-K accuracy metrics by reaction type for the DiffER 2 PG+ ensemble. Support indicates the number of reactions of the associated type in the test set.
Property
Model
K=1
3
10
Target Length Diff.
C-DiffER
-0.0092 ( +0.0035 )
-0.0108 (+0.0023)
-0.0104 (+0.0024)
C-DiffER 20
-0.0071 (+0.0056)
-0.0084 (+0.0047)
-0.0072 (+0.0055)
DiffER 2
-0.0078 (+0.0049)
-0.0090 (+0.0041)
-0.0066 (+0.0061)
DiffER 2 PG
-0.0074 (+0.0052)
-0.0075 (+0.0056)
-0.0060 (+0.0067)
DiffER 2 PG+
-0.0085 ( +0.0041 )
-0.0090 (+0.0041)
-0.0057 (+0.0070)
Edit Distance
C-DiffER
0.0003 (+0.0020)
-0.0020 (+0.0007)
-0.0024 (+0.0000)
Appendix
Table 5: Coefficients between reaction properties and performance metrics for the DiffER 2 ensemble and the C-DiffER model. The value in parenthesis indicates the change in coefficient compared to coefficients obtained using R-Smiles Zhong et al. (2022) . Values that are significantly different from 0 are underlined at the 95% level and bolded at the 99% level.
Figure 5: Lines of best fit between model performance and reactant properties for the DiffER 2 PG+ and R-SMILES Zhong et al. (2022) models.
Table 6: Case Studies. From left to right: the source product, the ground-truth reactant(s), and the top-3 predicted reactant(s) for the DiffER 2 PG+ ensemble. Red highlighting in the source molecule indicates the ground truth change. Red highlighting in the true and predicted reactant(s) indicates differences between the source product and the reactants.
Figure 6: The 10 Morgan fingerprints with the highest positive correlation to Top-10 accuracy for the DiffER 2 PG+ ensemble. "r" is the correlation value and "N" is the number of reactants in the test set that have the corresponding fingerprint. All correlations are statistically significant ( p<0.01 ).
Figure 7: The 10 Morgan fingerprints with the highest negative correlation to Top-10 accuracy for the DiffER 2 PG+ ensemble. "r" is the correlation value and "N" is the number of reactants in the test set that have the corresponding fingerprint. All correlations are statistically significant ( p<0.01 ).
Figure 8: C-DiffER attention maps for layers 1, 2, and 3 on a reaction from the test set halfway through sampling, t=0.5 . From left to right: attention on the input product SMILES y0 , attention on the noisy sample xt , attention mapped to the input product molecule, and attention mapped to the final predicted output molecule.
Figure 9: C-DiffER attention maps for layers 4, 5, and 6 on a reaction from the test set halfway through sampling, t=0.5 . From left to right: attention on the input product SMILES y0 , attention on the noisy sample xt , attention mapped to the input product molecule, and attention mapped to the final predicted output molecule.