TL;DR
The paper introduces RETO (Robust and Efficient Tool Orchestration), a framework that decouples global tool planning from local execution by organizing tools into coarse, ordered layers and fixing execution errors locally. This approach allows small, non-tool-tuned language models (SLMs) to match or exceed the tool-use performance of larger proprietary models while slashing token consumption by up to 85%.
What Problem Does This Paper Address?
As LLM-based agents are increasingly deployed to solve complex, real-world tasks, they must coordinate multiple external APIs (tools) over long horizons. However, current agent architectures struggle with tool orchestration—the ordering and dependency management of these tools.
Existing approaches generally fall into two flawed paradigms:
- Step-wise/Reactive (e.g., ReAct): The agent decides on actions incrementally. Without a global view, early mistakes easily cascade into unrecoverable states, format collapse, or hallucinations.
- Plan-then-Execute: The agent generates a rigid, complete plan upfront. This is brittle to runtime deviations like schema mismatches or empty API responses.
These issues are severely amplified in Small Language Models (SLMs), which have limited context capacity and weaker reasoning capabilities. As shown in Figure 1, a premature tool invocation by an SLM can irreversibly contaminate the rest of the execution trace.
Methods
RETO addresses these challenges by separating global structure from local execution through three key stages:
- Learn (Layer Execution Sketch): Instead of predicting a complex, pairwise dependency graph, a lightweight external neural network predicts a coarse execution layer for each candidate tool based on the user query and tool descriptions. Tools assigned to the same layer have no mutual dependencies and can be executed in parallel.
- Execute (Context-Constrained Invocation): The agent executes tools layer by layer. Crucially, the SLM is only shown the schemas of tools in the current layer and the outputs from prior layers. This keeps the prompt context compact and prevents out-of-turn tool calls by design.
- Reflect and Repair (Local Correction): To prevent runtime errors from polluting the context, RETO wraps each tool call in a local repair loop. A Schema Gate validates arguments against the tool's JSON schema. If validation fails, it triggers a two-tier repair mechanism (deterministic edits first, falling back to an LLM-driven fix) before the API is ever called.
Datasets
The authors evaluated RETO on StableToolBench, a stable benchmark derived from ToolBench that uses a caching system and API simulator to ensure reproducibility. The evaluation spans three generalization dimensions:
- Inst. (Unseen instructions, same tools)
- Tool (Unseen tools, same category)
- Cat. (Unseen tools, unseen category)
Tasks are further categorized by complexity from single-tool (I1) to multi-tool collections (I3).
Key Insights and Ideas
- Coarse Guidance is Enough: Precise, fine-grained dependency graphs are expensive to generate and brittle to maintain. A simple, layered execution sketch provides enough global scaffolding to guide the agent safely.
- Context Reduction Empowers SLMs: By restricting the tool schemas visible to the model at any given step, RETO drastically reduces the action space and reasoning burden, allowing off-the-shelf SLMs to perform reliably without expensive fine-tuning.
- Keep Failures Local: Traditional agents retry entire trajectories when an error occurs. RETO isolates argument and API errors at the individual tool-call level, keeping the main dialogue trace clean and avoiding global re-planning.
Key Results
RETO was tested across various model scales, notably lifting non-tool-tuned models to competitive heights:
- Performance Boost: On Qwen2.5-7B, RETO achieved a Solvable Pass Rate (SoPR) of 49.5%, a massive leap from ReAct (9.5%) and DFSDT (12.2%). This performance actually surpassed the tool-tuned ToolLLaMA-7B model and matched proprietary GPT-3.5 baselines.
- High Efficiency: RETO reduced total token consumption by 69.6% to 84.8% and cut down execution steps by 40.5% to 69.6% compared to the DFSDT baseline.
- Model Scalability: Ablation studies showed that RETO remains highly functional on models as small as 1.5B parameters, making it an excellent candidate for cost-effective, edge-device deployment.
Limitations and Future Work
While highly effective for localized errors, RETO can struggle when a failure requires a global revision—for instance, if an early high-level decision was fundamentally wrong and the agent needs to backtrack across layers rather than just fix a local argument.
Additionally, the framework relies entirely on the quality of the provided tool documentation. The authors note that integrating dynamic tool retrieval and document refinement directly into the orchestration loop is a promising avenue for future research.
Summary updated