GAP: Graph-Based Agent Planning with Parallel Tool Use and Reinforcement Learning

Jiaqi Wu, Qinlao Zhao, Zefeng Chen, Kai Qin, Yifei Zhao +2 more
10/29/2025
cs.AIcs.CL

Official code: WJQ7777/Graph-Agent-Planning (53 stars, last commit 2025-11-09).

Abstract

Autonomous agents powered by large language models (LLMs) have shown impressive capabilities in tool manipulation for complex task-solving. However, existing paradigms such as ReAct rely on sequential reasoning and execution, failing to exploit the inherent parallelism among independent sub-tasks. This sequential bottleneck leads to inefficient tool utilization and suboptimal performance in multi-step reasoning scenarios. We introduce Graph-based Agent Planning (GAP), a novel framework that explicitly models inter-task dependencies through graph-based planning to enable adaptive parallel and serial tool execution. Our approach trains agent foundation models to decompose complex tasks into dependency-aware sub-task graphs, autonomously determining which tools can be executed in parallel and which must follow sequential dependencies. This dependency-aware orchestration achieves substantial improvements in both execution efficiency and task accuracy. To train GAP, we construct a high-quality dataset of graph-based planning traces derived from the Multi-Hop Question Answering (MHQA) benchmark. We employ a two-stage training strategy: supervised fine-tuning (SFT) on the curated dataset, followed by reinforcement learning (RL) with a correctness-based reward function on strategically sampled queries where tool-based reasoning provides maximum value. Experimental results on MHQA datasets demonstrate that GAP significantly outperforms traditional ReAct baselines, particularly on multi-step retrieval tasks, while achieving dramatic improvements in tool invocation efficiency through intelligent parallelization. The project page is available at: https://github.com/WJQ7777/Graph-Agent-Planning.

View on arXivView PDF

Code Implementations(1)

537Roff, ShellOct 11, 202511 months ago

Cite this paper

@article{wu2025gap,
  title  = {GAP: Graph-Based Agent Planning with Parallel Tool Use and Reinforcement Learning},
  author = {Jiaqi Wu and Qinlao Zhao and Zefeng Chen and Kai Qin and Yifei Zhao and Xueqian Wang and Yuhang Yao},
  year   = {2025},
  eprint = {2510.25320},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.25320v1}
}

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

Discussion