passdrill
AI & LLM Engineering · Prompt Engineering · Card 026/027 hard

A researcher is applying a language model to a puzzle-like task, such as the Game of 24, where an early move can turn out to be a dead end many steps later, and simply extending a single left-to-right chain of thought performs poorly. According to Yao et al. (2023), "Tree of Thoughts: Deliberate Problem Solving with Large Language Models," what does the Tree of Thoughts framework add on top of chain-of-thought prompting to address this?

  1. Producing one single, linear sequence of reasoning steps from the problem to the final answer, exactly as in standard chain-of-thought prompting
  2. Sampling many complete, independent chain-of-thought reasoning paths for the whole problem and picking the final answer that the largest number of them agree on
  3. Framing problem solving as a search over a tree whose nodes are intermediate "thoughts": the model generates and self-evaluates multiple candidate next thoughts at each step, and the search can look ahead or backtrack using strategies such as breadth-first or depth-first search, at substantially higher inference-time compute cost than a single reasoning chain
  4. Training a separate value function offline to score candidate solutions, then using that fixed value function alone to pick a solution without the language model exploring or backtracking at inference time
Next card → Shuffle