A*Net: A Scalable Path-based Reasoning Approach for Knowledge Graphs

Zhaocheng Zhu, Xinyu Yuan, Mikhail Galkin, Sophie Xhonneux, Ming Zhang +2 more
6/7/2022
112 citations
cs.AIcs.LG

Official code: DeepGraphLearning/AStarNet (157 stars, Python, MIT, last commit 2023-08-12).

Abstract

Reasoning on large-scale knowledge graphs has been long dominated by embedding methods. While path-based methods possess the inductive capacity that embeddings lack, their scalability is limited by the exponential number of paths.

Show full abstract

Here we present A*Net, a scalable path-based method for knowledge graph reasoning. Inspired by the A* algorithm for shortest path problems, our A*Net learns a priority function to select important nodes and edges at each iteration, to reduce time and memory footprint for both training and inference. The ratio of selected nodes and edges can be specified to trade off between performance and efficiency. Experiments on both transductive and inductive knowledge graph reasoning benchmarks show that A*Net achieves competitive performance with existing state-of-the-art path-based methods, while merely visiting 10% nodes and 10% edges at each iteration. On a million-scale dataset ogbl-wikikg2, A*Net not only achieves a new state-of-the-art result, but also converges faster than embedding methods. A*Net is the first path-based method for knowledge graph reasoning at such scale.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of A* Networks

15716PythonMay 3, 20233 years agoMIT

Similar Papers

Cite this paper

@article{zhu2022anet,
  title  = {A*Net: A Scalable Path-based Reasoning Approach for Knowledge Graphs},
  author = {Zhaocheng Zhu and Xinyu Yuan and Mikhail Galkin and Sophie Xhonneux and Ming Zhang and Maxime Gazeau and Jian Tang},
  year   = {2022},
  eprint = {2206.04798},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.04798}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.04798.svg)](https://codeofpaper.com/paper/2206.04798)

Discussion