Molecular Contrastive Learning of Representations via Graph Neural Networks

Yuyang Wang, Jianren Wang, Zhonglin Cao, Amir Barati Farimani
2/19/2021
cs.LGphysics.chem-ph
gnncontrastive-ssl

Official code: yuyangw/MolCLR (327 stars, Python, MIT, PyTorch, last commit 2023-11-04).

Abstract

Molecular Machine Learning (ML) bears promise for efficient molecule property prediction and drug discovery. However, labeled molecule data can be expensive and time-consuming to acquire.

Show full abstract

Due to the limited labeled data, it is a great challenge for supervised-learning ML models to generalize to the giant chemical space. In this work, we present MolCLR: Molecular Contrastive Learning of Representations via Graph Neural Networks (GNNs), a self-supervised learning framework that leverages large unlabeled data (~10M unique molecules). In MolCLR pre-training, we build molecule graphs and develop GNN encoders to learn differentiable representations. Three molecule graph augmentations are proposed: atom masking, bond deletion, and subgraph removal. A contrastive estimator maximizes the agreement of augmentations from the same molecule while minimizing the agreement of different molecules. Experiments show that our contrastive learning framework significantly improves the performance of GNNs on various molecular property benchmarks including both classification and regression tasks. Benefiting from pre-training on the large unlabeled database, MolCLR even achieves state-of-the-art on several challenging benchmarks after fine-tuning. Additionally, further investigations demonstrate that MolCLR learns to embed molecules into representations that can distinguish chemically reasonable molecular similarities.

View on arXivView PDF

Code Implementations(1)

yuyangw/MolCLROfficial100%
PyTorchMIT

Implementation of MolCLR: "Molecular Contrastive Learning of Representations via Graph Neural Networks" in PyG.

32777PythonNov 3, 20213 years agoMIT
deep-learninggraph-neural-networksmoleculepytorchpytorch-geometric+1 more

Similar Papers

Cite this paper

@article{wang2021molecular,
  title  = {Molecular Contrastive Learning of Representations via Graph Neural Networks},
  author = {Yuyang Wang and Jianren Wang and Zhonglin Cao and Amir Barati Farimani},
  year   = {2021},
  eprint = {2102.10056},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.10056}
}

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/2102.10056.svg)](https://codeofpaper.com/paper/2102.10056)

Discussion