arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.02382cs.CL
收藏

ROG:基于知识图谱的复杂一阶查询的检索增强大语言模型推理

ROG: Retrieval-Augmented LLM Reasoning for Complex First-Order Queries over Knowledge Graphs

School of Information Science and Engineering, Chongqing Jiaotong University(信息科学与工程学院,重庆交通大学);State Grid Chongqing Electric Power Company(国网重庆市电力公司)

Ziyan Zhang, Chao Wang, Zhuo Chen, Chiyi Li, Kai Song

AI总结:

ROG通过检索增强的大语言模型推理,解决复杂一阶查询中的投影、交集、并集和否定问题,提升知识图谱推理的鲁棒性和准确性。

摘要:

在不完整知识图谱(KGs)上回答一阶逻辑(FOL)查询具有挑战性,尤其是涉及投影、交集、并集和否定的复杂查询结构。我们提出了ROG,一种结合查询感知邻域检索与大语言模型(LLM)链式推理的检索增强框架。ROG将多运算符查询分解为一系列单运算符子查询,并在紧凑的、与查询相关的邻域证据基础上支撑每一步。中间答案集被缓存并重用于不同步骤,提高了深度推理链的一致性。这种设计减少了累积误差,并在复杂和否定密集的查询上产生了更稳健的推理。总体而言,ROG通过用检索支撑的逐步推理替代学习运算符,为嵌入式逻辑推理提供了一个实用的替代方案。在标准KG推理基准上的实验显示,ROG在强嵌入基线上表现一致,尤其在高复杂度和否定密集的查询类型上改进最大。

英文摘要:

Answering first-order logic (FOL) queries over incomplete knowledge graphs (KGs) is difficult, especially for complex query structures that compose projection, intersection, union, and negation. We propose ROG, a retrieval-augmented framework that combines query-aware neighborhood retrieval with large language model (LLM) chain-of-thought reasoning. ROG decomposes a multi-operator query into a sequence of single-operator sub-queries and grounds each step in compact, query-relevant neighborhood evidence. Intermediate answer sets are cached and reused across steps, improving consistency on deep reasoning chains. This design reduces compounding errors and yields more robust inference on complex and negation-heavy queries. Overall, ROG provides a practical alternative to embedding-based logical reasoning by replacing learned operators with retrieval-grounded, step-wise inference. Experiments on standard KG reasoning benchmarks show consistent gains over strong embedding-based baselines, with the largest improvements on high-complexity and negation-heavy query types.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑