Stepping Back to SMILES Transformers for Fast Molecular Representation Inference
Abstract
In the intersection of molecular science and deep learning, tasks like virtual screening have driven the need for a high-throughput molecular representation generator on large chemical databases. However, as SMILES strings are the most common storage format for molecules, using deep graph models to extract molecular feature from raw SMILES data requires an SMILES-to-graph conversion, which significantly decelerates the whole process. Directly deriving molecular representations from SMILES is feasible, yet there exists a performance gap between the existing unpretrained SMILES-based models and graph-based models at large-scale benchmark results, while pretrain models are resource-demanding at training. To address this issue, we propose ST-KD, an end-to-end \textbf{S}MILES \textbf{T}ransformer for molecular representation learning boosted by \textbf{K}nowledge \textbf{D}istillation. In order to conduct knowledge transfer from graph Transformers to ST-KD, we have redesigned the attention layers and introduced a pre-transformation step to tokenize the SMILES strings and inject structure-based positional embeddings. Without expensive pretraining, ST-KD shows competitive results on latest standard molecular datasets PCQM4M-LSC and QM9, with $3\text{-}14\times$ inference speed compared with existing graph models.
- Publication:
-
arXiv e-prints
- Pub Date:
- December 2021
- DOI:
- 10.48550/arXiv.2112.13305
- arXiv:
- arXiv:2112.13305
- Bibcode:
- 2021arXiv211213305Z
- Keywords:
-
- Computer Science - Computational Engineering;
- Finance;
- and Science
- E-Print:
- 15 pages, 2 figures, appendix included