Tree of Thoughts (ToT) | Prompt Engineering Guide
For complex tasks that require exploration or strategic lookahead, traditional or simple prompting techniques fall short. Yao et el. (2023) (opens in a new tab) and Long (2023) (opens in a new tab) recently proposed Tree of Thoughts (ToT), a framework that generalizes over chain-of-thought prompting and encourages exploration over thoughts that serve as intermediate steps for general problem solving with language models. ToT maintains a tree of thoughts, where thoughts represent coherent language sequences that serve as intermediate steps toward solving a problem. This approach enables an LM to self-evaluate the progress through intermediate thoughts made towards solving a problem through a deliberate reasoning process. The LM's ability to generate and evaluate thoughts is then combined with search algorithms (e.g., breadth-first search and depth-first search) to enable systematic exploration of thoughts with lookahead and backtracking. The ToT framework is illustrated below: Image S
For complex tasks that require exploration or strategic lookahead, traditional or simple prompting techniques fall short. Yao et el. (2023) (opens in a new tab) and Long (2023) (opens in a new tab) recently proposed Tree of Thoughts (ToT), a framework that generalizes over chain-of-thought prompting and encourages exploration over thoughts that serve as intermediate steps for general problem solving with language models. ToT maintains a tree of thoughts, where thoughts represent coherent language sequences that serve as intermediate steps toward solving a problem. This approach enables an…
saved by
related reading
- Chain-of-Thought Prompting | Prompt Engineering Guidepromptingguide.ai
- Generated Knowledge Prompting | Prompt Engineering Guidepromptingguide.ai
- Prompt Chaining | Prompt Engineering Guidepromptingguide.ai
- As Rocks May Think | Eric Jangevjang.com
- Chain-of-Thought Promptinglearnprompting.org
- [2201.11903] Chain of Thought Prompting Elicits Reasoning in Large Language Modelsarxiv.org
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- the-illusion-of-thinking.pdfml-site.cdn-apple.com
- Reasoning for Translation: Comparative Analysis of Chain-of-Thought and Tree-of-Thought Prompting for LLM Translation - ACL Anthologyaclanthology.org
- Stream of Search (SoS): Learning to Search in Languagearxiv.org
- 2402.07927arxiv.org