Overview
Large Language Models (LLMs) are increasingly deployed as agents capable of using external tools (APIs) to solve multi-step problems. The current dominant paradigm, ReAct, relies on a step-by-step "think-and-act" loop. However, this reactive approach often falls into local optimization traps, struggling with complex dependencies and failing to exploit parallel execution.
This research introduces a Planner-centric framework that decouples planning from execution. By generating a global Directed Acyclic Graph (DAG) of tool calls and optimizing it via reinforcement learning, the system achieves state-of-the-art performance on complex tasks while significantly reducing latency and inference costs.
The Problem with Reactive Agents
Reactive models like ReAct process tasks linearly. Because they only look one step ahead, they are prone to "hallucination loops" and redundant work when faced with nested logic or high-dimensional toolsets. Furthermore, sequential execution is inherently slow; reactive models cannot easily identify which tools can be run simultaneously. As tasks scale in complexity, these frameworks become computationally expensive and fragile.
Methods: Decoupling Thinking from Doing
The proposed framework shifts the burden of reasoning to a dedicated planning stage, followed by a structured execution phase.
1. DAG-Based Planning
Instead of a list of instructions, the model generates a DAG where nodes represent specific tool calls and edges represent data dependencies (e.g., the output of a "flight search" tool feeding into a "hotel booking" tool). This structure inherently supports parallel execution for independent nodes.
2. Two-Stage Training and Execution
To train the planner, the authors utilize a two-stage approach:
- Supervised Fine-Tuning (SFT): A teacher model (DeepSeek-V3) reverse-engineers complex queries from existing workflows to create a high-quality starting dataset.
- Group Relative Policy Optimization (GRPO): Reinforcement Learning is used to refine the model's structural logic. A hierarchical reward function penalizes errors like cycles or disconnected nodes while rewarding "Planning Fidelity"—how closely the generated DAG matches the optimal solution.
Key Results: Outperforming Proprietary Giants
The framework was evaluated on ComplexTool-Plan, a new benchmark featuring over 4,500 APIs, and StableToolBench for end-to-end stability.
Superior Planning Accuracy
The most significant gains were observed in "Hard" tasks involving deep dependencies. The fine-tuned Qwen3-8B (SFT+RL) model achieved a 0.319 DAG Exact Match Acc., vastly outperforming proprietary models like GPT-4o (0.098) and Claude-3.7 (0.106). While SFT helps with tool selection, the RL phase was found to be critical for correctly mapping the edges (dependencies) between those tools.
Efficiency and Parallelism
By identifying independent tasks within the DAG, the framework allows for massive parallelism. On average, the system required only 2.29 inference steps per task, compared to 4-5+ steps for traditional sequential models. This makes the system not only more accurate but also faster and cheaper to operate.
Insights on Model Scaling
The research highlights a "resilience gap" between model sizes. While smaller models (1.7B) saw performance drops of over 70% when moving from easy to hard tasks, the 8B parameter models remained remarkably stable. This suggests that a certain threshold of parameters is necessary to maintain global structural awareness in complex reasoning tasks.
Conclusion and Future Work
By moving from local, reactive steps to global, graph-based planning, this framework sets a new standard for tool-augmented LLMs. While the current "plan-then-execute" model is highly efficient, it is non-iterative; it cannot yet "re-plan" if a tool returns an unexpected error mid-execution. Future iterations may explore a hybrid approach, combining global DAG planning with lightweight reactive error correction to handle runtime surprises.
Summary updated