Tree of Thoughts: Deliberate Problem Solving with Large Language Models
Дерево мыслей: целенаправленное решение задач с помощью больших языковых моделей
2023-05-17
SCID: 54.1/evfjycmz
Discuss with AI
Game of 24Tree of Thoughtsdeliberate problem solvinglarge language modelsstrategic lookahead
Figures from the paper
Abstract (AI)
Language models are increasingly being deployed for general problem solving across a wide range of tasks, but are still confined to token-level, left-to-right decision-making processes during inference. This means they can fall short in tasks that require exploration, strategic lookahead, or where initial decisions play a pivotal role. To surmount these challenges, we introduce a new framework for language model inference, Tree of Thoughts (ToT), which generalizes over the popular Chain of Thought approach to prompting language models, and enables exploration over coherent units of text (thoughts) that serve as intermediate steps toward problem solving. ToT allows LMs to perform deliberate decision making by considering multiple different reasoning paths and self-evaluating choices to decide the next course of action, as well as looking ahead or backtracking when necessary to make global choices. Our experiments show that ToT significantly enhances language models' problem-solving abilities on three novel tasks requiring non-trivial planning or search: Game of 24, Creative Writing, and Mini Crosswords. For instance, in Game of 24, while GPT-4 with chain-of-thought prompting only solved 4% of tasks, our method achieved a success rate of 74%. Code repo with all prompts: https://github.com/princeton-nlp/tree-of-thought-llm.
Key Findings
1
On Game of 24, GPT-4 with Chain-of-Thought solved 4% of tasks, whereas Tree of Thoughts achieved a 74% success rate.
2
The framework supports deliberate problem solving through multiple reasoning paths, self-evaluation, lookahead, backtracking, and global decision-making.
3
Tree of Thoughts generalizes Chain-of-Thought prompting by enabling language models to explore coherent intermediate reasoning units rather than committing to left-to-right token generation.
4
Tree of Thoughts substantially improves performance on planning- and search-intensive tasks, including Game of 24, Creative Writing, and Mini Crosswords.
Research Object
Tree of Thoughts (ToT) framework for language model inference
Research Subject
deliberate multi-path reasoning with exploration, self-evaluation, lookahead, and backtracking
Publication Details
Publication Date
2023-05-17
Journal
Publisher
ISSN
Cited by
574
Open access PDF
Access Type
Author Information
Download PDF
Subscribe to digest