TY - JOUR
T1 - Comparing SMILES and SELFIES Tokenization for Enhanced Chemical Language Modeling
AU - Leon, Miguelangel
AU - Perezhohin, Yuriy
AU - Peres, Fernando
AU - Popovic, Ales
AU - Castelli, Mauro
N1 - info:eu-repo/grantAgreement/FCT/6817 - DCRRNI ID/UIDB%2F04152%2F2020/PT#
https://doi.org/10.54499/UIDB/04152/2020#
Leon, M., Perezhohin, Y., Peres, F., Popovic, A., & Castelli, M. (2024). Comparing SMILES and SELFIES Tokenization for Enhanced Chemical Language Modeling. Scientific Reports, 14, Article 25016. https://doi.org/10.1038/s41598-024-76440-8 --- This work was supported by national funds through FCT (Fundação para a Ciência e a Tecnologia), under the
project - UIDB/04152/2020 (DOI: 10.54499/UIDB/04152/2020) - Centro de Investigação em Gestão de Informação (MagIC)/NOVA IMS). Aleš Popovič was supported by the Slovenian Research and Innovation Agency
(ARIS) under research core funding P2-0442
PY - 2024/12/31
Y1 - 2024/12/31
N2 - Life sciences research and experimentation are resource-intensive, requiring extensive trials and considerable time. Often, experiments do not achieve their intended objectives, but progress is made through trial and error, eventually leading to breakthroughs. Machine learning is transforming this traditional approach, providing methods to expedite processes and accelerate discoveries. Deep Learning is becoming increasingly prominent in chemistry, with Convolutional Graph Networks (CGN) being a key focus, though other approaches also show significant potential. This research explores the application of Natural Language Processing (NLP) to evaluate the effectiveness of chemical language representations, specifically SMILES and SELFIES, using tokenization methods such as Byte Pair Encoding (BPE) and a novel approach developed in this study, Atom Pair Encoding (APE), in BERT-based models. The primary objective is to assess how these tokenization techniques influence the performance of chemical language models in biophysics and physiology classification tasks. The findings reveal that APE, particularly when used with SMILES representations, significantly outperforms BPE by preserving the integrity and contextual relationships among chemical elements, thereby enhancing classification accuracy. Performance was evaluated in downstream classification tasks using three distinct datasets for HIV, toxicology, and blood–brain barrier penetration, with ROC-AUC serving as the evaluation metric. This study highlights the critical role of tokenization in processing chemical language and suggests that refining these techniques could lead to significant advancements in drug discovery and material science.
AB - Life sciences research and experimentation are resource-intensive, requiring extensive trials and considerable time. Often, experiments do not achieve their intended objectives, but progress is made through trial and error, eventually leading to breakthroughs. Machine learning is transforming this traditional approach, providing methods to expedite processes and accelerate discoveries. Deep Learning is becoming increasingly prominent in chemistry, with Convolutional Graph Networks (CGN) being a key focus, though other approaches also show significant potential. This research explores the application of Natural Language Processing (NLP) to evaluate the effectiveness of chemical language representations, specifically SMILES and SELFIES, using tokenization methods such as Byte Pair Encoding (BPE) and a novel approach developed in this study, Atom Pair Encoding (APE), in BERT-based models. The primary objective is to assess how these tokenization techniques influence the performance of chemical language models in biophysics and physiology classification tasks. The findings reveal that APE, particularly when used with SMILES representations, significantly outperforms BPE by preserving the integrity and contextual relationships among chemical elements, thereby enhancing classification accuracy. Performance was evaluated in downstream classification tasks using three distinct datasets for HIV, toxicology, and blood–brain barrier penetration, with ROC-AUC serving as the evaluation metric. This study highlights the critical role of tokenization in processing chemical language and suggests that refining these techniques could lead to significant advancements in drug discovery and material science.
KW - Natural Language Processing
KW - Chemical Language Modeling
KW - SMILES Representation
KW - SELFIES Representation
KW - Atom Pair Encoding
KW - Chemical Informatics
KW - Computational Chemistry
UR - http://www.scopus.com/inward/record.url?scp=85207468386&partnerID=8YFLogxK
UR - https://www.webofscience.com/wos/woscc/full-record/WOS:001341352800123
U2 - 10.1038/s41598-024-76440-8
DO - 10.1038/s41598-024-76440-8
M3 - Article
C2 - 39443676
SN - 2045-2322
VL - 14
JO - Scientific Reports
JF - Scientific Reports
M1 - 25016
ER -