TL;DR
Existing tool-using language agents follow rigid, sequential "think-act-observe" loops (e.g., ReAct), causing severe latency bottlenecks on tasks with independent sub-problems. GAP (Graph-based Agent Planning) trains a single LLM to decompose complex queries into dependency graphs (DAGs), enabling concurrent tool execution for independent subtasks alongside serial execution for dependent ones. Combined with a two-stage training recipe (SFT + Reinforcement Learning), GAP matches or beats state-of-the-art multi-hop QA baselines while slashing interaction turns by up to 33.4% and response length by up to 24.9%.
What Problem Does This Paper Address?
When an LLM agent tackles a multi-step question (such as "What occupation was shared by John Frankenheimer and Tiffanie DeBartolo?"), standard Tool-Integrated Reasoning (TIR) approaches invoke tools one at a time: search for Frankenheimer $\rightarrow$ read results $\rightarrow$ search for DeBartolo $\rightarrow$ read results $\rightarrow$ synthesize.
This sequential bottleneck has two main drawbacks:
- High latency and interaction overhead: Turns and execution time accumulate linearly with every query.
- Context bloat: Iterative reasoning steps produce bloated conversational contexts that increase deployment costs and exacerbate error propagation.
While Multi-Agent Systems (MAS) can run workers in parallel, they suffer from high communication overhead, brittle prompt-based coordination, and an inability to natively optimize coordination via gradient updates. GAP bridges this gap by teaching a single agent foundation model to perform explicit graph-based planning and adaptive parallel execution natively.
Methods
GAP structures agent planning and tool execution around a Directed Acyclic Graph (DAG) $G = (V, E)$, where each vertex $v_i$ is a subtask and each directed edge $(v_i, v_j)$ indicates that subtask $j$ depends on the output of subtask $i$.
The workflow operates in three main phases:
- Graph-based Planning: The model breaks the query into atomic sub-tasks, performs dependency analysis, and outputs an explicit DAG structure using structured XML tags (e.g.,
<plan>,<node id="..." depends="...">). - Level-wise Concurrent Execution: The graph is topologically sorted into execution levels ($L_0, L_1, \dots, L_k$). All subtasks within the same level $L_i$ share no mutual dependencies and are executed concurrently in a single batch (e.g., concatenating search queries with a
|delimiter). The model receives all aggregated observations before progressing to the next level. - Synthesis: The model reasons over the combined observations to output the final answer.
[Query]
│
┌───────┴───────┐
▼ ▼
[Subtask 1] [Subtask 2] <-- Level 0 (Parallel Execution)
│ │
└───────┬───────┘
▼
[Subtask 3] <-- Level 1 (Dependent Execution)
│
▼
[Answer]
Training Pipeline
- Cold Start (SFT): The authors generate synthetic reasoning trajectories using GPT-4o, filtered via strict criteria (requiring $\ge 3$ search actions, limiting sequence length to $\sim 2000$ tokens, and balancing parallel vs. sequential retrieval at a 6:4 ratio). A Qwen2.5-3B-Instruct model is fine-tuned on ~7,000 trajectories with observation masking.
- End-to-End Agentic RL: The model is further optimized using DAPO (Decoupled Advantage Policy Optimization) via the open-source VeRL framework. The reward function evaluates final answer exact match ($R_{\text{acc}} \in \{0, 1\}$), encouraging the model to balance parallel exploration against context-window efficiency.
Datasets
- Training / In-Domain:
- Synthetic training data (~7,000 trajectories) derived from Natural Questions (NQ) and HotpotQA.
- Evaluation Benchmarks:
- General Single-Hop QA: Natural Questions (NQ), TriviaQA, and PopQA.
- Multi-Hop QA (In-domain & Out-of-domain): HotpotQA, 2WikiMultiHopQA, Musique, and Bamboogle.
Key Insights and Ideas
- Native DAG Planning Beats Multi-Agent Overhead: Instead of spinning up separate orchestrator and worker agents, a single 3B model can be trained to represent dependency graphs and emit batch tool calls natively.
- Fewer Turns Mean Less Drift: Parallel sub-query issuance compresses multi-turn conversations into fewer interactions (typically $\le 2$ turns). This minimizes conversational noise, lowers the risk of context-window exhaustion, and leads to cleaner document synthesis.
- RL Optimizes Strategic Scheduling: While SFT teaches the graph grammar, outcome-based RL encourages the model to strategically determine when and how broadly to parallelize tool calls to maximize task success under practical context constraints.
Key Results
Evaluated on Qwen2.5-3B-Instruct against baselines including Search-R1, ZeroSearch, StepSearch, and AFM-RL:
- Accuracy Improvements: GAP outperforms the strongest multi-hop baseline by 0.9% on average across four multi-hop benchmarks (scoring 42.5% on HotpotQA, 41.7% on 2Wiki, and 43.8% on Bamboogle), and outperforms Search-R1 on single-hop tasks by 3.95%.
- Turn Reductions: On HotpotQA, GAP reduces interaction turns from 2.27 to 1.78 (a 21.6% reduction); on 2Wiki, turns drop from 3.05 to 2.03 (a 33.4% reduction). Most queries finish within 2 turns.
- Latency & Token Efficiency:
- Time cost: Reduced by 32.3% on HotpotQA (168s vs. 248s) and 21.4% on 2Wiki (206s vs. 262s).
- Response length: Reduced by 24.9% on HotpotQA (416 vs. 554 tokens) and 20.3% on 2Wiki (452 vs. 567 tokens).
- Cost-of-Pass: GAP achieves the frontier on the accuracy-cost Pareto curve, reaching higher accuracy at significantly lower overall compute/monetary cost.
Limitations and Future Work
- Binary RL Rewards: The current RL optimization relies exclusively on binary correctness ($score_{\text{answer}} \in \{0, 1\}$). The authors suggest that multi-objective rewards incorporating token budgets or execution costs could further improve efficiency.
- Scope of Tools: The experimental evaluation focuses predominantly on Wikipedia document retrieval (
search). Extending GAP to heterogeneous environments featuring calculators, Python interpreters, and live web APIs remains open for validation. - Model Scale: Experiments were conducted on a 3B parameter model; evaluating how DAG planning scales to 7B–70B foundation models is an area for future investigation.
Summary updated