Abstract
GraphCL is a self-supervised framework designed to learn robust node embeddings by comparing distorted views of a node's local neighborhood. By maximizing the similarity between these perturbed versions through a contrastive loss, the model learns representations that are invariant to noise and structural changes. GraphCL demonstrates superior performance over existing unsupervised methods in both transductive and inductive graph learning scenarios, often matching the performance of supervised counterparts.
Introduction
Graph Neural Networks (GNNs) have become a standard for analyzing structured data. However, high-performing GNNs typically rely on large amounts of human-annotated data, which is expensive and requires domain expertise. Existing unsupervised approaches often depend on the homophily hypothesis—assuming connected nodes are similar—which can overlook complex topological patterns. Other methods like Deep Graph Infomax (DGI) face scalability issues on large-scale graphs. GraphCL addresses these challenges by leveraging contrastive learning to extract meaningful features from local graph structures without requiring global summaries or extensive labeling.
The GraphCL Framework
The core of GraphCL is a contrastive learning objective inspired by successes in computer vision. The framework treats a node's identity as invariant to minor perturbations in its local neighborhood.
The process involves four primary steps:
- Stochastic Perturbation: For each node, the model samples an $L$-hop neighborhood and generates two distinct "views" by randomly dropping edges and applying dropout to node features.
- GNN Encoding: These views are processed by a GNN encoder (e.g., a mean-pooling GraphSAGE variant) to generate representation vectors.
- Contrastive Learning: Using a normalized temperature-scaled cross-entropy loss, the model treats views of the same node as positive pairs and views of other nodes in the batch as negative examples.
- Optimization: The model is trained to minimize the distance between positive pairs while maximizing the distance from negative examples in the embedding space.
Experimental Evaluation
The authors evaluated GraphCL across several benchmark datasets categorized into two settings:
- Transductive: Cora, Citeseer, and Pubmed citation networks.
- Inductive: Reddit (social network) and PPI (Protein-Protein Interaction) datasets involving unseen nodes or entirely new graphs.
Key Results
GraphCL consistently outperforms state-of-the-art unsupervised baselines. In the transductive setting, it achieves competitive results against supervised models like GAT.
In inductive tasks, GraphCL reached a micro-averaged F1 score of 0.951 on the Reddit dataset, significantly higher than DGI and standard unsupervised GraphSAGE variants.
Insights and Discussion
A critical finding is the impact of perturbation scales. The authors observed that high feature perturbation (50-70% dropout) combined with low structural perturbation (10-20% edge removal) yields the best embeddings. This suggests that while node features may contain redundant information, the graph's link structure is more sensitive and carries vital topological cues.
Furthermore, GraphCL's reliance on local $L$-hop subgraphs rather than global graph summaries ensures high scalability, making it suitable for massive datasets like Reddit. Mathematically, the framework effectively maximizes a lower bound on the Mutual Information between different perspectives of the same node.
Conclusion and Future Directions
GraphCL provides a scalable and effective solution for self-supervised graph representation learning. While highly robust, future work could explore more sophisticated sampling strategies to better preserve structural information in inductive settings. Additionally, investigating the model's resilience to adversarial attacks and developing more complex pretext tasks remain promising avenues for enhancing the richness of learned embeddings.
Summary updated