[Paper Review] Large-Scale Chemical Language Representations Capture Molecular Structure and Properties
MoLFormer pre-trains a transformer encoder on over a billion SMILES to learn universal molecular representations that competitively predict a wide range of chemical properties, including quantum-chemical ones, without explicit 3D geometry.
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. 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.
Motivation & Objective
- Learn a universal molecular representation from large-scale unlabeled SMILES data.
- Evaluate the learned representations on diverse classification and regression tasks in MoleculeNet.
- Analyze whether SMILES-trained models capture structural and spatial molecular information.
Proposed method
- Pre-train MoLFormer on 1.1 billion SMILES from PubChem and ZINC using masked language modeling.
- Use rotary positional embeddings and linear attention for scalable training.
- Encode SMILES by averaging the last hidden state embeddings to form fixed-size molecular representations.
- Fine-tune small task-specific heads on downstream tasks under frozen and fine-tuned regimes.
- Compare performance against a range of supervised and self-supervised baselines including GNNs and language models.
Experimental results
Research questions
- RQ1Can a large-scale pre-trained molecular language model learn representations that predict a broad set of molecular properties?
- RQ2Do SMILES-based representations capture structural information such as substructures and interatomic distances without explicit 3D geometry?
- RQ3How does MoLFormer compare to graph-based and other baselines on MoleculeNet classification and regression benchmarks?
- RQ4What is the impact of model size, data scale, and positional embedding choice on downstream performance?
Key findings
- MoLFormer-XL trained on 1.1B molecules with linear attention and rotary embeddings achieves competitive or superior results to many baselines across ten MoleculeNet tasks (classification and regression).
- MoLFormer representations outperform several graph-based and language-model baselines on multiple benchmarks and are competitive on others, including quantum-chemical properties.
- Analyses show MoLFormer learns aspects of spatial relationships within molecules, with attention correlating to interatomic distances and bonding patterns.
- Rotary positional embeddings with linear attention enable efficient training at scale, reducing required GPUs by roughly a factor of 60.
- Ablation studies indicate model depth and fine-tuning substantially impact downstream performance, while data mix and positional embeddings influence results.
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.