TL;DR
Graph Contrastive Learning (GCL) succeeds where vision models fail—performing well even without data augmentation—thanks to the inherent property of graph homophily. This paper introduces HomoGCL, a model-agnostic framework that explicitly leverages this "like attracts like" principle by expanding positive samples with weighted neighbors, delivering state-of-the-art results with minimal computational overhead.
What Problem Does This Paper Address?
Contrastive learning typically relies on an "augment-and-contrast" scheme: create two slightly different versions of the same data point (e.g., by rotating an image) and train a model to recognize them as similar while distinguishing them from other samples. In computer vision, removing these augmentations causes performance to collapse.
Curiously, graph models don't suffer the same fate. Even without dropping edges or masking features, GCL models perform remarkably well. The authors investigate this discrepancy and find that the message-passing mechanism in Graph Neural Networks (GNNs) implicitly exploits homophily—the tendency for connected nodes to share labels. This acts as a built-in form of context-based augmentation. The paper aims to move from this implicit reliance to an explicit, theoretically grounded framework that leverages homophily to improve self-supervised graph representation learning.
Methods
HomoGCL is a "plug-and-play" framework designed to enhance existing GCL methods. Its core components include:
- Soft Clustering for Node Similarity: To estimate the probability that two nodes belong to the same class without using labels, HomoGCL uses a Gaussian Mixture Model (GMM) on top of k-means clustering. This provides "soft" assignments, allowing the model to handle uncertainty near class boundaries.
- Edge Saliency: The model calculates a "saliency" score ($S_{ij}$) for every edge. This score represents the likelihood that connected nodes $i$ and $j$ are true positives (i.e., they share the same semantic class).
- Expanded Positive Set: While standard GCL only considers two views of the same node as a positive pair, HomoGCL treats its neighbors as additional positive samples, weighted by their saliency.
- Multi-task Loss: The final objective combines a modified contrastive loss (InfoNCE expanded with weighted neighbors) and an explicit homophily loss to refine the cluster structures.
Datasets
The authors evaluated HomoGCL across six diverse, real-world benchmark datasets:
- Citation Networks: Cora, CiteSeer, and PubMed (where nodes are papers and edges are citations).
- Co-purchase Networks: Amazon-Photo and Amazon-Computers (where nodes are products and edges represent items bought together).
- Large-scale Network: ogbn-arXiv (a massive citation network from the Open Graph Benchmark).
Key Insights and Ideas
- Message Passing is a Hidden Augmentor: The authors demonstrate that message passing aggregates neighbor information, effectively "augmenting" a node's features with its local context. This explains why GCL is more robust than vision-based contrastive learning when explicit augmentations are removed.
- Neighbors are Natural Positives: In homophilous graphs, your neighbor is likely your peer. Explicitly treating neighbors as positive samples provides a much richer training signal than just contrasting a node with a perturbed version of itself.
- The Boundary Problem: Not all neighbors are "friends." Nodes near decision boundaries often connect to different classes (inter-class edges). The "saliency" mechanism is crucial here; it down-weights these potentially misleading edges to prevent performance degradation.
- Stricter Theoretical Bounds: The authors prove that the HomoGCL loss function provides a stricter lower bound for maximizing Mutual Information (MI) compared to standard GCL methods like GRACE.
Key Results
- State-of-the-Art Performance: HomoGCL consistently outperformed a wide array of self-supervised and even some supervised baselines. For instance, it achieved a 3% accuracy gain on the Cora dataset over the base GRACE model.
- Universal Booster: When applied to other frameworks like the negative-sample-free BGRL, HomoGCL provided consistent improvements (e.g., +1.79% on the Computer dataset), proving its model-agnostic utility.
- Scalability: The method successfully scaled to the large ogbn-arXiv dataset, maintaining high performance where other methods struggled with memory or sensitivity issues.
- Clearer Representations: Qualitative t-SNE visualizations showed that HomoGCL produces embeddings with significantly clearer class boundaries and more compact intra-class structures compared to vanilla GCL.
Limitations and Future Work
The primary limitation acknowledged is the focus on homophilous graphs. While common in social and citation networks, many real-world graphs exhibit heterophily (where dissimilar nodes connect, such as in predator-prey networks or certain chemical structures). The authors note that adapting HomoGCL for heterophilous graphs is a promising but challenging future direction. Additionally, while the computational overhead is "light," the iterative clustering steps (k-means/GMM) do add a layer of complexity that must be managed in extremely large-scale production environments.
Summary updated