Transformer-based molecular fragment prediction using SMILES and DeepSMILES representations in a fragment-based drug discovery pipeline.
- 1Department of Computer Science & Engineering, Aspiring Scholars Directed Research Program, Fremont, CA, 94539, USA.
- 2Department of Chemistry, Biochemistry, and Physical Science, Aspiring Scholars Directed Research Program, Fremont, CA, 94539, USA.
- 3Department of Computer Science & Engineering, Aspiring Scholars Directed Research Program, Fremont, CA, 94539, USA. [email protected].
Abstract
Fragment-based drug discovery (FBDD) uses small molecular fragments as starting points for drug development, and machine-learning models that operate on molecular string representations are increasingly applied to fragment-related tasks. SMILES is the dominant such representation, but its paired ring closures and balanced parentheses introduce syntactic complexity that can affect model behavior. We present a controlled study of how molecular string representation influences transformer-based fragment recovery, using an FBDD-motivated label pipeline: reference fragments are derived from known drugs via RECAP fragmentation and docking-based ranking, and the model is scored on recovering them. We introduce DeepBERTa, a ChemBERTa-derived transformer pretrained on DeepSMILES, and evaluate it against a matched SMILES baseline under identical architecture, data splits, and optimization (approximately 34,000 drug-fragment pairs). DeepSMILES produces syntactically valid predictions more often than SMILES (54.2% vs. 43.5%) and a higher full test-set mean Tanimoto similarity (0.36 vs. 0.29). A per-sample selection between the two representations raises mean Tanimoto to 0.43, and a deployable variant that selects on model confidence rather than the reference recovers most of this gain. Among molecules where one representation strictly wins, DeepSMILES wins more often than SMILES (27.8% vs. 16.3% of test molecules). These results show that string representation meaningfully influences transformer fragment recovery and that representation-aware selection outperforms either representation alone.
Related
- Geometry-Aware Line Graph Transformer Pretraining for Molecular Property Prediction
- Hybrid-CatBoost: an empirical comparison of molecular representations for aqueous-solubility prediction on the TDC benchmark
- Task-adaptive multimodal molecular representations for structure-sensitive property prediction
- DeMiR: Density-Matrix-Informed Representations for Molecular Property Prediction
- Scaffold-Controlled Evaluation of Molecular Representations for Antimalarial Activity Prediction
BibTeX
@article{kothari2026transformerbased,
title = {{Transformer-based molecular fragment prediction using SMILES and DeepSMILES representations in a fragment-based drug discovery pipeline.}},
author = {Aayush Kothari and Amish Gupta and Nisarg Shah and Thomas Reed and Anvita Nattuva and Rahima Nazirudeen and Harman Brah and Marx Akl},
journal = {Journal of cheminformatics},
year = {2026},
month = jul,
doi = {10.1186/s13321-026-01255-w},
url = {https://europepmc.org/article/MED/42958454},
note = {CC BY},
}
RIS
TY - JOUR
TI - Transformer-based molecular fragment prediction using SMILES and DeepSMILES representations in a fragment-based drug discovery pipeline.
AU - Aayush Kothari
AU - Amish Gupta
AU - Nisarg Shah
AU - Thomas Reed
AU - Anvita Nattuva
AU - Rahima Nazirudeen
AU - Harman Brah
AU - Marx Akl
PY - 2026
DA - 2026/07/31
JO - Journal of cheminformatics
DO - 10.1186/s13321-026-01255-w
UR - https://europepmc.org/article/MED/42958454
AB - Fragment-based drug discovery (FBDD) uses small molecular fragments as starting points for drug development, and machine-learning models that operate on molecular string representations are increasingly applied to fragment-related tasks. SMILES is the dominant such representation, but its paired ring closures and balanced parentheses introduce syntactic complexity that can affect model behavior. We present a controlled study of how molecular string representation influences transformer-based fragment recovery, using an FBDD-motivated label pipeline: reference fragments are derived from known drugs via RECAP fragmentation and docking-based ranking, and the model is scored on recovering them. We introduce DeepBERTa, a ChemBERTa-derived transformer pretrained on DeepSMILES, and evaluate it against a matched SMILES baseline under identical architecture, data splits, and optimization (approximately 34,000 drug-fragment pairs). DeepSMILES produces syntactically valid predictions more often than SMILES (54.2% vs. 43.5%) and a higher full test-set mean Tanimoto similarity (0.36 vs. 0.29). A per-sample selection between the two representations raises mean Tanimoto to 0.43, and a deployable variant that selects on model confidence rather than the reference recovers most of this gain. Among molecules where one representation strictly wins, DeepSMILES wins more often than SMILES (27.8% vs. 16.3% of test molecules). These results show that string representation meaningfully influences transformer fragment recovery and that representation-aware selection outperforms either representation alone.
SN - 1758-2946
ER -