Introduction
Graph Representation Learning (GRL) is a cornerstone of modern data science, powering recommendation engines, social network analysis, and bioinformatics. While Self-Supervised Learning (SSL) has significantly reduced the reliance on labeled data, current contrastive learning paradigms often suffer from two critical drawbacks: destructive data augmentation and oversimplified similarity metrics. Traditional methods typically employ random edge dropping or node feature masking, which can disrupt the intrinsic local geometry of the graph. Furthermore, using simple inner products to measure similarity ignores the rich topological structure inherent in graph data.
To overcome these challenges, we introduce Generative Subgraph Contrast (GSC). This framework utilizes adaptive neighborhood interpolation to generate synthetic subgraphs and employs Optimal Transport (OT) distances to capture complex structural relationships.
Methodology
The GSC framework consists of an end-to-end pipeline designed to learn robust node and edge representations without manual labels.
Adaptive Subgraph Generation
The core innovation of GSC is its generative approach to creating contrastive views. Instead of randomly perturbing the graph, the model learns to interpolate a new subgraph for a given center node. By adaptively weighting the features of neighboring nodes, the model creates a "synthetic twin" that preserves the essential local structure.
Optimal Transport Based Contrastive Loss
To compare subgraphs effectively, GSC treats them as distributions rather than flat vectors. It leverages two types of Optimal Transport distances:
- Wasserstein Distance (WD): Used to align node features, ensuring content consistency.
- Gromov-Wasserstein Distance (GWD): Used to measure structural discrepancies by comparing the adjacency matrices (edges) of the subgraphs.
The total loss is calculated by combining the node-level contrastive loss and the edge-level contrastive loss, ensuring the model captures both feature and structural information.
Experimental Results
GSC was evaluated on five benchmark datasets, including citation networks (Cora, Citeseer, Pubmed) and large-scale graphs (PPI, Reddit).
Performance Benchmarks
- PPI Dataset: GSC achieved a Micro-F1 score of 69.1%, a 3.2% improvement over GraphCL, setting a new state-of-the-art for subgraph-based contrastive learning.
- Citation Networks: The model reached accuracies of 84.6% on Cora and 73.7% on Citeseer, outperforming several supervised baselines.
- Sampling Strategy: Ablation studies indicated that Breadth-First Search (BFS) sampling provides the most effective local coverage for the generative module.
Conclusion
Generative Subgraph Contrast (GSC) represents a significant advancement in self-supervised graph learning. By moving from destructive perturbations to adaptive interpolation and employing Optimal Transport metrics, GSC more accurately captures the geometric manifold of graph data. While the computational complexity of Gromov-Wasserstein distances presents a scaling challenge, the framework's superior performance on benchmark datasets demonstrates the value of structure-preserving contrastive learning.
Summary updated