Introduction
While Chain-of-Thought (CoT) prompting has significantly improved the performance of Large Language Models (LLMs) on complex tasks, it is fundamentally limited by its linear, sequential structure. Human cognition, by contrast, is often non-linear, involving interconnected "jumps" between ideas. This paper introduces Graph-of-Thought (GoT), a framework that models reasoning as a non-linear graph to better capture the intricate web of logical deduction. By integrating a dedicated graph encoder and a gated fusion mechanism, GoT achieves state-of-the-art results on reasoning benchmarks, even surpassing human performance on the ScienceQA dataset.
The Limitations of Linear Reasoning
The current paradigm for complex reasoning in LLMs, CoT, encourages models to generate a linear sequence of intermediate steps. However, human thinking involves sudden leaps, loops, and connections between disparate ideas. Previous attempts like Tree-of-Thought (ToT) introduced branching for search but still lacked the ability to model the dense, web-like formations of true deductive reasoning. Forcing thoughts into linear or tree-like structures neglects the complex structural information inherent in logical deduction, limiting the model's ability to solve highly non-linear problems.
Methodology: The GoT Framework
The authors implement GoT as a two-stage framework consisting of Rationale Generation and Answer Inference, built upon a T5-based backbone.
The core innovation lies in the construction and processing of the "thought graph":
- Extract-Cluster-Coreference (ECC) Process: The model uses Open Information Extraction (OpenIE) to pull subject-verb-object triplets from the text. Coreference resolution then clusters nodes referring to the same entities, creating a dense, interconnected graph of "thought units."
- GoT Encoder: A Graph Attention Network (GAT) is employed to learn the importance of different nodes and their neighbors, allowing the model to perceive the structural logic of the reasoning process.
- Gated Fusion Layer: A gated fusion mechanism mathematically combines text embeddings, optional vision embeddings, and the new graph embeddings before passing them to the decoder.
Experimental Evaluation and Results
The GoT model was evaluated on two primary benchmarks: AQUA-RAT (algebraic word problems) and ScienceQA (multimodal science questions).
- Surpassing Human Performance: On the ScienceQA test set, GoT-T5${base}$ achieved 87.59% accuracy, a 2.40% boost over the previous state-of-the-art. The larger GoT-T5${large}$ reached 90.81%, notably surpassing the human baseline of 88.40%.
- Text-Only Reasoning: On the AQUA-RAT test set, accuracy improved from 30.09% to 32.09%, demonstrating the effectiveness of the graph-based approach even without visual aids.
- Efficiency: These gains were achieved with only a marginal increase in parameters (roughly 0.2%) compared to standard multimodal CoT models.
Key Insights
Ablation studies revealed that the logical structure of the graph is critical; replacing it with a random graph led to a significant performance drop.
Furthermore, visualization of graph attention weights showed that GoT is robust to noise, effectively ignoring incorrect rationales by focusing on the most relevant nodes. Remarkably, GoT allows relatively small models (e.g., T5-base with 223M parameters) to outperform massive LLMs like GPT-3 (175B parameters) on specific tasks, suggesting that structural modeling can be more efficient than simple scale.
Limitations and Future Outlook
While parameter-efficient, GoT introduces higher computational costs and slower training times due to additional graph processing. Its performance also depends on the quality of external extraction tools like OpenIE. Future work may explore more sophisticated graph construction methods and broader reasoning tasks, potentially integrating graph-based reasoning directly into the LLM pre-training phase.
Summary updated