arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.14295cs.CLcs.AIcs.LG
收藏

解开思维链、树和图的谜团

Demystifying Chains, Trees, and Graphs of Thoughts

ETH Zurich(苏黎世联邦理工学院);Dell(戴尔);Cledar;BASF SE(巴斯夫欧洲公司)
Maciej Besta, Florim Memedi, Zhenyu Zhang, Robert Gerstenberger, Guangyuan Piao, Nils Blach, Piotr Nyczyk, Marcin Copik, Grzegorz Kwaśniewski, Jürgen Müller, Lu… 展开作者

Maciej Besta, Florim Memedi, Zhenyu Zhang, Robert Gerstenberger, Guangyuan Piao, Nils Blach, Piotr Nyczyk, Marcin Copik, Grzegorz Kwaśniewski, Jürgen Müller, Lukas Gianinazzi, Ales Kubicek, Hubert Niewiadomski, Aidan O'Mahony, Onur Mutlu, Torsten Hoefler

AI总结:

本文通过分析提示执行流程,构建了首个结构增强的大语言模型推理方案分类法,揭示了不同结构对推理性能和成本的影响,并探讨了提示工程与语言模型生态系统的理论基础。

摘要:

自然语言处理领域近年来取得了显著进展,尤其在通过创新提示技术提升大语言模型性能方面。其中,提示工程结合结构的方法成为有前景的范式,如思维链、思维树或思维图。通过多个例子说明,这种范式显著增强了大语言模型在逻辑推理、数学推理、规划和创造性写作等任务中的能力。为促进该领域的发展,本文提出了一种通用的高效大语言模型推理方案蓝图。为此,我们深入分析了提示执行流程,明确并清晰地定义了不同概念。随后,我们构建了首个结构增强的大语言模型推理方案分类法。我们专注于识别被利用结构的基本类别,并分析这些结构的表示、执行这些结构的算法以及许多其他内容。我们将这些结构称为推理拓扑,因为它们的表示在一定程度上是空间性的,因为它们包含在大语言模型的上下文中。我们的研究使用所提出的分类法比较了现有的提示方案,讨论了某些设计选择如何导致不同的性能和成本模式。我们还概述了理论基础,探讨了提示与语言模型生态系统其他部分如知识库之间的关系以及相关研究挑战。本文工作将有助于推进未来的提示工程技术。

英文摘要:

The field of natural language processing (NLP) has witnessed significant progress in recent years, with a notable focus on improving large language models' (LLM) performance through innovative prompting techniques. Among these, prompt engineering coupled with structures has emerged as a promising paradigm, with designs such as Chain-of-Thought, Tree of Thoughts, or Graph of Thoughts, in which the overall LLM reasoning is guided by a structure such as a graph. As illustrated with numerous examples, this paradigm significantly enhances the LLM's capability to solve numerous tasks, ranging from logical or mathematical reasoning to planning or creative writing. To facilitate the understanding of this growing field and pave the way for future developments, we devise a general blueprint for effective and efficient LLM reasoning schemes. For this, we conduct an in-depth analysis of the prompt execution pipeline, clarifying and clearly defining different concepts. We then build the first taxonomy of structure-enhanced LLM reasoning schemes. We focus on identifying fundamental classes of harnessed structures, and we analyze the representations of these structures, algorithms executed with these structures, and many others. We refer to these structures as reasoning topologies, because their representation becomes to a degree spatial, as they are contained within the LLM context. Our study compares existing prompting schemes using the proposed taxonomy, discussing how certain design choices lead to different patterns in performance and cost. We also outline theoretical underpinnings, relationships between prompting and other parts of the LLM ecosystem such as knowledge bases, and the associated research challenges. Our work will help to advance future prompt engineering techniques.

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

↑