The Alternatives Issue For tool owners Sign in

Tree of Thought (ToT)

Tree of Thought prompts a model to branch into multiple reasoning paths, evaluate them, and search for the best one.

Example input

Solve a scheduling puzzle: generate 3 candidate first moves, evaluate each, expand the best two.

In more detail

What it means

Tree of Thought (ToT) generalizes chain-of-thought: instead of one linear reasoning trace, the model generates several candidate "thoughts" at each step, scores or votes on them, and explores the most promising branches — backtracking when a path looks weak. It frames reasoning as a search over a tree, which suits problems with many viable intermediate steps (planning, puzzles, multi-constraint writing, math). ToT trades extra tokens and latency for higher reliability on hard tasks where a single greedy chain often commits early to a wrong step. In practice it is implemented with a generator prompt, an evaluator prompt, and a controller that decides which branches to expand.

Part 1 of 3

When to use it, and when not

Use it for

  • Hard reasoning or planning tasks where one-shot chain-of-thought is unreliable.
  • Problems with a checkable intermediate state (the evaluator can score partial progress).
  • When accuracy matters more than cost or speed.

Skip it for

  • Simple lookups or single-step answers — the extra branches waste tokens.
  • Latency-sensitive UX where each query must return fast.

Part 2 of 3

Example

What goes in, and what comes out.

Input

Solve a scheduling puzzle: generate 3 candidate first moves, evaluate each, expand the best two.

Output

The model discards the dead-end branch early and returns a valid schedule from the surviving path.

Part 3 of 3

Common mistakes

  • Using ToT for trivial tasks where chain-of-thought (or no reasoning) already works.
  • Skipping the evaluator step — branching without scoring is just expensive sampling.
  • Letting the tree grow unbounded; cap breadth and depth to control cost.

FAQ

Questions readers ask.

What is tree of thought (tot)?

Tree of Thought prompts a model to branch into multiple reasoning paths, evaluate them, and search for the best one.

When should you use tree of thought (tot)?

Hard reasoning or planning tasks where one-shot chain-of-thought is unreliable. Problems with a checkable intermediate state (the evaluator can score partial progress). When accuracy matters more than cost or speed.

When should you not use tree of thought (tot)?

Simple lookups or single-step answers — the extra branches waste tokens. Latency-sensitive UX where each query must return fast.

What are the common mistakes with tree of thought (tot)?

Using ToT for trivial tasks where chain-of-thought (or no reasoning) already works. Skipping the evaluator step — branching without scoring is just expensive sampling. Letting the tree grow unbounded; cap breadth and depth to control cost.

Last updated: 2026-06-02. Raw markdown: https://promtable.com/glossary/tree-of-thought.md. Found a mistake? Tell us.