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.
翻译:全归纳环境下的知识图谱推理——即在测试时出现的实体与关系均在训练阶段未见——仍是一个开放挑战。本文提出GraphOracle,一种通过将每个知识图谱转换为关系依赖图(RDG)来实现鲁棒全归纳推理的新框架。RDG编码了关系间的有向优先链接,在捕获关键组合模式的同时大幅降低了图密度。在给定查询关系的条件下,多头注意力机制通过RDG传播信息以生成上下文感知的关系嵌入。这些嵌入随后指导第二个GNN在原始知识图谱上执行归纳消息传递,从而实现对全新实体与关系的预测。在60个基准数据集上的综合实验表明,GraphOracle在全归纳场景中优于现有方法达25%,在跨域场景中达28%。我们的分析进一步证实,紧凑的RDG结构与基于注意力的传播是实现高效准确泛化的关键。