Skip to main content
QUICK REVIEW

[Paper Review] A*Net: A Scalable Path-based Reasoning Approach for Knowledge Graphs

Zhaocheng Zhu, Xinyu Yuan|arXiv (Cornell University)|Jun 7, 2022
Advanced Graph Neural NetworksComputer Science9 citations
TL;DR

A*Net introduces a scalable, path-based reasoning method for knowledge graphs by learning a neural priority function inspired by the A* algorithm, enabling efficient selection of critical nodes and edges during message passing. It achieves state-of-the-art performance on ogbl-wikikg2—handling a million-scale knowledge graph—while using only 0.2% of nodes and edges, outperforming both prior path-based and embedding methods with faster convergence.

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. 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.

Motivation & Objective

  • Address the scalability bottleneck of path-based knowledge graph reasoning methods, which suffer from exponential path growth.
  • Overcome the inefficiency of exhaustive or full-graph path enumeration in dynamic programming-based methods.
  • Enable inductive reasoning on large-scale knowledge graphs where embedding methods dominate but lack interpretability.
  • Develop a method that balances performance and efficiency through configurable selection of nodes and edges.
  • Achieve state-of-the-art results on million-scale knowledge graphs without relying on knowledge graph embeddings.

Proposed method

  • Adapt the A* algorithm’s priority-based search strategy to knowledge graph reasoning by learning a neural priority function for nodes and edges at each iteration.
  • At each iteration, select only K nodes and L edges based on their learned priority scores to reduce computational cost.
  • Use message passing on the selected subgraph to update node representations, focusing computation on semantically relevant paths.
  • Train the priority function end-to-end using the reasoning task’s objective, without additional supervision or handcrafted heuristics.
  • Allow trade-offs between performance and efficiency by tuning the ratios of selected nodes and edges (e.g., 10% or 0.2% of total).
  • Leverage the inductive bias of path semantics to generalize to unseen entities, unlike embedding-based models.

Experimental results

Research questions

  • RQ1Can a learned priority function guide path-based reasoning to achieve high performance while drastically reducing computational cost?
  • RQ2Can path-based reasoning scale to million-scale knowledge graphs, where prior methods fail due to exponential path growth?
  • RQ3Does the proposed method outperform state-of-the-art embedding-based models in terms of both accuracy and convergence speed on large datasets?
  • RQ4Can the method maintain interpretability by highlighting meaningful reasoning paths, unlike black-box embeddings?
  • RQ5To what extent can performance be traded off against efficiency by controlling the fraction of nodes and edges processed at each iteration?

Key findings

  • A*Net achieves state-of-the-art performance on the ogbl-wikikg2 benchmark, a million-scale knowledge graph, with a validation MRR of 0.786, surpassing all prior path-based and embedding-based methods.
  • On ogbl-wikikg2, A*Net uses only 0.2% of nodes and 0.2% of edges per iteration, yet converges faster than embedding methods on a single A100 GPU.
  • On smaller benchmarks like FB15k-237 and WN18RR, A*Net matches or exceeds the performance of state-of-the-art path-based methods while processing only 10% of nodes and edges per iteration.
  • The method demonstrates strong inductive generalization, successfully reasoning over unseen entities, a key advantage over embedding-based models.
  • Visualization confirms that A*Net learns to identify and prioritize semantically meaningful paths, offering interpretability not available in embedding models.
  • The model’s convergence speed is significantly faster than embedding methods, as shown in training time vs. MRR curves on ogbl-wikikg2.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.