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

结构引导提示:通过探索文本的图结构指导大语言模型进行多步推理

Structure Guided Prompt: Instructing Large Language Model in Multi-Step Reasoning by Exploring Graph Structure of the Text

UCLA(加利福尼亚大学洛杉矶分校);Intel Labs(英特尔实验室)

Kewei Cheng, Nesreen K. Ahmed, Theodore Willke, Yizhou Sun

AI总结:

本文提出结构引导提示框架,通过将文本转化为图并引导大语言模型在图上游走推理,在零样本设置下显著提升多步推理能力。

摘要:

尽管大语言模型(LLMs)在处理直接推理任务时表现出色,但由于多种因素,它们在面对更复杂的多步推理时常常遇到困难。首先,自然语言通常包含实体之间的复杂关系,使得在较长跨度上保持清晰的推理链具有挑战性。其次,语言多样性的丰富意味着相同的实体和关系可以用不同的术语和结构来表达,这使识别和建立多条信息之间联系的任务更加复杂。图提供了一种有效的解决方案,用于表示富含关系信息的数据并捕获实体之间的长期依赖关系。为了发挥图的潜力,本文引入了结构引导提示(Structure Guided Prompt),这是一个创新的三阶段任务无关提示框架,旨在提升LLMs在零样本设置下的多步推理能力。该框架通过LLMs明确地将非结构化文本转换为图,并指导它们使用任务特定策略在该图上导航以制定响应。通过有效组织信息和引导导航,它使LLMs能够提供更准确且具有上下文感知能力的响应。我们的实验表明,该框架显著增强了LLMs的推理能力,使它们能够在更广泛的自然语言场景中表现出色。

英文摘要:

Although Large Language Models (LLMs) excel at addressing straightforward reasoning tasks, they frequently struggle with difficulties when confronted by more complex multi-step reasoning due to a range of factors. Firstly, natural language often encompasses complex relationships among entities, making it challenging to maintain a clear reasoning chain over longer spans. Secondly, the abundance of linguistic diversity means that the same entities and relationships can be expressed using different terminologies and structures, complicating the task of identifying and establishing connections between multiple pieces of information. Graphs provide an effective solution to represent data rich in relational information and capture long-term dependencies among entities. To harness the potential of graphs, our paper introduces Structure Guided Prompt, an innovative three-stage task-agnostic prompting framework designed to improve the multi-step reasoning capabilities of LLMs in a zero-shot setting. This framework explicitly converts unstructured text into a graph via LLMs and instructs them to navigate this graph using task-specific strategies to formulate responses. By effectively organizing information and guiding navigation, it enables LLMs to provide more accurate and context-aware responses. Our experiments show that this framework significantly enhances the reasoning capabilities of LLMs, enabling them to excel in a broader spectrum of natural language scenarios.

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

↑