Large Language Models (LLMs) like GPT-4 have become indispensable tools for information retrieval and creative generation. However, they frequently struggle with complex, multi-step logical reasoning tasks, particularly in mathematics. While techniques such as "Chain of Thought" (CoT) and "Tree of Thoughts" (ToT) have improved performance, a significant gap remains between AI and human-level problem-solving. A new framework, Graph of Thought (GoT), addresses these limitations by modeling reasoning as an interconnected graph rather than a linear sequence or a rigid hierarchy.
The Evolution of Reasoning Structures
Traditional prompting strategies generally follow a forward-moving, unidirectional path. Chain of Thought (CoT) operates as a linear sequence, while Tree of Thoughts (ToT) explores multiple branches in a hierarchical structure. However, human experts often solve problems non-linearly, working backward from a goal or connecting insights across different reasoning paths.
Existing methods face three primary challenges:
- Error Propagation: A single mistake in a linear chain can derail the entire result.
- Rigid Hierarchy: Tree structures do not allow for "cross-talk" or the reuse of intermediate thoughts between different branches.
- Performance Gaps: Even with ToT, GPT-4 achieves only ~74% accuracy on the "24-point game," falling short of the human baseline of 98.5%.
The Graph of Thought (GoT) Framework
The GoT framework introduces three key innovations to bridge the gap between LLM reasoning and human expert logic:
1. Non-Hierarchical Graph Structure
In GoT, thoughts are represented as nodes in a directed graph. This allows any intermediate node to relate to any other, enabling the model to "reuse" successful intermediate results across different reasoning paths. This flexibility mimics a mathematician building a library of lemmas to solve a larger proof.
2. Backward Reasoning and Dynamic Updating
Unlike forward-search methods, GoT often initiates reasoning from the target outcome and works backward to find necessary foundational steps. As valid intermediate thoughts are discovered, they are added to a "condition set," allowing the model to iterate rapidly without re-traversing every path from scratch.
3. The Multi-Inspector "Checker"
GoT employs a dedicated Checker function to mitigate hallucinations. Instead of a simple vote, the system uses $n$ "inspectors" (repeated LLM calls) to verify the validity of connections between thoughts. This mechanism significantly lowers the probability of false positives, ensuring that only verified logic progresses through the graph.
Experimental Results
The researchers evaluated GoT against three mathematical challenges: the 24-point game, high-degree polynomial equations, and recursive sequence formulas. The results demonstrated dramatic improvements over the previous state-of-the-art (SOTA):
- 24-Point Game: GoT achieved 97% accuracy (with 5 inspectors), compared to 74% for ToT and 7.3% for standard GPT-4.
- Polynomial Equations: GoT reached 73% accuracy (89% when paired with a calculator), while ToT managed only 25%.
- Recursive Sequences: GoT achieved 55% accuracy (57% with tools), significantly outperforming ToT's 17%.
Overall, GoT boosted accuracy by 23%, 24%, and 15% across these tasks, respectively, by prioritizing verification over simple selection and embracing non-linear reasoning.
Conclusion and Future Work
The Graph of Thought framework represents a significant step toward human-like reasoning in LLMs. By treating thoughts as interconnected nodes and implementing a robust inspection mechanism, GoT overcomes the rigidity of linear and tree-based models. Future research will explore the application of GoT to less binary domains, such as legal reasoning and creative writing, and seek to optimize the computational cost associated with multiple LLM calls for graph traversal.
Summary updated