π€ AI Summary
To address the scalability bottleneck in large-scale knowledge graph link prediction caused by global graph dependency, this paper proposes a βquery-driven one-shot subgraph inferenceβ paradigm. It efficiently extracts a single, highly relevant subgraph for each query via Personalized PageRank (PPR) and deploys a lightweight prediction model exclusively on that subgraph. This decouples inference from global graph structure, enabling adaptive, low-overhead reasoning. We further introduce the first joint automated search over both data space (subgraph topology) and model space (hyperparameters). Extensive experiments on five large-scale benchmarks demonstrate state-of-the-art performance: inference speed improves by 1.5β5.2Γ, and memory consumption reduces by 68%β93%. The code is publicly available.
π Abstract
To deduce new facts on a knowledge graph (KG), a link predictor learns from the graph structure and collects local evidence to find the answer to a given query. However, existing methods suffer from a severe scalability problem due to the utilization of the whole KG for prediction, which hinders their promise on large scale KGs and cannot be directly addressed by vanilla sampling methods. In this work, we propose the one-shot-subgraph link prediction to achieve efficient and adaptive prediction. The design principle is that, instead of directly acting on the whole KG, the prediction procedure is decoupled into two steps, i.e., (i) extracting only one subgraph according to the query and (ii) predicting on this single, query dependent subgraph. We reveal that the non-parametric and computation-efficient heuristics Personalized PageRank (PPR) can effectively identify the potential answers and supporting evidence. With efficient subgraph-based prediction, we further introduce the automated searching of the optimal configurations in both data and model spaces. Empirically, we achieve promoted efficiency and leading performances on five large-scale benchmarks. The code is publicly available at: https://github.com/tmlr-group/one-shot-subgraph.