SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.06935 · NeurIPS · 2021

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

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 15 functions out of this paper's own repositories and ran 10 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
DeepGraphLearning/NBFNet canonical 0 of 2
fs302/EasyLink pwc_unofficial 8 of 11
KiddoZhu/NBFNet-PyG reimplementation 2 of 2
FunctionStatusWhere it lives
drnl_node_labeling Ran fs302/EasyLink/easylink/common/seal_utils.py
code served (permissive licence) · get_code("2aad32b3b74abec9")
evaluate_auc Ran fs302/EasyLink/easylink/common/eval_utils.py
code served (permissive licence) · get_code("a27462150ae41053")
evaluate_hits Ran fs302/EasyLink/easylink/common/eval_utils.py
code served (permissive licence) · get_code("e18c89b0a6b12062")
extract_enclosing_subgraphs Ran fs302/EasyLink/easylink/common/seal_utils.py
code served (permissive licence) · get_code("9df677a47f14ae09")
get_pos_neg_edges Ran fs302/EasyLink/easylink/common/seal_utils.py
code served (permissive licence) · get_code("fcaa1fff9342a53d")
index_to_mask Ran KiddoZhu/NBFNet-PyG/nbfnet/models.py
code served (permissive licence) · get_code("9664f4b5c60ab1bf")
load_basic_network Ran fs302/EasyLink/easylink/common/data_utils.py
code served (permissive licence) · get_code("00fab49fcf976780")
size_to_index Ran KiddoZhu/NBFNet-PyG/nbfnet/models.py
code served (permissive licence) · get_code("4ddf5f547371a7f7")
sparse_to_tuple Ran fs302/EasyLink/easylink/common/data_utils.py
code served (permissive licence) · get_code("4ada13b9756aa281")
train_test_split Ran fs302/EasyLink/easylink/common/data_utils.py
code served (permissive licence) · get_code("f6e29676a8cc379b")
adamic_adar Not yet run fs302/EasyLink/easylink/model/heuristic_similarity.py
code served (permissive licence) · get_code("cb453fdedf2fff1d")
common_neighbors Not yet run fs302/EasyLink/easylink/model/heuristic_similarity.py
code served (permissive licence) · get_code("5f30e06f74863f65")
detect_variables Not yet run DeepGraphLearning/NBFNet/nbfnet/util.py
code served (permissive licence) · get_code("eab8b6a6ced6d93e")
get_root_logger Not yet run DeepGraphLearning/NBFNet/nbfnet/util.py
code served (permissive licence) · get_code("70a68fd646c6e4a7")
resource_allocation Not yet run fs302/EasyLink/easylink/model/heuristic_similarity.py
code served (permissive licence) · get_code("213410a6123cfb65")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 between the nodes, 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 1 . The NBFNet 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 2 . 1 Unless stated otherwise, we use summation and multiplication to refer the generalized operators in the path formulation, rather than the basic operations of arithmetic. 2 Code is available at https://github.com/DeepGraphLearning/NBFNet 35th Conference on Neural Information Processing Systems (NeurIPS 2021).

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2106.06935")
get_code_for_paper("2106.06935")
have("2106.06935")

Connect an agent — have() is free.