Abstract
Link prediction in Graph Neural Networks (GNNs) often suffers from a "long-tailed" performance distribution where a small subset of "head" samples performs significantly better than the majority "tail." This paper identifies the lack of common neighbors (CNs), rather than low node degree, as the primary cause of this performance gap. We introduce the Long-Tailed Link Prediction (LTLP) framework, which addresses this through a Subgraph Enhancement Module (SEM) for structural augmentation and a Representation Enhancement Module (REM) for embedding alignment. LTLP consistently outperforms state-of-the-art baselines on diverse benchmarks, effectively bridging the gap between head and tail performance.
Introduction
Link prediction—the task of predicting missing edges between nodes—is fundamental to graph-based applications ranging from social recommendation to biological network analysis. Despite the success of Graph Neural Networks (GNNs), they frequently exhibit a performance disparity known as the "long-tail" problem. While "head" node pairs are predicted with high accuracy, "tail" pairs, which constitute the majority of the data, suffer from poor predictive performance.
Redefining the Culprit: Common Neighbors vs. Node Degree
Conventional wisdom in the field has long attributed poor performance on tail nodes to low node degrees, assuming that sparse connectivity prevents the learning of robust representations. However, our analysis reveals a different reality. By correlating prediction accuracy with various structural metrics, we found that the number of Common Neighbors (CNs) between a node pair is a far more potent predictor of accuracy ($R^2 \approx 0.9$) than the individual node degrees ($R^2 \approx 0.1$).
As shown in the figures, accuracy scales monotonically with the number of common neighbors. In contrast, the relationship between accuracy and node pair degree is significantly more erratic, suggesting that even nodes with high degrees can be part of "tail" pairs if they lack mutual connections.
The LTLP Framework
To address this structural deficiency, we propose the Long-Tailed Link Prediction (LTLP) framework. LTLP is a modular, "plug-and-play" solution designed to enhance both the graph structure and the resulting representations.
Subgraph Enhancement Module (SEM)
The SEM aims to transform tail pairs into head-like pairs by strategically augmenting their local subgraphs with additional common neighbors. It operates in three stages:
- Candidate Generation: Potential nodes are identified that could serve as common neighbors for a given pair.
- Dual Filtering: To ensure the quality of added edges, SEM employs a Score Filter (selecting high-confidence edges) and a Variance Filter. The Variance Filter tracks prediction stability across training epochs; high-variance scores, even if high in magnitude, are flagged as "hard negatives" and discarded.
Representation Enhancement Module (REM)
Structural augmentation alone is often insufficient. REM addresses the remaining disparity in the vector space. By employing a centroid-based loss function, REM pulls the embeddings of tail pairs closer to the class centers (positive or negative links) established by head pairs. This alignment ensures that the model treats tail pairs with the same discriminative power as head pairs.
Experimental Results
We evaluated LTLP on five benchmark datasets, including citation networks (Cora, CiteSeer, Pubmed) and large-scale graphs from the Open Graph Benchmark (OGB-Collab, OGB-PPA).
- Performance Gains: LTLP consistently outperformed state-of-the-art models like SEAL and Neo-GNN. For instance, on the Cora dataset, LTLP achieved an AUC of 93.16%, compared to 91.80% for a standard GCN.
- Bias Reduction: Crucially, LTLP narrowed the performance gap between head and tail pairs. On CiteSeer, the performance bias dropped from 0.0100 (GCN) to 0.0059 (LTLP).
- Sparsity Resilience: LTLP demonstrated superior resilience in scenarios where edges were intentionally removed, maintaining high accuracy where other models failed.
Conclusion
The LTLP framework shifts the focus of long-tailed link prediction from node degrees to the more critical metric of common neighbors. By combining structural augmentation with representation alignment, LTLP provides a robust solution for improving GNN performance on the vast majority of real-world graph data. Future work will explore more complex structural motifs beyond first-order common neighbors to further refine tail pair prediction.
Summary updated