Adaptive Graph of Thoughts: Test-Time Adaptive Reasoning Unifying Chain, Tree, and Graph Structures

Tushar Pandey, Ara Ghukasyan, Oktay Goktas, Santosh Kumar Radha
2/7/2025
cs.AIcs.CL

No official code found. Best implementation: AgnostiqHQ/multi-agent-llm (135 stars, AGPL-3.0, last commit 2025-02-10).

Abstract

Large Language Models (LLMs) have demonstrated impressive reasoning capabilities, yet their performance is highly dependent on the prompting strategy and model scale. While reinforcement learning and fine-tuning have been deployed to boost reasoning, these approaches incur substantial computational and data overhead. In this work, we introduce Adaptive Graph of Thoughts (AGoT), a dynamic, graph-based inference framework that enhances LLM reasoning solely at test time. Rather than relying on fixed-step methods like Chain of Thought (CoT) or Tree of Thoughts (ToT), AGoT recursively decomposes complex queries into structured subproblems, forming an dynamic directed acyclic graph (DAG) of interdependent reasoning steps. By selectively expanding only those subproblems that require further analysis, AGoT unifies the strengths of chain, tree, and graph paradigms into a cohesive framework that allocates computation where it is most needed. We validate our approach on diverse benchmarks spanning multi-hop retrieval, scientific reasoning, and mathematical problem-solving, achieving up to 46.2% improvement on scientific reasoning tasks (GPQA) - comparable to gains achieved through computationally intensive reinforcement learning approaches and outperforming state-of-the-art iterative approaches. These results suggest that dynamic decomposition and structured recursion offer a scalable, cost-effective alternative to post-training modifications, paving the way for more robust, general-purpose reasoning in LLMs.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

Lean implementation of various multi-agent LLM methods, including Iteration of Thought (IoT)

13518PythonSep 18, 20241 years agoAGPL-3.0
agentaicotgenaiiot+4 more

Similar Papers

Cite this paper

@article{pandey2025adaptive,
  title  = {Adaptive Graph of Thoughts: Test-Time Adaptive Reasoning Unifying Chain, Tree, and Graph Structures},
  author = {Tushar Pandey and Ara Ghukasyan and Oktay Goktas and Santosh Kumar Radha},
  year   = {2025},
  eprint = {2502.05078},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.05078v1}
}

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/2502.05078.svg)](https://codeofpaper.com/paper/2502.05078)

Discussion