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

基于大型语言模型的复杂知识图谱逻辑推理方法

A Large Language Model Based Method for Complex Logical Reasoning over Knowledge Graphs

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

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

AI总结:

本文提出ROG方法,结合KG邻域检索与LLM推理,有效提升复杂知识图谱逻辑推理性能。

摘要:

在知识图谱(KGs)上进行第一-order逻辑(FOL)查询的推理具有挑战性,因为现实世界中的KG固有不完整性以及逻辑查询结构的组合复杂性。大多数现有方法依赖于将实体和关系嵌入到连续几何空间中,并通过可微集合操作来回答查询。虽然这些方法对简单的查询模式有效,但它们往往难以推广到涉及多个操作符、更深层次推理链或异构KG模式的复杂查询。我们提出ROG(基于大型语言模型的知识图谱推理),这是一种组合式框架,结合了查询感知的KG邻域检索与基于大型语言模型(LLM)的推理链。ROG将复杂的FOL查询分解为一系列更简单的子查询,检索紧凑、查询相关的子图作为上下文证据,并使用LLM进行逐步逻辑推理,避免了任务特定的嵌入优化需求。在标准KG推理基准测试中的实验表明,ROG在平均反向排名(MRR)方面始终优于强大的嵌入基线,在高复杂度查询类型上尤为显著。这些结果表明,将结构化的KG检索与LLM驱动的逻辑推理相结合,为复杂KG推理任务提供了一种稳健且有效的方法。

英文摘要:

Reasoning over knowledge graphs (KGs) with first-order logic (FOL) queries is challenging due to the inherent incompleteness of real-world KGs and the compositional complexity of logical query structures. Most existing methods rely on embedding entities and relations into continuous geometric spaces and answer queries via differentiable set operations. While effective for simple query patterns, these approaches often struggle to generalize to complex queries involving multiple operators, deeper reasoning chains, or heterogeneous KG schemas. We propose ROG (Reasoning Over knowledge Graphs with large language models), an ensemble-style framework that combines query-aware KG neighborhood retrieval with large language model (LLM)-based chain-of-thought reasoning. ROG decomposes complex FOL queries into sequences of simpler sub-queries, retrieves compact, query-relevant subgraphs as contextual evidence, and performs step-by-step logical inference using an LLM, avoiding the need for task-specific embedding optimization. Experiments on standard KG reasoning benchmarks demonstrate that ROG consistently outperforms strong embedding-based baselines in terms of mean reciprocal rank (MRR), with particularly notable gains on high-complexity query types. These results suggest that integrating structured KG retrieval with LLM-driven logical reasoning offers a robust and effective alternative for complex KG reasoning tasks.

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

↑