Skip to main content
QUICK REVIEW

[论文解读] Demystifying Chains, Trees, and Graphs of Thoughts

Maciej Besta, Florim Memedi|arXiv (Cornell University)|Jan 25, 2024
Topic ModelingComputer Science被引用 6
一句话总结

本文提出了一般性的蓝图和分类法,用于结构增强提示在大语言模型中的应用,引入推理拓扑(链、树、图)并分析现有方案(CoT、ToT、GoT)及其权衡。

ABSTRACT

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.

研究动机与目标

  • 在提示执行流程中凝练基本构成要素与概念
  • 基于推理拓扑发展结构增强的LLM推理方案的分类法
  • 通过所提出的分类法对现有提示方案进行调研和比较
  • 分析拓扑选择如何影响性能、时延和成本
  • 概述提示工程“拓扑”的研究挑战与未来方向

提出的方法

  • 分析提示执行流水线并定义核心组成部分(f_pre、LLM^X、f_post、f_c、f'_c)
  • 将推理拓扑定义并形式化为在提示内外的思维图(节点/边)
  • 建立一个包含拓扑类别、拓扑范围、表示、推导、推理调度以及流水线集成的蓝图
  • 使用该分类法在表示、推导和调度方面对现有方案(CoT、ToT、GoT 等)进行分类和比较
  • 提供一个框架以分析不同拓扑在准确性、时延和成本上的权衡
  • 讨论理论基础以及与知识库和更广阔的LLM生态系统的关系

实验结果

研究问题

  • RQ1一般提示执行流水线的基本构成要素和概念是什么?
  • RQ2在LLM提示中如何定义和分类推理拓扑(链、树、图)?
  • RQ3拓扑的表示、推导和调度选择如何影响性能与成本?
  • RQ4结构增强提示拓扑的开放挑战与研究方向是什么?

主要发现

  • 首次提出并应用于 CoT、ToT、GoT 及相关提示方案的结构增强LLM推理方案分类法。
  • 推理拓扑被建模为思维图,其中包含节点(思考)和边(依赖关系)。
  • 提供了一个正式的蓝图,用以分析和实现基于拓扑的推理,包括在单一提示或多提示设置中的表示、推导和调度。
  • 比较显示不同拓扑类别和调度对准确性、时延和成本的影响,突出权衡。
  • 该工作将提示设计与更广义的AI流水线组件(检索、工具、知识库)联系起来,并概述未来的研究方向。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。