Abstract
Agentic reinforcement learning has significantly advanced the ability of large language models (LLMs) to reason through complex problems using external tools. However, existing approaches typically assume a fixed inventory of tools, limiting an agent's adaptability to new or evolving environments. AutoTool is a novel training framework designed to equip LLM agents with dynamic tool-selection capabilities throughout their reasoning trajectories. By combining embedding-anchored selection with a dual-phase reinforcement learning pipeline, AutoTool enables smaller models (7B–8B parameters) to dynamically select and utilize tools from a vast, evolving library—even tools they have never encountered during training.
The Problem: Domain Brittleness in Agentic LLMs
Current "agentic" LLMs are predominantly trained to operate a static set of tools, such as a specific calculator or a designated search API. While these models can achieve high proficiency with their assigned tools, they suffer from severe "domain brittleness." If a new tool is introduced or an API changes at inference time, these agents frequently fail. They have effectively memorized how to execute specific function calls rather than learning the underlying logic of tool selection.
In real-world applications, toolsets are inherently dynamic. A truly general-purpose agent must be capable of reading a new tool's documentation and deciding on the fly whether it is the appropriate utility for the current step in its reasoning process. AutoTool bridges this gap, transitioning models from "fixed-tool" memorizers to "dynamic-tool" reasoners capable of generalizing to unseen environments.
Methodology: How AutoTool Works
To achieve dynamic tool integration, the researchers introduce two primary methodological innovations:
1. Embedding-Anchored Tool Selection
Instead of training the model to predict a specific tool name—which inevitably fails for unseen tools—AutoTool generates a selection rationale alongside a predicted embedding anchor. This anchor is then compared against the vector embeddings of all available tool descriptions (acting as instruction manuals). The agent selects the tool whose description most closely aligns with its current reasoning context. This architectural shift makes the agent fundamentally "tool-agnostic."
2. Dual-Phase Optimization Pipeline
AutoTool employs a two-stage training pipeline to stabilize reasoning and refine tool selection:
- Phase I (Trajectory Stabilization): The model undergoes Supervised Fine-Tuning (SFT) and standard Reinforcement Learning (RL) to master the fundamental rhythm of agentic reasoning: Think → Select Tool → Use Tool → Integrate Result.
- Phase II (Tool-Selection Refinement): To refine multi-step tool selection, the framework utilizes KL-regularized Plackett–Luce (PL) Ranking. Instead of merely rewarding the final answer, AutoTool treats tool selection as a ranking problem across multiple reasoning rollouts. By rewarding the model for choosing tool sequences that yield both correct answers and high-quality rationales, the framework aligns the model’s internal policy with reward-consistent tool preferences.
A 200k-Scale Dynamic Tool Dataset
To support this advanced training regimen, the authors curated a massive dataset specifically designed for dynamic tool use.
- Scale and Diversity: The dataset contains 200,000 instances spanning over 1,000 tools and 100 task types, covering mathematics, science, code generation, and multimodal reasoning.
- Explicit Rationales: Crucially, every instance includes an explicit rationale explaining why a specific tool was chosen. This provides the model with rich, step-by-step supervision for its decision-making process.
Key Findings and Results
The researchers trained two base models—Qwen3-8B and Qwen2.5-VL-7B—using the AutoTool framework and evaluated them across ten diverse benchmarks (including AIME24/25, HotpotQA, and new multimodal "V-benchmarks").
- Outperforming the Giants: Despite their smaller parameter counts, the AutoTool-enhanced 8B and 7B models consistently outperformed state-of-the-art models, including GPT-4o and DeepSeek-R1-Distill-Qwen-14B, particularly in complex search and multimodal tasks.
- Significant Performance Gains: Compared to standard RL baselines like GRPO, AutoTool yielded average performance gains of 6.4% in math and science reasoning, 4.5% in search-based QA, 7.7% in code generation, and 6.9% in multimodal understanding.
- Zero-Shot Tooling: In zero-shot evaluations where the model was restricted entirely to unseen tools, AutoTool maintained high performance. This proves the model learned a generalizable strategy for tool selection rather than merely memorizing a predefined list.
- The Power of Rationales: Ablation studies revealed that requiring the model to generate a rationale before selecting a tool increased successful tool executions by 13.5%. Reasoning explicitly about the choice makes the subsequent action significantly more reliable.
Limitations and Future Directions
While AutoTool demonstrates remarkable generalization capabilities, the authors note a few areas for future improvement:
- Inference Overhead: Although the vector operations for tool matching are computationally lightweight, the long Chain-of-Thought (CoT) trajectories required for complex reasoning still consume significant compute resources.
- Complex Tool Compositions: The model excels at selecting the right tool for individual steps, but extremely long sequences of multi-tool interactions (e.g., 10+ turns) remain a challenge for trajectory stability.
Future research will explore scaling the framework to "web-scale" toolsets and investigating how AutoTool can facilitate multi-agent collaboration, where different agents operate with asymmetric access to various tool libraries.
Summary updated