Tree of Thoughts: Deliberate Problem Solving with Large Language Models
arXiv:2305.10601
Abstract
Language models are increasingly being deployed for general problem solving across a wide range of tasks, but are still confined to token-level, left-to-right decision-making processes during inference. This means they can fall short in tasks that require exploration, strategic lookahead, or where initial decisions play a pivotal role. To surmount these challenges, we introduce a new framework for language model inference, Tree of Thoughts (ToT), which generalizes over the popular Chain of Thought approach to prompting language models, and enables exploration over coherent units of text (thoughts) that serve as intermediate steps toward problem solving. ToT allows LMs to perform deliberate decision making by considering multiple different reasoning paths and self-evaluating choices to decide the next course of action, as well as looking ahead or backtracking when necessary to make global choices. Our experiments show that ToT significantly enhances language models' problem-solving abilities on three novel tasks requiring non-trivial planning or search: Game of 24, Creative Writing, and Mini Crosswords. For instance, in Game of 24, while GPT-4 with chain-of-thought prompting only solved 4% of tasks, our method achieved a success rate of 74%. Code repo with all prompts: https://github.com/princeton-nlp/tree-of-thought-llm.
arXiv commentNeurIPS 2023 camera ready version. Code repo with all prompts: https://github.com/princeton-nlp/tree-of-thought-llm
Cited by in corpus (42)
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models
- AI Agents vs. Agentic AI: A Conceptual Taxonomy, Applications and Challenges
- AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathways
- Evaluation of Retrieval-Augmented Generation: A Survey
- How understanding large language models can inform the use of ChatGPT in physics education
- LLM for SoC Security: A Paradigm Shift
- Using LLMs in Software Requirements Specifications: An Empirical Evaluation
- El Agente: An Autonomous Agent for Quantum Chemistry
- Embedding Large Language Models into Extended Reality: Opportunities and Challenges for Inclusion, Engagement, and Privacy
- On the Prospects of Incorporating Large Language Models (LLMs) in Automated Planning and Scheduling (APS)
- Exploring the Roles of Large Language Models in Reshaping Transportation Systems: A Survey, Framework, and Roadmap
- Correctness Comparison of ChatGPT-4, Gemini, Claude-3, and Copilot for Spatial Tasks
- From Screens to Scenes: A Survey of Embodied AI in Healthcare
- Could ChatGPT get an Engineering Degree? Evaluating Higher Education Vulnerability to AI Assistants
- Towards Automated Regulatory Compliance Verification in Financial Auditing with Large Language Models
- Applications of Generative AI in Healthcare: algorithmic, ethical, legal and societal considerations
- Domain-specific ChatBots for Science using Embeddings
- Supporting Energy Policy Research with Large Language Models
- Integrating Graphs with Large Language Models: Methods and Prospects
- Large Knowledge Model: Perspectives and Challenges
- Prompt Design Matters for Computational Social Science Tasks but in Unpredictable Ways
- Computational Argumentation-based Chatbots: a Survey
- Moderating New Waves of Online Hate with Chain-of-Thought Reasoning in Large Language Models
- LLM-Mediated Domain-Specific Voice Agents: The Case of TextileBot
- VLATest: Testing and Evaluating Vision-Language-Action Models for Robotic Manipulation
- Transforming Agency. On the mode of existence of Large Language Models
- SPROUT: an Interactive Authoring Tool for Generating Programming Tutorials with the Visualization of Large Language Models
- Web Archives Metadata Generation with GPT-4o: Challenges and Insights
- Advanced System Integration: Analyzing OpenAPI Chunking for Retrieval-Augmented Generation
- Flows: Building Blocks of Reasoning and Collaborating AI
- The Strong Pull of Prior Knowledge in Large Language Models and Its Impact on Emotion Recognition
- AgentArcEval: An Architecture Evaluation Method for Foundation Model based Agents
- Optimizing the role of human evaluation in LLM-based spoken document summarization systems
- Using Large Language Models for Solving Thermodynamic Problems
- EvidenceMap: Learning Evidence Analysis to Unleash the Power of Small Language Models for Biomedical Question Answering
- Camera Control at the Edge with Language Models for Scene Understanding
- Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
- Thought Flow Nets: From Single Predictions to Trains of Model Thought
- Serve Programs, Not Prompts
- Derivation Prompting: A Logic-Based Method for Improving Retrieval-Augmented Generation
- Tool-Augmented LLMs as a Universal Interface for IDEs
- WebChecker: A Versatile EVL Plugin for Validating HTML Pages with Bootstrap Frameworks