Highlight

Tree of Thoughts: Deliberate Problem Solving with Large Language Models

Introduces Tree of Thoughts, a framework letting LLMs explore and self-evaluate multiple reasoning paths with lookahead and backtracking.

Based on

Tree of Thoughts: Deliberate Problem Solving with Large Language Models

By Shunyu Yao, Dian Yu, Jeffrey Zhao et al.Neural Information Processing Systems
Read original article →

Tree of Thoughts (ToT) is a new inference framework for large language models that addresses their reliance on token-level, left-to-right decision making, which falls short on tasks requiring exploration, strategic lookahead, or pivotal early decisions. ToT generalizes the popular Chain-of-Thought prompting approach by enabling exploration over coherent units of text called 'thoughts', which serve as intermediate steps toward solving a problem. The model performs deliberate decision making by considering multiple reasoning paths and self-evaluating its choices, and it can look ahead or backtrack to make global choices.

Experiments on three novel tasks that require non-trivial planning or search—Game of 24, Creative Writing, and Mini Crosswords—show that ToT significantly enhances problem-solving ability. The most striking result is on Game of 24, where GPT-4 with chain-of-thought prompting solved only 4% of tasks while ToT reached a 74% success rate, demonstrating the value of structured search and self-evaluation over linear reasoning; the authors released all prompts and code.

Abstract

LLMs are widely used for problem solving but remain confined to token-level, left-to-right inference, limiting tasks needing exploration or strategic lookahead. The authors introduce Tree of Thoughts (ToT), generalizing Chain-of-Thought prompting by letting models explore coherent text units ('thoughts') as intermediate steps. ToT considers multiple reasoning paths, self-evaluates choices, and looks ahead or backtracks for global decisions. On Game of 24, Creative Writing, and Mini Crosswords it sharply improves results—raising GPT-4's Game of 24 success from 4% to 74%.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

Tree of Thoughtslarge language modelschain-of-thoughtreasoningproblem solvingprompting
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.