Command Palette
Search for a command to run...
Can GNNs Learn Link Heuristics? A Concise Review and Evaluation of Link Prediction Methods
Shuming Liang Yu Ding Zhidong Li Bin Liang Siqi Zhang Yang Wang Fang Chen

Abstract
This paper explores the ability of Graph Neural Networks (GNNs) in learning various forms of information for link prediction, alongside a brief review of existing link prediction methods. Our analysis reveals that GNNs cannot effectively learn structural information related to the number of common neighbors between two nodes, primarily due to the nature of set-based pooling of the neighborhood aggregation scheme. Also, our extensive experiments indicate that trainable node embeddings can improve the performance of GNN-based link prediction models. Importantly, we observe that the denser the graph, the greater such the improvement. We attribute this to the characteristics of node embeddings, where the link state of each link sample could be encoded into the embeddings of nodes that are involved in the neighborhood aggregation of the two nodes in that link sample. In denser graphs, every node could have more opportunities to attend the neighborhood aggregation of other nodes and encode states of more link samples to its embedding, thus learning better node embeddings for link prediction. Lastly, we demonstrate that the insights gained from our research carry important implications in identifying the limitations of existing link prediction methods, which could guide the future development of more robust algorithms.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| link-property-prediction-on-ogbl-citation2 | GCN + Heuristic Encoding | Ext. data: No Number of params: 372674 Test MRR: 0.8891 ± 0.0005 Validation MRR: 0.8892 ± 0.0005 |
| link-property-prediction-on-ogbl-ddi | GCN (node embedding) | Ext. data: No Number of params: 5125250 Test Hits@20: 0.9549 ± 0.0073 Validation Hits@20: 0.9098 ± 0.0294 |
| link-property-prediction-on-ogbl-ppa | GCN (node embedding) | Ext. data: No Number of params: 148144898 Test Hits@100: 0.6354 ± 0.0121 Validation Hits@100: 0.6524 ± 0.0096 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.