HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction

Zhaocheng Zhu; Zuobai Zhang; Louis-Pascal Xhonneux; Jian Tang

Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction

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.

Code Repositories

DeepGraphLearning/NBFNet
Official
pytorch
Mentioned in GitHub
fs302/EasyLink
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
link-prediction-on-citeseerNBFNet
AP: 93.6%
AUC: 92.3%
link-prediction-on-coraNBFNet
AP: 96.2%
AUC: 95.6%
link-prediction-on-fb15k-237NBFNet
Hits@1: 0.321
Hits@10: 0.599
Hits@3: 0.454
MR: 114
MRR: 0.415
link-prediction-on-pubmedNBFNet
AP: 98.2%
AUC: 98.3%
link-prediction-on-wn18rrNBFNet
Hits@1: 0.497
Hits@10: 0.666
Hits@3: 0.573
MR: 636
MRR: 0.551
link-prediction-on-yago3-10NBFNet
Hits@1: 0.480
Hits@10: 0.708
Hits@3: 0.612
MRR: 0.563
link-property-prediction-on-ogbl-biokgNBFNet
Ext. data: No
Number of params: 734,209
Test MRR: 0.8317
Validation MRR: 0.8318

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.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp