[Paper Review] Infusing Linguistic Knowledge of SMILES into Chemical Language Models
This paper proposes a transformer-based chemical language model that integrates linguistic knowledge from SMILES by parsing substructures and their grammatical relationships. By pretraining on substructural tokens and injecting connectivity/type knowledge via knowledge adapters, the model achieves state-of-the-art performance in molecular property prediction, with improved attention interpretability and grammar understanding.
The simplified molecular-input line-entry system (SMILES) is the most popular representation of chemical compounds. Therefore, many SMILES-based molecular property prediction models have been developed. In particular, transformer-based models show promising performance because the model utilizes a massive chemical dataset for self-supervised learning. However, there is no transformer-based model to overcome the inherent limitations of SMILES, which result from the generation process of SMILES. In this study, we grammatically parsed SMILES to obtain connectivity between substructures and their type, which is called the grammatical knowledge of SMILES. First, we pretrained the transformers with substructural tokens, which were parsed from SMILES. Then, we used the training strategy 'same compound model' to better understand SMILES grammar. In addition, we injected knowledge of connectivity and type into the transformer with knowledge adapters. As a result, our representation model outperformed previous compound representations for the prediction of molecular properties. Finally, we analyzed the attention of the transformer model and adapters, demonstrating that the proposed model understands the grammar of SMILES.
Motivation & Objective
- To address the inherent limitations of SMILES in representing molecular structure due to its generation process.
- To improve molecular representation learning by incorporating grammatical structure and substructural connectivity from SMILES.
- To develop a transformer-based model that understands SMILES grammar through substructure-level pretraining and knowledge injection.
- To evaluate whether injected linguistic knowledge enhances model performance and interpretability in molecular property prediction.
Proposed method
- Grammatically parsed SMILES to extract substructures and their connectivity types, creating structured substructural tokens.
- Pretrained the transformer model on these substructural tokens to learn molecular grammar from large-scale chemical data.
- Applied the 'same compound model' training strategy to enhance representation learning by leveraging multiple SMILES representations of the same molecule.
- Integrated connectivity and substructure type information into the transformer via knowledge adapters, enabling targeted injection of linguistic knowledge.
- Fine-tuned the model on molecular property prediction benchmarks using standard transfer learning protocols.
- Analyzed attention mechanisms to validate that the model learns to attend to grammatically meaningful substructures.
Experimental results
Research questions
- RQ1Can grammatical parsing of SMILES improve molecular representation learning in transformer-based models?
- RQ2Does injecting substructure connectivity and type information via knowledge adapters enhance model performance on molecular property prediction tasks?
- RQ3To what extent does the model learn to attend to structurally meaningful substructures, as indicated by attention patterns?
- RQ4How does the proposed method compare to existing SMILES-based models in terms of predictive accuracy and generalization?
Key findings
- The proposed model outperformed previous compound representation methods on molecular property prediction benchmarks, demonstrating state-of-the-art performance.
- Attention visualization confirmed that the model learns to attend to grammatically relevant substructures, indicating improved structural understanding.
- The use of knowledge adapters effectively injected linguistic knowledge into the transformer, leading to more interpretable and accurate representations.
- The 'same compound model' training strategy improved representation quality by exposing the model to diverse SMILES forms of the same molecule.
- Substructure-level pretraining led to better generalization and robustness compared to standard SMILES tokenization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.