Motif-based Graph Self-Supervised Learning for Molecular Property Prediction

Zaixi Zhang, Qi Liu, Hao Wang, Chengqiang Lu, Chee-Kong Lee

Introduction

Predicting a molecule's properties, such as toxicity or solubility, is a crucial but expensive step in drug discovery and materials science. While Graph Neural Networks (GNNs) excel at modeling molecules as graphs, they are notoriously "data-hungry." The field possesses millions of unlabeled molecules but very few with expensive, lab-verified labels.

To address this, researchers increasingly rely on Self-Supervised Learning (SSL)—pre-training a model on unlabeled data before fine-tuning it for specific downstream tasks. However, most existing GNN pre-training methods focus on either individual atoms (node-level) or the entire molecule (graph-level). This creates a "semantic gap." Molecules are often defined by their motifs—frequently occurring subgraphs like benzene rings or hydroxide groups—which carry specific chemical meanings. Existing methods often ignore these intermediate structures, missing out on the fundamental "vocabulary" of chemistry.

To bridge this gap, researchers have introduced MGSSL (Motif-based Graph Self-Supervised Learning), a framework that pre-trains GNNs by teaching them to "build" molecules piece-by-piece using chemically meaningful subgraphs.

The MGSSL Framework

The authors propose a comprehensive approach consisting of three main components:

1. Chemistry-Inspired Fragmentation

To turn a molecule into a sequence of motifs, the authors utilize the BRICS algorithm, a retrosynthesis-based method that breaks molecules at chemically sensible bonds. To prevent a "combination explosion" of too many unique subgraphs, they introduce custom decomposition rules. This ensures the resulting "motif vocabulary" is diverse but manageable (yielding around 12,000 distinct motifs).

The motif extraction process, including BRICS fragmentation, further decomposition, and motif tree construction.

2. Motif Generative Pre-training

Once fragmented, the model is trained to reconstruct the molecule as a "motif tree." At each step of generation, the GNN must make two distinct predictions:

  • Topology Prediction: Does the current motif have any "children" (connected motifs) yet to be generated?
  • Motif Label Prediction: If yes, which specific motif from the vocabulary should be placed there?

The authors tested two generation orders for this reconstruction: Breadth-First Search (BFS) and Depth-First Search (DFS).

The multi-level self-supervised learning framework, combining atom-level tasks with motif-level topology and label predictions.

3. Multi-level Self-Supervision

To ensure the model retains fundamental, low-level chemical knowledge, the motif-level generative task is combined with atom-level tasks (such as predicting masked atom types and bond types). The researchers employ the Frank-Wolfe algorithm to automatically balance the importance of these different tasks during training, eliminating the need for tedious manual weight tuning.

Experimental Setup and Key Insights

The model was pre-trained on 250,000 unlabeled molecules sampled from the ZINC15 database. For downstream evaluation, the authors used 8 binary classification benchmark datasets from MoleculeNet (including MUV, BACE, BBBP, and Tox21). To ensure a rigorous evaluation, they employed a scaffold-split, which guarantees that the training and testing sets contain structurally distinct molecules.

Several key insights emerged from the experiments:

  • The "Goldilocks" Vocabulary: Motif size is critical. If motifs are too large (using BRICS alone), they become too rare for effective learning. If they are too small (single atoms), the model misses higher-level chemical context. The refined fragmentation rules successfully found the optimal "sweet spot."
  • BFS Outperforms DFS: The Breadth-First Search generation order slightly outperformed Depth-First Search. This suggests that BFS forces the model to learn more about the overall branching structure of the molecule at each level.
  • Hierarchical Learning is Essential: Combining atom-level and motif-level tasks proved superior to using either alone. Learning the "letters" (atoms) actively helps the model better understand the "words" (motifs).

Key Results

MGSSL achieved state-of-the-art performance, outperforming five major baselines (including Grover and GPT-GNN) on 7 out of 8 benchmark datasets. On average across all benchmarks, MGSSL (BFS) achieved a 73.7% ROC-AUC, compared to 67.0% for a model with no pre-training and 72.3% for the strongest baseline (Grover). Furthermore, the framework is architecture-agnostic; it improved performance across various GNN architectures, including GIN, GCN, and GraphSAGE, with GIN seeing the largest relative gain of 10%.

Limitations and Future Work

While highly effective for molecular property prediction, the fragmentation rules used in MGSSL are domain-specific to chemistry. Applying this framework to other types of graphs, such as social networks or citation graphs, would require entirely new methodologies to define and extract meaningful "motifs." Future work may also explore more diverse self-supervised tasks based on motifs, potentially moving beyond simple generation to contrastive learning between different motif arrangements.

Summary updated

BibTeX
@inproceedings{zhang2021motif,
  author = {Zaixi Zhang and Qi Liu and Hao Wang and Chengqiang Lu and Chee-Kong Lee},
  title = {{Motif-based Graph Self-Supervised Learning for Molecular Property Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=6CSKv1wESE},
}
Figure