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.
Retrosynthesis prediction aims to identify reactants that can synthesize a given product molecule. Although molecular large language models (LLMs) have recently shown promising results, most existing methods either generate reactants directly or provide only generic product-level analysis, without explicitly reasoning about bond-disconnection strategies that justify specific reactant choices. This paper proposes RetroReasoner, a retrosynthetic reasoning model that captures chemists' strategic disconnection-based thinking. RetroReasoner is trained with supervised fine-tuning and reinforcement learning. For supervised fine-tuning, SyntheticRetro generates structured disconnection rationales paired with reactant predictions. For reinforcement learning, a round-trip reward evaluates predicted reactants by passing them through a forward synthesis model and rewarding predictions that reconstruct the original product. RetroReasoner can also be applied to multi-step retrosynthetic planning by incorporating it into a parallelized Monte Carlo tree search framework, reducing search time while increasing the number and diversity of valid synthetic pathways. Experimental results show that RetroReasoner outperforms prior baselines, including not only molecular LLMs but also retrosynthesis-specific expert models, and generates a broader range of feasible reactant proposals, especially for challenging reaction instances. The code is available at https://github.com/KU-AGI/RetroReasoner.
Hanbum Ko, Chanhui Lee, Ye Rin Kim +4
Department of Artificial Intelligence, Korea University · Materials Intelligence Lab, LG AI Research · Department of Statistics, Korea University
Stochastic process-based molecular graph generators have become the state of the art for template-free single-step retrosynthesis. However, these models are typically trained only on product-reactant pairs, thereby acquiring chemistry-relevant representations in an indirect and implicit manner. Meanwhile, recent advances in computer vision demonstrate that offering representation guidance to a generator can effectively distill semantics from pretrained encoders into DiTs, substantially improving both convergence and generation quality. Whether similar gains extend to the retrosynthesis task, and what graph-specific design choices can make them work, remains an open question. To address these questions, we conduct a systematic empirical study over a unified design space spanning teacher molecular representations, endpoint and granularity choices, injection depths in the denoiser, correspondence strategies and guidance scheme. Guided by these considerations, we develop Graph-oriented Representation Guidance (GRG), which achieves 58.6 / 77.2 / 83.4 / 87.1 top-1 / 3 / 5 / 10 accuracy on USPTO-50k, while increasing diversity to 15.5, both substantially outperforming the adopted base generator. Notably, GRG consistently improves all top-k metrics in out-of-distribution settings, suggesting that representation guidance facilitates the acquisition of intrinsic chemical semantics. Meanwhile, the introduced representation guidance reduces the number of epochs by 35% and the wall-clock time by 30% to reach comparable performance. In addition, we introduce a simple yet effective representation-similarity-based reranking mechanism, which further improves the top of the ranked list without training an additional verifier.
Jiahai Huang, Anjie Qiao, Zhen Wang +2
Sun Yat-sen University Guangzhou, China · University of Science and Technology of China Hefei, China
Diffusion models have emerged as a promising class of generative models for molecular design because of their ability to learn complex chemical distributions and support conditional or guided generation. In this work, we investigate a latent diffusion pipeline for property-guided small-molecule generation. The proposed framework represents canonicalized SMILES strings using a frozen ChemBERTa encoder, trains a Transformer-based decoder to reconstruct SELFIES strings from molecular latent embeddings, and learns an unconditional denoising diffusion model in the ChemBERTa latent space. To enable property-directed generation, a differentiable latent property predictor is used to guide the diffusion sampling process. Generated SELFIES strings are converted to SMILES, validated using RDKit, and evaluated using molecular validity, uniqueness, novelty, and predicted property scores. We study guidance toward two drug-relevant binary endpoints: blood--brain barrier permeability and inhibition of human β-secretase 1. The results suggest that latent diffusion over pretrained molecular embeddings can generate chemically valid and novel molecules while enabling controllable steering toward desired molecular properties.
Ali Forooghi, Luis Rueda, Alioune Ngom
School of Computer Science; University of Windsor, Windsor, Ontario, Canada