Summary
Tree of Thought (ToT) extends Chain of Thought by exploring multiple reasoning paths simultaneously. Instead of following a single line of reasoning, ToT creates a tree-like structure where different approaches are considered, evaluated, and either pursued further or abandoned. This technique is particularly effective for complex problems where the best approach isn't immediately obvious.
Implementation
- Generate multiple approaches by instructing the model to "explore several different ways to solve this problem" or "consider at least 3 different approaches."
- Evaluate each approach by asking the model to list pros and cons or assign a score to each path based on relevant criteria.
- Expand promising branches by requesting further development of the most promising approaches while abandoning less effective ones.
- Combine insights from different branches to create a solution that incorporates the strengths of multiple approaches.
- Structure your prompt to encourage clear labeling of different approaches and their evaluations.
Evaluation criteria
- Feasibility: Is this approach implementable?
- Efficiency: Does this path minimize steps/resources?
- Correctness: Does this lead to the right answer?
- Novelty: Does this offer unique insights?
Best for
- Open-ended problems with multiple valid solutions
- Creative tasks requiring diverse perspectives
- Decision-making scenarios with trade-offs
- Complex planning where multiple approaches exist