Skip to content
Tushar Pandey

Paper companion

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

Tushar Pandey, Ara Ghukasyan, Oktay Goktas, Santosh Kumar Radha

arXiv preprint, 2025 · arXiv:2502.05078

Read

How well a large language model (LLM) answers depends on how it is prompted. Fine-tuning and reinforcement learning improve reasoning but cost substantial computation and data. This preprint proposes Adaptive Graph of Thoughts (AGoT), which works only at test time: it changes how a fixed model is queried, not the model.

Chains, trees and graphs of thoughts

The paper calls a thought any unit of content that informs the final response, and draws thoughts as nodes of a graph whose edges mean that one thought informs another. Chain of Thought (CoT) reasons in sequential steps, Tree of Thoughts adds branching, and Graph of Thoughts allows arbitrary connections with refinement. Autonomous Iteration of Thought (AIoT), the authors’ earlier method, iterates a dialogue under dynamic guidance in a nearly linear structure.

AGoT keeps its graph acyclic, so every line of reasoning is finite. What sets it apart, in the paper’s words, is an LLM-driven complexity check: node by node, the model decides whether a thought needs breaking down further, in a nested graph of its own.

How AGoT builds its graph

AGoT starts from an empty graph and adds one layer of nodes at a time, up to lmax layers of at most nmax nodes each. The first layer of the top graph comes from the query alone, without edges. Each layer has a strategy that guides it; later layers also get edges from earlier nodes, chosen by the model given the graph so far.

Every new node then goes one of two ways. If the complexity check marks it complex and the nesting depth is below dmax, the node’s content becomes the query of a nested graph built the same way, whose final answer becomes the node’s answer. Otherwise the node is answered directly. A thought the model marks final is answered and ends the graph early; otherwise, after the last layer, a final thought drawn from the whole graph gives the answer.

In the implementation each of the six actions (three kinds of thought generation, the complexity check, answering, and the final thought) is a model call with its own instruction and response schema, which the paper calls an agent.

What was tested

The experiments use OpenAI’s gpt-4o-mini, and Table 1 adds gpt-4o on one benchmark. AGoT ran at temperature 0.3 and the other methods at the client’s default settings, with dmax = 1, lmax = 3 and nmax = 3 throughout. The baselines are direct input-output prompting (IO), CoT and AIoT.

For reasoning, GPQA Diamond has 198 multiple-choice science questions, run with the answer options in their default order (GPQAD), where the first option is always correct, and shuffled (GPQAS). For retrieval, three multi-hop question sets, HotpotQA (a random sample of 100 hard questions), MoreHopQA and HybridQA, are scored by exact match (EM), F1 and an LLM-assisted accuracy score (LAAS), in which gpt-4o-mini judges whether two answers mean the same. The explorative tasks are mini-crosswords, scored by letter and word accuracy, and the 20 hardest Game of 24 puzzles, which combine four integers into 24.

This figure needs JavaScript. It shows the scores in the paper’s Tables 1 to 3 for each benchmark, model and metric. The headline gain in the paper’s abstract, on scientific reasoning: on GPQA Diamond with shuffled answer options, AGoT with gpt-4o scored 57.6% against 39.4% for direct IO, which the paper gives as +46.2%, a relative change.

This figure needs JavaScript.

Fig. 1Scores, in percent, of direct input-output prompting (IO, hollow circle), Chain of Thought (CoT, square), Autonomous Iteration of Thought (AIoT, triangle) and AGoT (diamond), highest first, for the chosen benchmark, model and metric; the dotted line marks IO. The right-hand column is the paper’s own percent change against IO; Table 3 gives none. Where two tables hold the same scores, the figure shows the one with more methods. Data: Tables 1 to 3 of arXiv:2502.05078v1, parsed from main.tex in its arXiv source.

Results

The headline +46.2% is a relative gain, on shuffled GPQA Diamond with gpt-4o: AGoT scored 57.6% against 39.4% for direct IO, a difference of 18.2 percentage points (computed here). With gpt-4o-mini on the same set, AGoT scored 49.5% against 37.4% (+32.4%), while CoT and AIoT gained +3.2% and +5.4%. On the default-order version the AGoT gain shrinks to +0.9% (55.1% against 54.6%), and CoT and AIoT score below IO.

On retrieval AGoT has the highest LAAS on all three sets (+11.1% to +30.9%), but exact match is most often highest for IO and F1 most often for AIoT. On Game of 24, AGoT solves 50.0% of the puzzles against 10.0% for IO (+400%) and 25.0% for AIoT. On mini-crosswords it reaches 34.7% letter and 11.1% word accuracy, close to AIoT’s 33.5% and 11.0%.

The paper calls the +46.2% comparable to relative gains reported elsewhere for distillation from DeepSeek-R1, a training-based method.

Costs and limits

The settings of dmax, lmax and nmax balance computation time against performance and are not claimed to be optimal; neither is the implementation. The paper reports how many nodes AGoT built per task and what share were complex, but no token counts, prices or run times. Each table entry is a single score, without an interval.

The authors cannot verify whether the models saw GPQA Diamond in its default order during training. Comparing IO on the two orders suggests to them a strong bias toward the first option. On crosswords they cannot conclude that AGoT is especially suited, since any sufficiently persistent framework might gain as much. LAAS assumes that gpt-4o-mini judges equivalence accurately. Like other iterative frameworks, AGoT re-reads its own responses, which in the worst case can amplify wrong answers, and its results depend strongly on the underlying model.

What you could try next

The paper suggests searching for better values of dmax, lmax and nmax, handing strategy and edge generation to specialized agents, trying other models, using fine-tuning or reinforcement learning to bias edge selection or the complexity check, and reducing hallucination. The code is the open-source multi-agent-llm package; its README example runs AGoT with max_depth = 1, max_num_layers = 3 and max_new_tasks = 3, and the repository holds the experimental setups, datasets and results.

Cite this paper

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

T. Pandey, A. Ghukasyan, O. Goktas and S. K. Radha, “Adaptive Graph of Thoughts: Test-Time Adaptive Reasoning Unifying Chain, Tree, and Graph Structures,” arXiv:2502.05078 (2025).