passdrill
AI & LLM Engineering · Prompt Engineering · Card 046/049 medium

Tree of Thoughts (Yao et al., 2023) lets a model explore multiple reasoning branches and backtrack from dead ends, but each branch in a tree can only split further or be discarded; branches cannot be recombined with each other. Besta et al., "Graph of Thoughts: Solving Elaborate Problems with Large Language Models," propose a structure that goes beyond this constraint. What does Graph of Thoughts add on top of the tree structure, and what capability does that addition unlock?

  1. It removes branching entirely and forces the model onto a single linear chain, trading the exploration benefits of Tree of Thoughts for a large reduction in the number of model calls needed
  2. It adds a fixed, hand-written decision tree of if-then rules external to the language model that decides which existing branch to keep, replacing the model's own judgment about branch quality
  3. It models the reasoning process as an arbitrary graph, where individual "thoughts" are vertices and dependencies between them are edges rather than being restricted to a single parent-to-child tree shape; this lets thoughts explored on separate branches be merged, aggregated, or fed back into each other through feedback loops, rather than only ever being extended or dropped
  4. It requires training a separate small classifier model to score each branch numerically, since the underlying language model in this framework is never asked to judge or compare its own branches
Next card → Shuffle