Skip to main content
Training & Optimization

Tree of Thoughts

Tree of Thoughts (ToT) is a reasoning framework where an LLM explores multiple reasoning branches as a tree, generating intermediate "thoughts," evaluating partial states with the model itself, and backtracking — turning generation into deliberate search.

AIDOLS Research Team · Editorial standards

Full definition

Yao et al. (Princeton and Google DeepMind, 2023) showed ToT lifting GPT-4's Game of 24 success rate from 4% with chain-of-thought prompting to 74%, and producing more coherent creative writing and better mini-crossword results. The cost is high — many forward passes per problem — making ToT suited to high-value, low-volume reasoning tasks rather than chat. Modern reasoning-tuned models internalize tree-search-like behavior, reducing but not eliminating the need for explicit ToT.

Why it matters

ToT marks the conceptual shift from "LLM as text generator" to "LLM as search operator." For high-stakes reasoning — proofs, plans, code synthesis — explicit search over reasoning trees still outperforms single-path generation on hard problems.

Example

A planning agent uses ToT with breadth-of-3 and depth-of-4 to schedule a 6-warehouse logistics rotation under a fuel-budget constraint, finding a feasible plan single-path CoT failed to produce.

Next steps

More training & optimization terms

Source & further reading

Primary source: Yao et al. — "Tree of Thoughts: Deliberate Problem Solving with Large Language Models" (NeurIPS) (2023).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/tree-of-thoughts/.