MolXPT: Wrapping Molecules with Text for Generative Pre-training
About
Generative pre-trained Transformer (GPT) has demonstrates its great success in natural language processing and related techniques have been adapted into molecular modeling. Considering that text is the most important record for scientific discovery, in this paper, we propose MolXPT, a unified language model of text and molecules pre-trained on SMILES (a sequence representation of molecules) wrapped by text. Briefly, we detect the molecule names in each sequence and replace them to the corresponding SMILES. In this way, the SMILES could leverage the information from surrounding text, and vice versa. The above wrapped sequences, text sequences from PubMed and SMILES sequences from PubChem are all fed into a language model for pre-training. Experimental results demonstrate that MolXPT outperforms strong baselines of molecular property prediction on MoleculeNet, performs comparably to the best model in text-molecule translation while using less than half of its parameters, and enables zero-shot molecular generation without finetuning.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Molecular property prediction | MoleculeNet BBBP (scaffold) | ROC AUC72.9 | 117 | |
| Molecule Captioning | ChEBI-20 (test) | BLEU-40.505 | 107 | |
| Molecular property prediction | MoleculeNet SIDER (scaffold) | ROC-AUC0.672 | 97 | |
| Molecular property prediction | MoleculeNet BACE (scaffold) | ROC-AUC85.7 | 87 | |
| Molecular property prediction | MoleculeNet HIV (scaffold) | ROC AUC80.8 | 66 | |
| Molecular property prediction | BACE (test) | ROC-AUC88.4 | 65 | |
| molecule property prediction | MoleculeNet (scaffold split) | BBBP80 | 58 | |
| Molecular property prediction | MoleculeNet Tox21 (scaffold) | ROC-AUC79.6 | 48 | |
| Text-guided molecule generation | ChEBI-20 (test) | MACCS FTS Similarity85.9 | 48 | |
| Molecular property prediction | MoleculeNet ClinTox (scaffold) | ROC-AUC0.919 | 45 |