TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Neural Bellman-Ford Networks: A General Graph Neural Netwo...

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

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

2021-06-13NeurIPS 2021 12Knowledge Graph CompletionLink Property PredictionLink Prediction
PaperPDFCode(official)CodeCode

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.

Results

TaskDatasetMetricValueModel
Link PredictionYAGO3-10Hits@10.48NBFNet
Link PredictionYAGO3-10Hits@100.708NBFNet
Link PredictionYAGO3-10Hits@30.612NBFNet
Link PredictionYAGO3-10MRR0.563NBFNet
Link PredictionWN18RRHits@10.497NBFNet
Link PredictionWN18RRHits@100.666NBFNet
Link PredictionWN18RRHits@30.573NBFNet
Link PredictionWN18RRMR636NBFNet
Link PredictionWN18RRMRR0.551NBFNet
Link PredictionFB15k-237Hits@10.321NBFNet
Link PredictionFB15k-237Hits@100.599NBFNet
Link PredictionFB15k-237Hits@30.454NBFNet
Link PredictionFB15k-237MR114NBFNet
Link PredictionFB15k-237MRR0.415NBFNet
Link Property Predictionogbl-biokgNumber of params734209NBFNet
Link Property Predictionogbl-biokgTest MRR0.8317NBFNet
Link Property Predictionogbl-biokgValidation MRR0.8318NBFNet

Related Papers

Topic Modeling and Link-Prediction for Material Property Discovery2025-07-08Graph Collaborative Attention Network for Link Prediction in Knowledge Graphs2025-07-05Understanding Generalization in Node and Link Prediction2025-07-01Context-Driven Knowledge Graph Completion with Semantic-Aware Relational Message Passing2025-06-29Directed Link Prediction using GNN with Local and Global Feature Fusion2025-06-25Demystifying Distributed Training of Graph Neural Networks for Link Prediction2025-06-25Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networks2025-06-22A Transfer Learning Framework for Multilayer Networks via Model Averaging2025-06-14