TL;DR
The paper introduces the Path-aware Siamese Graph Neural Network (PSG), a novel framework that significantly boosts link prediction performance by explicitly capturing both local neighborhood structures and broader relay path information. By combining this path-aware edge featuring with a self-supervised contrastive learning strategy that aligns node content with interaction behavior, PSG achieved top-tier results on competitive Open Graph Benchmark (OGB) datasets.
What Problem Does This Paper Address?
Link prediction—predicting missing connections in a network—is a foundational task with applications ranging from friend recommendations in social networks to identifying drug-drug interactions in healthcare. While Graph Neural Networks (GNNs) have become the go-to solution due to their ability to extract non-linear structural features, existing methods suffer from two main limitations:
- Neglecting Explicit Path Features: Most GNNs focus heavily on aggregating features from immediate local neighborhoods, often missing the broader context provided by the paths connecting two nodes.
- Content-Behavior Misalignment: In unsupervised or self-supervised settings, the representations learned from a node's structural interaction behavior can drift significantly from its inherent content features.
The authors tackle these gaps by proposing an architecture that explicitly engineers robust path-based edge features and uses a multi-task contrastive learning framework to keep node content and behavior aligned.
Methods
PSG is a combinatorial framework consisting of four main components, organized in a Siamese (weight-sharing) architecture:
- Edge Featuring via Relay Path Sampling: To capture long-range structural dependencies without exploding computational costs, the authors introduce a relay path sampling method. It computes the Shortest Path Distance (SPD) from the target nodes to randomly sampled "relay nodes" within a specific area. This generates a robust, expectation-based edge feature vector ($h_{uv}$).
- Siamese Node Encoder: Built on top of backbones like GraphSAGE, this encoder shares weights across positive and negative edge samples. Crucially, it integrates the path-aware edge features directly into the neighborhood aggregation step, allowing the network to differentiate paths during contrastive learning.
- Link Predictor: A Multi-Layer Perceptron (MLP) decoder that uses the Hadamard product (element-wise multiplication) to perform feature intersection between the two node representations.
- Self-Supervised Contrastive Learning: To prevent behavior representations from drifting away from content representations, the authors apply K-means clustering to the node features to generate soft "content labels." A secondary multi-task label predictor then forces adjacent nodes to predict similar behavior labels that align with these content clusters using a cross-entropy loss.
Datasets
The model was evaluated on two prominent link property prediction datasets from the Open Graph Benchmark (OGB):
- ogbl-ddi: A homogeneous, unweighted, and undirected graph representing a drug-drug interaction network (4,267 nodes, ~2.1 million edges). The goal is to rank true drug interactions higher than false ones.
- ogbl-collab: An undirected author collaboration network where nodes represent authors and edges represent co-authorship, complete with temporal (year) annotations and node features derived from published papers.
Key Insights and Ideas
- Paths as Inductive Biases: Relying solely on neighborhood aggregation can make GNNs "blind" to the exact distance and routing between two distant nodes. Explicitly injecting shortest path expectations via relay nodes acts as a powerful structural guide.
- Dual-Optimization via Multi-Tasking: Link prediction shouldn't just care about whether an edge exists; it should ensure that the reason why an edge exists is grounded in the nodes' underlying properties. Forcing the network to simultaneously predict structural links and content-driven cluster labels acts as an effective regularizer.
- Plug-and-Play Compatibility: The Siamese path-aware framework isn't locked into a specific architecture; it can be easily adapted to enhance existing backbone GNN networks like GraphSAGE or GIDN.
Key Results
PSG demonstrated state-of-the-art performance on the OGB leaderboards:
- ogbl-ddi: PSG achieved Top 1 performance at the time of submission. As shown in Table 2, with 500 epochs, PSG reached a Test Hits@20 of 0.9284, outperforming the previous state-of-the-art PLNLP model (0.9088) by a clear margin.
- ogbl-collab: When integrated with the GIDN backbone (GIDN + PSGv2), the framework achieved a Test Hits@50 of 0.7069, securing a Top 3 spot on the leaderboard and demonstrating its adaptability to different base architectures.
Limitations and Future Work
While PSG shows strong empirical performance, the authors note that the framework's components leave room for refinement. Specifically, future work will focus on optimizing the contrastive learning objective, improving the efficiency of the node clustering step, and exploring the integration of attention mechanisms to dynamically weigh the importance of different relay paths.
Summary updated