arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.08291cs.AIcs.CLcs.CVcs.LGcs.NE
收藏

大型语言模型引导的思维树

Large Language Model Guided Tree-of-Thought

Theta Labs, Inc.(西塔实验室公司)

Jieyi Long

AI总结:

本文提出思维树(ToT)框架,通过增加提示代理、检查器、记忆和控制器模块,使大型语言模型能进行树状思维回溯,显著提升数独求解成功率。

摘要:

在本文中,我们介绍了思维树(Tree-of-Thought,ToT)框架,这是一种旨在提高自回归大型语言模型(LLMs)问题解决能力的新方法。ToT技术灵感来源于人类思维通过试错解决复杂推理任务的方式。在这个过程中,人类思维通过树状的思维过程探索解空间,允许在必要时进行回溯。为了将ToT实现为软件系统,我们为LLM增加了额外的模块,包括提示代理(prompter agent)、检查器模块(checker module)、记忆模块(memory module)和ToT控制器(ToT controller)。为了解决给定的问题,这些模块与LLM进行多轮对话。记忆模块记录问题解决过程中的对话和状态历史,这使得系统能够回溯到思维过程的先前步骤,并从那里探索其他方向。为了验证所提出技术的有效性,我们实现了一个基于ToT的数独谜题求解器。实验结果表明,ToT框架可以显著提高数独谜题求解的成功率。我们基于ToT的数独求解器的实现可在GitHub上获取:\url{https://github.com/jieyilong/tree-of-thought-puzzle-solver}。

英文摘要:

In this paper, we introduce the Tree-of-Thought (ToT) framework, a novel approach aimed at improving the problem-solving capabilities of auto-regressive large language models (LLMs). The ToT technique is inspired by the human mind's approach for solving complex reasoning tasks through trial and error. In this process, the human mind explores the solution space through a tree-like thought process, allowing for backtracking when necessary. To implement ToT as a software system, we augment an LLM with additional modules including a prompter agent, a checker module, a memory module, and a ToT controller. In order to solve a given problem, these modules engage in a multi-round conversation with the LLM. The memory module records the conversation and state history of the problem solving process, which allows the system to backtrack to the previous steps of the thought-process and explore other directions from there. To verify the effectiveness of the proposed technique, we implemented a ToT-based solver for the Sudoku Puzzle. Experimental results show that the ToT framework can significantly increase the success rate of Sudoku puzzle solving. Our implementation of the ToT-based Sudoku solver is available on GitHub: \url{https://github.com/jieyilong/tree-of-thought-puzzle-solver}.

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

↑