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

Reasoning with Graphs:结构化隐式知识以增强大语言模型的推理能力

Reasoning with Graphs: Structuring Implicit Knowledge to Enhance LLMs Reasoning

Michigan State University(密歇根州立大学);Amazon(亚马逊公司);Texas A&M University(德克萨斯农工大学)

Haoyu Han, Yaochen Xie, Hui Liu, Xianfeng Tang, Sreyashi Nag, William Headden, Hui Liu, Yang Li, Chen Luo, Shuiwang Ji, Qi He, Jiliang Tang

AI总结:

针对大语言模型在逻辑推理、多跳问答等需隐式关系推理任务上的不足,提出RwG方法,将上下文隐式知识构建为显式图以增强推理能力,实验验证了其在两类任务上的有效性。

摘要:

大语言模型(LLMs)已在广泛任务中展现出显著成效,但在需要理解并推断文本序列内不同信息片段间关系的推理任务中仍面临挑战。这一挑战在涉及多步骤过程的任务中尤为突出,例如逻辑推理和多跳问答,此类任务中理解实体间的隐式关系并利用给定上下文中的多跳连接至关重要。图作为基础数据结构,可显式表示实体间的成对关系,从而为增强LLMs的推理能力提供了可能。外部图已被证明可在多项任务中有效支持LLMs。但在许多推理任务中,并不存在预先提供的图结构。我们能否将从上下文中提取的隐式知识结构化为图,以辅助LLMs推理?本文提出了Reasoning with Graphs(RwG,基于图的推理)方法,该方法首先从上下文中构建显式图,随后利用这些图提升LLMs在推理任务上的表现。大量实验证明,所提方法在改善逻辑推理和多跳问答任务方面均具有有效性。

英文摘要:

Large language models (LLMs) have demonstrated remarkable success across a wide range of tasks; however, they still encounter challenges in reasoning tasks that require understanding and inferring relationships between distinct pieces of information within text sequences. This challenge is particularly pronounced in tasks involving multi-step processes, such as logical reasoning and multi-hop question answering, where understanding implicit relationships between entities and leveraging multi-hop connections in the given context are crucial. Graphs, as fundamental data structures, explicitly represent pairwise relationships between entities, thereby offering the potential to enhance LLMs' reasoning capabilities. External graphs have proven effective in supporting LLMs across multiple tasks. However, in many reasoning tasks, no pre-existing graph structure is provided. Can we structure implicit knowledge derived from context into graphs to assist LLMs in reasoning? In this paper, we propose Reasoning with Graphs (RwG) by first constructing explicit graphs from the context and then leveraging these graphs to enhance LLM reasoning performance on reasoning tasks. Extensive experiments demonstrate the effectiveness of the proposed method in improving both logical reasoning and multi-hop question answering tasks.

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

↑