Abstract
Link prediction is a fundamental task in graph analytics, yet traditional "node2link" methods often fail to capture the complex structural context surrounding potential connections. We present SE4LP (Inductive Subgraph Embedding for Link Prediction), a framework that shifts the focus to "subgraph2link" analysis. By combining link-centric induced subgraph extraction with self-supervised contrastive learning, SE4LP achieves state-of-the-art performance while maintaining scalability on massive real-world networks where traditional Graph Neural Networks (GNNs) often encounter memory limitations.
Introduction
Predicting missing links in networks—such as social connections or citation links—is critical for recommendation systems and knowledge discovery. Most current approaches generate individual node embeddings and combine them to predict a link. However, this "node2link" paradigm ignores the rich local topology that defines a connection. Furthermore, many high-performing GNNs require full-graph training, which is computationally prohibitive for large-scale datasets like Facebook or GitHub, often resulting in "Out of Memory" (OOM) errors.
Methodology
SE4LP addresses these limitations by extracting and analyzing the local neighborhood around a target link. The process begins with the extraction of a Link-centric Induced Subgraph (LCI), which captures the $h$-hop neighborhood of the two nodes in question. To manage the computational load and filter noise, a degree-based Top-K sampling strategy is applied to create a compact "slci-subgraph."
Self-Supervised Contrastive Learning
A core innovation of SE4LP is its use of self-supervised contrastive learning. The model generates two augmented "views" of each subgraph through techniques such as edge removal and attribute masking. A GNN encoder is then trained to maximize the similarity between views of the same subgraph while minimizing similarity between different subgraphs. This pretext task allows the model to learn robust structural features even with limited labeled data.
The final model is trained jointly on this contrastive task and the primary link prediction classification task. This dual-objective approach ensures that the learned embeddings are both structurally informative and discriminative for the target task. Beyond standard masking, the authors also introduce "Attribute Similarity" and "KNN Graph" augmentations to further capture node correlations.
Experimental Results
SE4LP was evaluated on five real-world datasets, ranging from small citation networks (Cora, Citeseer, Pubmed) to large-scale social and web networks (Facebook, Github).
Key findings include:
- Superior Accuracy: SE4LP consistently outperformed traditional heuristics (like Common Neighbors) and previous state-of-the-art subgraph methods like SEAL.
- Scalability: On the Github dataset, where standard Graph Auto-Encoders (GAEs) failed due to memory constraints, SE4LP achieved an AUC of approximately 96% with manageable memory usage.
- Robustness: The model maintained high performance even when training data was significantly reduced (down to 10%), demonstrating the effectiveness of the self-supervised component in learning intrinsic structural patterns.
Conclusion
SE4LP demonstrates that focusing on local subgraph structures rather than isolated node pairs provides a more powerful and scalable approach to link prediction. While the contrastive learning component introduces some memory overhead for generating multiple views, the overall efficiency and accuracy make it a compelling solution for large-scale graph analysis. Future work will explore more advanced sampling techniques and applications to temporal and heterogeneous graphs.
Summary updated