Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction
Zhaocheng Zhu, Zuobai Zhang, Louis-Pascal Xhonneux, Jian Tang
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/DeepGraphLearning/NBFNetOfficialIn paperpytorch★ 229
- github.com/fs302/EasyLinkpytorch★ 13
- github.com/fs302/EasyLink/blob/main/example/ogbl_ppa_ra.pypytorch★ 0
Abstract
Link prediction is a very fundamental task on graphs. Inspired by traditional path-based methods, in this paper we propose a general and flexible representation learning framework based on paths for link prediction. Specifically, we define the representation of a pair of nodes as the generalized sum of all path representations, with each path representation as the generalized product of the edge representations in the path. Motivated by the Bellman-Ford algorithm for solving the shortest path problem, we show that the proposed path formulation can be efficiently solved by the generalized Bellman-Ford algorithm. To further improve the capacity of the path formulation, we propose the Neural Bellman-Ford Network (NBFNet), a general graph neural network framework that solves the path formulation with learned operators in the generalized Bellman-Ford algorithm. The NBFNet parameterizes the generalized Bellman-Ford algorithm with 3 neural components, namely INDICATOR, MESSAGE and AGGREGATE functions, which corresponds to the boundary condition, multiplication operator, and summation operator respectively. The NBFNet is very general, covers many traditional path-based methods, and can be applied to both homogeneous graphs and multi-relational graphs (e.g., knowledge graphs) in both transductive and inductive settings. Experiments on both homogeneous graphs and knowledge graphs show that the proposed NBFNet outperforms existing methods by a large margin in both transductive and inductive settings, achieving new state-of-the-art results.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| Citeseer | NBFNet | AUC | 92.3 | — | Unverified |
| Cora | NBFNet | AUC | 95.6 | — | Unverified |
| FB15k-237 | NBFNet | Hits@1 | 0.32 | — | Unverified |
| Pubmed | NBFNet | AUC | 98.3 | — | Unverified |
| WN18RR | NBFNet | Hits@10 | 0.67 | — | Unverified |
| YAGO3-10 | NBFNet | Hits@1 | 0.48 | — | Unverified |