Skip to main content
QUICK REVIEW

[Paper Review] MoCL: Data-driven Molecular Fingerprint via Knowledge-aware Contrastive Learning from Molecular Graph

Mengying Sun, Jing Xing|arXiv (Cornell University)|Jun 5, 2021
Computational Drug Discovery MethodsComputer Science9 citations
TL;DR

MoCL proposes a knowledge-aware contrastive learning framework for molecular graphs that integrates local-level domain knowledge (bioisosteric substructure substitution) and global-level knowledge (graph similarity) to improve data-driven molecular fingerprint learning. By jointly optimizing local and global contrastive objectives, MoCL achieves state-of-the-art performance on multiple molecular property prediction benchmarks under both linear and semi-supervised settings.

ABSTRACT

Recent years have seen a rapid growth of utilizing graph neural networks (GNNs) in the biomedical domain for tackling drug-related problems. However, like any other deep architectures, GNNs are data hungry. While requiring labels in real world is often expensive, pretraining GNNs in an unsupervised manner has been actively explored. Among them, graph contrastive learning, by maximizing the mutual information between paired graph augmentations, has been shown to be effective on various downstream tasks. However, the current graph contrastive learning framework has two limitations. First, the augmentations are designed for general graphs and thus may not be suitable or powerful enough for certain domains. Second, the contrastive scheme only learns representations that are invariant to local perturbations and thus does not consider the global structure of the dataset, which may also be useful for downstream tasks. Therefore, in this paper, we study graph contrastive learning in the context of biomedical domain, where molecular graphs are present. We propose a novel framework called MoCL, which utilizes domain knowledge at both local- and global-level to assist representation learning. The local-level domain knowledge guides the augmentation process such that variation is introduced without changing graph semantics. The global-level knowledge encodes the similarity information between graphs in the entire dataset and helps to learn representations with richer semantics. The entire model is learned through a double contrast objective. We evaluate MoCL on various molecular datasets under both linear and semi-supervised settings and results show that MoCL achieves state-of-the-art performance.

Motivation & Objective

  • To address the limitations of general graph augmentations in molecular representation learning, which may disrupt semantic meaning.
  • To improve contrastive learning by incorporating global structural similarity across molecular graphs, beyond local invariance.
  • To develop a unified framework that leverages both local and global domain knowledge for better pretraining of graph neural networks on molecular data.
  • To evaluate the effectiveness of the proposed method on diverse molecular property prediction tasks under linear and semi-supervised learning protocols.

Proposed method

  • Proposes a novel data augmentation strategy called substructure substitution, where bioisosteres replace existing substructures to preserve molecular semantics while introducing variation.
  • Introduces a global contrastive loss that encodes pairwise similarity between molecular graphs using a nearest-neighbor graph derived from global similarity metrics.
  • Employs a double contrastive objective: one for local augmentations (MoCL-DK) and one for global similarity, jointly optimized to improve representation quality.
  • Uses a graph neural network encoder with a projection head to generate embeddings, followed by contrastive learning via InfoNCE loss on both local and global views.
  • Applies a weighted combination of local and global contrastive losses, with hyperparameters for neighbor size and loss weighting to balance the two objectives.
  • Employs both linear evaluation (probing with a linear classifier) and semi-supervised fine-tuning to validate representation quality across diverse molecular datasets.

Experimental results

Research questions

  • RQ1Can domain-specific augmentation strategies based on bioisosteric substitution improve molecular representation learning compared to general graph augmentations?
  • RQ2Does incorporating global graph similarity information into contrastive learning enhance downstream performance on molecular property prediction tasks?
  • RQ3How do different global loss formulations—contrastive loss versus least-squares supervision—impact representation quality?
  • RQ4What is the sensitivity of the model’s performance to hyperparameters such as neighbor size and loss weighting in the global contrastive objective?

Key findings

  • MoCL-DK1 and MoCL-DK3 augmentations achieved the highest performance gains from global knowledge, with median AUC improvements of 0.015–0.025 across datasets.
  • The contrastive loss for global similarity (CL) outperformed direct least-squares supervision (LS), with average AUC gains of 0.02–0.04 across datasets under the linear protocol.
  • MoCL-DK1-G with global contrastive loss achieved state-of-the-art performance, outperforming all baselines on 6 out of 7 molecular datasets in the linear evaluation protocol.
  • The method achieved higher test AUC than a well-trained deep learning model when using a linear classifier on the learned representations, demonstrating strong pretraining quality.
  • Sensitivity analysis showed optimal performance with a moderate neighbor size (e.g., 10–20) and a moderate-to-high weight (λ ≈ 0.5–1.0) for the global loss.
  • In semi-supervised fine-tuning, MoCL-DK1-G achieved the best results on 5 out of 7 datasets, confirming robustness across training paradigms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.