Abstract
Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for training Graph Neural Networks (GNNs) on unlabeled data. However, traditional GCL methods often rely on shallow data perturbations that fail to capture high-order structural interactions. This paper presents Subgraph Network-based Contrastive Learning (SGNCL), a framework that utilizes Subgraph Networks (SGN) to generate structurally rich augmented views. By transforming edges into nodes and motifs into edges, SGNCL captures the "connective tissue" of graph topology. Experimental results demonstrate that SGNCL achieves state-of-the-art performance, including a 6.9% average gain in transfer learning tasks for molecular property prediction.
Introduction
Graph Neural Networks (GNNs) are highly effective for modeling relational data but typically require extensive labeled datasets, which are often scarce in domains like drug discovery. Graph Contrastive Learning (GCL) addresses this by learning representations from unlabeled data through the comparison of different augmented views of the same graph.
Existing GCL strategies primarily use random perturbations—such as dropping nodes or masking edges—to create these views. While useful, these methods are often too shallow, focusing on local features while ignoring the complex interaction correlations inherent in subgraph structures. SGNCL moves beyond these limitations by employing structural transformations that preserve and highlight higher-order connectivity.
Methodology
The SGNCL framework introduces a systematic approach to graph augmentation through Subgraph Networks.
The SGNCL Framework
The overall architecture consists of three main stages: graph augmentation via SGN, representation learning through multi-order encoders, and a contrastive objective function.
Subgraph Network Generation
The core innovation of SGNCL is the Edge-to-Node mapping. Instead of simply deleting components, the original graph's topology is transformed:
- First-order SGN ($SGN^1$): Edges in the original graph are converted into nodes. Connections are established between these new nodes if their corresponding original edges shared a common vertex. This captures node-edge and edge-edge interactions.
- Second-order SGN ($SGN^2$): This further transforms the network to capture interactions between "open triangular motifs," representing even higher-order structural patterns.
Attribute and Multi-Order Fusion
To maintain semantic integrity, especially in molecular graphs where edges represent chemical bonds, SGNCL employs an attribute fusion strategy. Features from original nodes and edges are concatenated and encoded into the SGN nodes. Finally, a fused multi-order contrastive loss (SGNCL-FU) balances information from the original graph, $SGN^1$, and $SGN^2$ using a hyperparameter $q$.
Experimental Setup
The model was evaluated in two distinct settings:
- Unsupervised Learning: Benchmarked on eight TUdataset collections, including bio-informatics (e.g., MUTAG, NCI1) and social networks (e.g., REDDIT-BINARY).
- Transfer Learning: Pre-trained on the ZINC-2M dataset (2 million unlabeled molecules) and fine-tuned on eight MoleculeNet datasets for chemical property prediction.
Results and Discussion
SGNCL demonstrates significant improvements over existing state-of-the-art methods:
- Transfer Learning Superiority: The model achieved a 6.9% average performance gain across molecular datasets, with particularly strong results on ClinTox and HIV.
- Unsupervised Performance: SGNCL consistently ranked in the top three across all benchmarks, frequently securing the top position on datasets like NCI1 and PTC-MR.
- Structural Robustness: Ablation studies confirm that fusing first-order and second-order subgraph information provides a more comprehensive structural view than using either in isolation.
Conclusion
SGNCL shifts the focus of graph contrastive learning from random perturbation to structural transformation. By leveraging Subgraph Networks, the framework effectively captures higher-order interactions and semantic correlations. While the computational complexity of generating higher-order SGNs remains a consideration for very large graphs, the performance gains in molecular and social domains highlight the potential of structure-aware augmentation in graph representation learning.
Summary updated