Reproduce “Tree of Thoughts: Deliberate Problem Solving with Large Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, Karthik Narasimhan
Tree of Thoughts lets language models search partial solutions by generating alternatives, evaluating their prospects, and continuing promising branches or backtracking. In Game of 24, GPT-4 with ToT solved 74% of 100 hard puzzles, versus 4% with a single chain-of-thought prompt and 49% with best-of-100 independent samples. These results concern three challenging tasks and come at higher computational cost.
Key insights
- Large Language Models (LLMs) can be leveraged to generate and evaluate search heuristics, effectively enabling them to perform deliberate, systematic problem-solving beyond linear generation.
- The Tree of Thoughts (ToT) framework generalizes existing methods like Chain-of-Thought by allowing LLMs to explore multiple, branching reasoning paths through a tree structure.
- Integrating classical AI search algorithms (like BFS and DFS) with LLMs' language-based reasoning creates a powerful paradigm for tasks requiring planning, lookahead, and backtracking.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.