Skip to content
naulon

No retraction, correction or concern found when last checked on Oct 30, 2026.

Transformer-CNN: Swiss knife for QSAR modeling and interpretation

Pavel Karpov, Guillaume Godin, Igor V. Tetko

Journal of Cheminformatics · 2020 · CC BY

doi:10.26434/chemrxiv.9961787.v1

Abstract

We present SMILES-embeddings derived from the internal encoder state of a Transformer [1] model trained to canonize SMILES as a Seq2Seq problem. Using a CharNN [2] architecture upon the embeddings results in higher quality interpretable QSAR/QSPR models on diverse benchmark datasets including regression and classification tasks. The proposed Transformer-CNN method uses SMILES augmentation for training and inference, and thus the prognosis is based on an internal consensus. That both the augmentation and transfer learning are based on embeddings allows the method to provide good results for small datasets. We discuss the reasons for such effectiveness and draft future directions for the development of the method. The source code and the embeddings needed to train a QSAR model are available on https://github.com/bigchem/transformer-cnn . The repository also has a standalone program for QSAR prognosis which calculates individual atoms contributions, thus interpreting the model’s result. OCHEM [3] environment ( https://ochem.eu ) hosts the on-line implementation of the method proposed.

References 65

  1. 1.

    Vaswani A, Shazeer N, Parmar N, et al (2017) Attention is all you need. Paper presented at the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA. arXiv:1706.03762

    Not in our library

  2. 2.

    Zhang X, Zhao J, LeCun Y (2015) Character-level convolutional networks for text classification. arXiv e-prints. arXiv:1509.01626

    Not in our library

  3. 3.

    Sushko I, Novotarskyi S, Körner R, et al. Online chemical modeling environment (OCHEM): web platform for data storage, model development and publishing of chemical information. J Comput Aided Mol Des. 2011;25:533-554.

    Not in our library10.1007/s10822-011-9440-2

  4. 4.

    Mauri A, Consonni V, Pavan M, Todeschini R. Dragon software: an easy approach to molecular descriptor calculations. Match. 2006;56:237-248.

    Not in our library

  5. 5.

    Baskin I, Varnek A. Fragment descriptors in SAR/QSAR/QSPR studies, molecular similarity analysis and in virtual screening. Chemoinformatics approaches to virtual screening. 2008;1-43.

    Not in our library

  6. 6.

    Eklund M, Norinder U, Boyer S, Carlsson L. Choosing feature selection and learning algorithms in QSAR. J Chem Inf Model. 2014;54:837-843.

    Not in our library10.1021/ci400573c

  7. 7.

    Baskin II, Winkler D, Tetko IV. A renaissance of neural networks in drug discovery. Expert Opin Drug Discov. 2016;11:785-795.

    Not in our library10.1080/17460441.2016.1201262

  8. 8.

    Duvenaud D, Maclaurin D, Aguilera-Iparraguirre J, et al (2015) Convolutional networks on graphs for learning molecular fingerprints. arXiv e-prints. arXiv:1509.09292

    Not in our library

  9. 9.

    Coley CW, Barzilay R, Green WH, et al. Convolutional embedding of attributed molecular graphs for physical property prediction. J Chem Inf Model. 2017;57:1757-1772.

    Not in our library10.1021/acs.jcim.6b00601

  10. 10.
  11. 11.

    Kimber TB, Engelke S, Tetko IV, et al (2018) Synergy effect between convolutional neural networks and the multiplicity of smiles for improvement of molecular prediction. arXiv e-prints. arXiv:1812.04439

    Not in our library

  12. 12.

    Gilmer J, Schoenholz SS, Riley PF, et al (2017) Neural message passing for quantum chemistry. Proceedings of the 34 th International conference on machine learning, Sydney, Australia, PMLR 70. arXiv:1704.01212

    Not in our library

  13. 13.

    Shang C, Liu Q, Chen K-S, et al (2018) Edge attention-based multi-relational graph convolutional networks. arXiv e-prints. arXiv:1802.04944

    Not in our library

  14. 14.

    Weininger D. SMILES, a chemical language and information system. 1. Introduction to methodology and encoding rules. J Chem Inf Comput Sci. 1988;28:31-36.

    Not in our library

  15. 15.
  16. 16.

    Vidal D, Thormann M, Pons M. LINGO, an efficient holographic text based method to calculate biophysical properties and intermolecular similarities. J Chem Inf Model. 2005;45:386-393.

    Not in our library10.1021/ci0496797

  17. 17.

    Zhang X, LeCun Y (2015) Text understanding from scratch. arXiv e-prints. arXiv:1502.01710

    Not in our library

  18. 18.

    Goh GB, Hodas NO, Siegel C, Vishnu A (2017) SMILES2Vec: an interpretable general-purpose deep neural network for predicting chemical properties. arXiv e-prints. arXiv:1712.02034

    Not in our library

  19. 19.

    Jastrzębski S, Leśniak D, Czarnecki WM (2016) Learning to SMILE(S). arXiv e-prints. arXiv:1602.06289

    Not in our library

  20. 20.

    Goh GB, Siegel C, Vishnu A, Hodas NO (2017) Using rule-based labels for weak supervised learning: a chemnet for transferable chemical property prediction. arXiv e-prints. arXiv:1712.02734

    Not in our library

  21. 21.

    Zheng S, Yan X, Yang Y, Xu J. Identifying structure-property relationships through SMILES syntax analysis with self-attention mechanism. J Chem Inf Model. 2019;59:914-923.

    Not in our library10.1021/acs.jcim.8b00803

  22. 22.

    Tetko IV, Karpov P, Bruno E, Kimber TB, Godin G. Augmentation Is What You Need! In: Tetko IV, Karpov P, Kurkova V (ed) 28th International Conference on Artificial Neural Networks Munich, Germany, 2019 Sep 17, Proceedings, Part V, Workshop and Special sessions, Springer, Cham, pp 831–835

    Not in our library

  23. 23.

    Kiela D, Bottou L (2014) Learning image embeddings using convolutional neural networks for improved multi-modal semantics. In: Proceedings of the 2014 Conference on empirical methods in natural language processing (EMNLP). pp 36–45

    Not in our library

  24. 24.

    Pennington J, Socher R, Manning CD (2014) Glove: global vectors for word representation. EMNLP

    Not in our library

  25. 25.

    Hinton GE, Salakhutdinov RR. Reducing the dimensionality of data with neural networks. Science. 2006;313:504-507.

    Not in our library10.1126/science.1127647

  26. 26.
  27. 27.
  28. 28.

    Hochreiter S, Schmidhuber J. Long short-term memory. Neural Comput. 1997;9:1735-1780.

    Not in our library10.1162/neco.1997.9.8.1735

  29. 29.

    Schwaller P, et al. Molecular transformer: A model for uncertainty-calibrated chemical reaction prediction. ACS Cent Sci. 2019;5:1572-1583.

    Not in our library10.1021/acscentsci.9b00576

  30. 30.

    Karpov P, Godin G, Tetko IV. A transformer model for retrosynthesis. In: Tetko IV, Theis F, Karpov P, Kurkova V (ed) 28th International Conference on artificial neural networks, Munich, Germany, September 17–19, 2019 Proceedings, Part V, Workshop and Special sessions. Springer

    Not in our library

  31. 31.

    Samek W, Müller K-R, Samek W, Montavon G, Vedaldi A, et al. Towards explainable artificial intelligence. Explainable AI: interpreting, explaining and visualizing deep learning. 2019;5-22.

    Not in our library

  32. 32.

    Montavon G, Binder A, Lapuschkin S, Samek W, Montavon G, Vedaldi A, et al. Layer-wise relevance propagation: an overview. Explainable AI: interpreting, explaining and visualizing deep learning. 2019;193-209.

    Not in our library

  33. 33.

    Tetko IV, Villa AE, Livingstone DJ. Neural network studies. 2. Variable selection. J Chem Inf Comput Sci. 1996;36:794-803.

    Not in our library10.1021/ci950204c

  34. 34.

    Gaulton A, Bellis LJ, Bento AP, et al. ChEMBL: a large-scale bioactivity database for drug discovery. Nucleic Acids Res. 2012;40:D1100-D1107.

    Not in our library10.1093/nar/gkr777

  35. 35.

    Segler MHS, Kogej T, Tyrchan C, Waller MP (2017) Generating focussed molecule libraries for drug discovery with recurrent neural networks

    Not in our library10.1021/acscentsci.7b00512

  36. 36.

    Gupta A, Múller AT, Huisma BJH, et al. Generative recurrent networks for de novo drug design. Mol Inform. 2018;37:1700111.

    Not in our library10.1002/minf.201700111

  37. 37.

    Rush A (2018) The annotated transformer. In: Proceedings of workshop for NLP open source software (NLP-OSS). pp 52–60

    Not in our library

  38. 38.

    Abadi M, Barham P, Chen J, et al (2016) TensorFlow: a system for large-scale machine learning

    Not in our library

  39. 39.

    Landrum G RDKit: Open-source cheminformatics. https://www.rdkit.org

    Not in our library

  40. 40.

    Ramsundar B, Eastman P, Walters P, Pande V. Deep learning for the life sciences: applying deep learning to genomics, microscopy, drug discovery, and more. 2019.

    Not in our library

All 65 references

Cited by papers we hold 5

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.