Tree of Uncertain Thoughts Reasoning for Large Language Models

Shentong Mo, Miao Xin
9/14/2023
cs.CLcs.AIcs.LG

Official code: princeton-nlp/tree-of-thought-llm (6,044 stars, MIT, last commit 2025-01-16).

Abstract

While the recently introduced Tree of Thoughts (ToT) has heralded advancements in allowing Large Language Models (LLMs) to reason through foresight and backtracking for global decision-making, it has overlooked the inherent local uncertainties in intermediate decision points or "thoughts". These local uncertainties, intrinsic to LLMs given their potential for diverse responses, remain a significant concern in the reasoning process. Addressing this pivotal gap, we introduce the Tree of Uncertain Thoughts (TouT) - a reasoning framework tailored for LLMs. Our TouT effectively leverages Monte Carlo Dropout to quantify uncertainty scores associated with LLMs' diverse local responses at these intermediate steps. By marrying this local uncertainty quantification with global search algorithms, TouT enhances the model's precision in response generation. We substantiate our approach with rigorous experiments on two demanding planning tasks: Game of 24 and Mini Crosswords. The empirical evidence underscores TouT's superiority over both ToT and chain-of-thought prompting methods.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2023] Tree of Thoughts: Deliberate Problem Solving with Large Language Models

6,044624Shell, PythonMay 17, 20231 years agoMIT
large-language-modelsllmpromptingtree-of-thoughtstree-search

Similar Papers

Cite this paper

@article{mo2023tree,
  title  = {Tree of Uncertain Thoughts Reasoning for Large Language Models},
  author = {Shentong Mo and Miao Xin},
  year   = {2023},
  eprint = {2309.07694},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.07694v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.07694.svg)](https://codeofpaper.com/paper/2309.07694)

Discussion