ModelRefs / Tree of Thoughts (ToT) — AI Glossary
Tree of Thoughts (ToT) — AI Glossary
A prompting framework that explores multiple reasoning paths in parallel by generating and evaluating intermediate thoughts as a search tree. Also called ToT.
Overview
Tree of Thoughts (Yao et al. 2023) extends chain-of-thought by branching at each step: generate k thought candidates, evaluate each (self-evaluation or voting), and prune unpromising branches. Supports backtracking and look-ahead. Dramatically improves on tasks requiring exploration (24-game, creative writing with constraints, crossword puzzles).
Reference details
| Topic | prompting |
|---|---|
| Also known as | ToT |
| Last reviewed | 2026-06-24 |
Related terms
Example: Count the calls before choosing to branch
Chain-of-thought explores one path. Branching three ways at each of three levels explores 3³ = 27 leaf paths, and each branch also needs an evaluation call to decide whether it is worth continuing — so the cost is tens of model calls where linear reasoning made one. Sometimes that is obviously right: puzzles where a wrong early commitment is fatal and backtracking is the whole game. Usually it is not, because most tasks do not have a dead end to back out of. Reach for it when you can name the branch point, and measure against plain chain-of-thought with the same total budget spent on sampling instead.
Commonly confused with
Tree of thoughts is a search procedure you implement around the model; extended thinking is a mode the model runs internally. Self-consistency sits between them — it samples several independent chains and votes, with no evaluation or backtracking between branches, which is far cheaper and often enough.
When to use it
Reach for it when:
- Problems with identifiable decision points where an early wrong turn cannot be recovered
- Tasks with a cheap way to score a partial solution, which is what makes pruning possible
- Where accuracy justifies an order-of-magnitude increase in calls
Reach for something else when:
- Anything a single chain-of-thought pass answers acceptably
- Without a usable evaluation signal — unpruned branching is just expensive sampling
- Latency-sensitive paths, where the call count lands directly on the user
Primary source
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Tree of Thoughts (ToT) — AI Glossary.
Frequently asked questions
What is Tree of Thoughts (ToT)?
A prompting framework that explores multiple reasoning paths in parallel by generating and evaluating intermediate thoughts as a search tree.
Is Tree of Thoughts (ToT) the same as ToT?
Yes — ToT are common aliases for Tree of Thoughts (ToT).
What concepts are related to Tree of Thoughts (ToT)?
Closely related concepts include chain of thought, reasoning, task decomposition.