GraphOracle: Efficient Fully-Inductive Knowledge Graph Reasoning via Relation-Dependency Graphs
Enjun Du, Siyi Liu, Yongqi Zhang
TL;DR
GraphOracle tackles fully-inductive knowledge graph reasoning, where both entities and relations are unseen at test time, by converting KGs into a sparse, directed Relation-Dependency Graph (RDG) that encodes directional relational dependencies. A query-conditioned multi-head attention over the RDG produces context-aware relation embeddings, which guide a second GNN to perform inductive message passing on the original KG for unseen entities and relations. The model is pre-trained across multiple general-domain KGs and can be fine-tuned with lightweight adaptation on target graphs, achieving state-of-the-art results across 60 benchmarks and showing strong cross-domain generalization; GraphOracle+ further boosts performance by integrating modality-specific external information. This framework demonstrates robust generalization, computational efficiency due to the sparse RDG, and practical potential for scalable cross-domain KG reasoning and transfer learning.
Abstract
Knowledge graph reasoning in the fully-inductive setting, where both entities and relations at test time are unseen during training, remains an open challenge. In this work, we introduce GraphOracle, a novel framework that achieves robust fully-inductive reasoning by transforming each knowledge graph into a Relation-Dependency Graph (RDG). The RDG encodes directed precedence links between relations, capturing essential compositional patterns while drastically reducing graph density. Conditioned on a query relation, a multi-head attention mechanism propagates information over the RDG to produce context-aware relation embeddings. These embeddings then guide a second GNN to perform inductive message passing over the original knowledge graph, enabling prediction on entirely new entities and relations. Comprehensive experiments on 60 benchmarks demonstrate that GraphOracle outperforms prior methods by up to 25% in fully-inductive and 28% in cross-domain scenarios. Our analysis further confirms that the compact RDG structure and attention-based propagation are key to efficient and accurate generalization.
