Skip to main content
QUICK REVIEW

[Paper Review] Motif-Driven Contrastive Learning of Graph Representations

Shichang Zhang, Ziniu Hu|arXiv (Cornell University)|Dec 23, 2020
Advanced Graph Neural NetworksComputer Science36 references15 citations
TL;DR

This paper proposes MICRO-Graph, a motif-driven contrastive learning framework that uses differentiable motif learning via GNN-embedded subgraph clustering to generate semantically meaningful subgraphs for graph-level contrastive pre-training. By leveraging learned motifs to guide subgraph sampling, the method achieves a 2.04% average ROC-AUC improvement on downstream molecular property prediction tasks over state-of-the-art self-supervised baselines.

ABSTRACT

Pre-training Graph Neural Networks (GNN) via self-supervised contrastive learning has recently drawn lots of attention. However, most existing works focus on node-level contrastive learning, which cannot capture global graph structure. The key challenge to conducting subgraph-level contrastive learning is to sample informative subgraphs that are semantically meaningful. To solve it, we propose to learn graph motifs, which are frequently-occurring subgraph patterns (e.g. functional groups of molecules), for better subgraph sampling. Our framework MotIf-driven Contrastive leaRning Of Graph representations (MICRO-Graph) can: 1) use GNNs to extract motifs from large graph datasets; 2) leverage learned motifs to sample informative subgraphs for contrastive learning of GNN. We formulate motif learning as a differentiable clustering problem, and adopt EM-clustering to group similar and significant subgraphs into several motifs. Guided by these learned motifs, a sampler is trained to generate more informative subgraphs, and these subgraphs are used to train GNNs through graph-to-subgraph contrastive learning. By pre-training on the ogbg-molhiv dataset with MICRO-Graph, the pre-trained GNN achieves 2.04% ROC-AUC average performance enhancement on various downstream benchmark datasets, which is significantly higher than other state-of-the-art self-supervised learning baselines.

Motivation & Objective

  • To address the challenge of generating semantically meaningful subgraphs for subgraph-level contrastive learning in graph neural networks.
  • To overcome the limitations of node-level contrastive learning, which fails to capture global graph structure.
  • To enable differentiable motif learning from large-scale graphs with continuous, high-dimensional node features.
  • To improve GNN pre-training by integrating motif-guided subgraph sampling with graph-to-subgraph contrastive learning.
  • To demonstrate that motif-driven subgraph generation leads to superior downstream performance on molecular graph benchmarks.

Proposed method

  • Motif learning is formulated as a differentiable clustering problem using an EM algorithm to group similar subgraph embeddings into prototypical motifs.
  • Subgraphs are sampled via a GNN-encoder and clustered into motifs using continuous embeddings, enabling end-to-end training.
  • A motif-guided sampler is trained to generate subgraphs that are structurally and semantically aligned with learned motifs.
  • Graph-to-subgraph contrastive learning is performed by comparing contextualized node embeddings from the same graph but different motif-like subgraphs.
  • A spectral regularizer is applied to ensure sampled subgraphs remain connected and structurally coherent.
  • The framework is agnostic to GNN architecture and supports multiple architectures like GCN, GIN, and DeeperGCN.

Experimental results

Research questions

  • RQ1Can differentiable motif learning improve subgraph sampling for graph representation learning?
  • RQ2Does motif-guided subgraph generation lead to better performance in contrastive pre-training compared to random or local sampling?
  • RQ3How does the number of learned motifs affect downstream performance in molecular property prediction?
  • RQ4Can motif-driven contrastive learning generalize across diverse GNN architectures?
  • RQ5To what extent do contextualized node embeddings enhance subgraph-level contrastive learning?

Key findings

  • MICRO-Graph achieves a 2.04% average ROC-AUC improvement across seven downstream molecular property prediction benchmarks compared to non-pretrained GNNs.
  • Replacing motif-guided sampling with random walk or k-hop sampling causes a 5.64% and 4.99% drop in performance, respectively, demonstrating the importance of semantic subgraph generation.
  • Removing the spectral regularizer leads to a 1.82% performance drop, indicating its role in maintaining subgraph connectivity and generalization.
  • Subgraph-to-subgraph contrastive learning with motif-like subgraphs underperforms graph-to-subgraph learning, likely due to false-negative pairs from structural similarity across graphs.
  • The framework consistently improves performance across GCN, GIN, and DeeperGCN, with DeeperGCN showing the largest gain due to its expressiveness.
  • Visualizations confirm that learned motifs correspond to chemically meaningful functional groups such as benzene rings and acetate, validating the semantic relevance of the learned patterns.

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.