Large-Scale Chemical Language Representations Capture Molecular Structure and Properties

Jerret Ross, Brian Belgodere, Vijil Chenthamarakshan, Inkit Padhi, Youssef Mroueh +1 more
6/17/2021
cs.LGcs.CLq-bio.BM
transformer-attention

Official code: IBM/molformer (422 stars, Jupyter Notebook, Apache-2.0, last commit 2025-09-17).

Abstract

Models based on machine learning can enable accurate and fast molecular property predictions, which is of interest in drug discovery and material design. Various supervised machine learning models have demonstrated promising performance, but the vast chemical space and the limited availability of property labels make supervised learning challenging.

Show full abstract

Recently, unsupervised transformer-based language models pretrained on a large unlabelled corpus have produced state-of-the-art results in many downstream natural language processing tasks. Inspired by this development, we present molecular embeddings obtained by training an efficient transformer encoder model, MoLFormer, which uses rotary positional embeddings. This model employs a linear attention mechanism, coupled with highly distributed training, on SMILES sequences of 1.1 billion unlabelled molecules from the PubChem and ZINC datasets. We show that the learned molecular representation outperforms existing baselines, including supervised and self-supervised graph neural networks and language models, on several downstream tasks from ten benchmark datasets. They perform competitively on two others. Further analyses, specifically through the lens of attention, demonstrate that MoLFormer trained on chemical SMILES indeed learns the spatial relationships between atoms within a molecule. These results provide encouraging evidence that large-scale molecular language models can capture sufficient chemical and structural information to predict various distinct molecular properties, including quantum-chemical properties.

View on arXivView PDF

Code Implementations(1)

IBM/molformerOfficial100%
Apache-2.0

Repository for MolFormer

42261Jupyter Notebook, PythonNov 7, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{ross2021largescale,
  title  = {Large-Scale Chemical Language Representations Capture Molecular Structure and Properties},
  author = {Jerret Ross and Brian Belgodere and Vijil Chenthamarakshan and Inkit Padhi and Youssef Mroueh and Payel Das},
  year   = {2021},
  eprint = {2106.09553},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.09553}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.09553.svg)](https://codeofpaper.com/paper/2106.09553)

Discussion