VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Use

Dongfu Jiang, Yi Lu, Zhuofeng Li, Zhiheng Lyu, Ping Nie, Haozhe Wang, Alex Su, Hui Chen, Kai Zou, Chao Du, Tianyu Pang, Wenhu Chen · OpenReview

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) has demonstrated success in enhancing LLM reasoning capabilities, but remains limited to single-turn interactions without tool integration. While recent Agentic Reinforcement Learning with Tool use (ARLT) approaches have emerged to address multi-turn tool interactions, existing works develop task-specific codebases that suffer from fragmentation, synchronous execution bottlenecks, and limited extensibility across domains. We introduce VerlTool, a unified and modular framework that addresses these limitations through systematic design principles. VerlTool provides four key contributions: (1) upstream alignment with VeRL ensuring compatibility and simplified maintenance, (2) unified tool management via standardized APIs supporting diverse modalities including code execution, search, SQL databases, and vision processing, (3) asynchronous rollout execution achieving near 2$\times$ speedup by eliminating synchronization bottlenecks, and (4) comprehensive evaluation demonstrating competitive performance across 6 ARLT domains. Our framework formalizes ARLT as multi-turn trajectories with multi-modal observation tokens (text/image/video), extending beyond single-turn RLVR paradigms. We train and evaluate models on mathematical reasoning, knowledge QA, SQL generation, visual reasoning, web search, and software engineering tasks, achieving results comparable to specialized systems while providing unified training infrastructure. The modular plugin architecture enables rapid tool integration requiring only lightweight Python definitions, significantly reducing development overhead and providing a scalable foundation for tool-augmented RL research.

Introduction: Breaking LLMs Out of the "Brain in a Vat"

While Large Language Models (LLMs) have become expert reasoners, they often function as a "brain in a vat"—locked in self-contained simulations without the ability to interact with the external world. This isolation often leads to "overthinking" or hallucinations because the model cannot verify its claims against a ground-truth environment, such as a code interpreter or a search engine.

Existing attempts to bridge this gap via Agentic Reinforcement Learning with Tool use (ARLT) suffer from three major systemic bottlenecks: fragmentation of codebases across tasks, synchronous inefficiencies where GPU clusters sit idle waiting for slow tool responses, and limited multi-modal support for tools that output images or videos. VerlTool is designed to overcome these barriers by providing a unified, high-efficiency framework for training LLMs as autonomous agents.

System Architecture and Methods

VerlTool is built upon the veRL library and introduces a disaggregated architecture that separates the Verl Workflow (handling RL logic like PPO or GRPO) from the Tool Server.

VerlTool's disaggregated architecture separates the RL workflow from the tool server, enabling modular tool management and stateful environment handling.

Key Innovations

  • Disaggregated Architecture: The RL side focuses on training while the Tool Server manages sandboxed environments (Docker/Kubernetes) via a standardized API.
  • Asynchronous Rollout Design: Instead of waiting for an entire batch of trajectories to finish tool calls, VerlTool allows each trajectory to interact with the tool server independently. This eliminates "idle bubbles" in GPU utilization, yielding a near 2× speedup in training throughput.
  • Modular Plugin System: Adding a new tool only requires defining a lightweight Python class. The framework handles action parsing, state management, and observation routing.
  • On-Policy Tokenization: To maintain training stability, model actions and tool observations are tokenized separately before concatenation, preventing the merging of boundary symbols into invalid tokens.
Comparison between synchronous and asynchronous rollout execution, highlighting the time saved by eliminating synchronization bottlenecks.

Evaluation Across Diverse Domains

The framework was evaluated across six distinct Agentic RL domains, utilizing a mix of established benchmarks and task-specific datasets:

  • Math: Evaluated on MATH-500, GSM8K, and AIME24; the VT-Math agent reached a 62.2% average across benchmarks.
  • Knowledge QA: Indexed a 2018 Wikipedia dump for benchmarks like NQ and HotpotQA.
  • SQL: Evaluated on Spider-1.0 using the SkyRL-SQL training set.
  • Visual Reasoning: Evaluated on V* Bench, achieving 82.7% accuracy.
  • Web Search: Evaluated on GAIA and HLE benchmarks.
  • Software Engineering: Built on the R2E-Gym scaffold and evaluated on SWE-Verified, successfully handling trajectories with over 100 interaction turns.

Key Insights and Emergent Behaviors

VerlTool's unified training revealed several critical insights into agentic behavior. First, models require specific "tool usage incentives" in the reward function; without them, models often stop using tools entirely after a few RL steps. Second, tool dynamics vary by task: in SQL, models eventually learn to bypass the executor for simple queries as they memorize logic, whereas in Search, tool usage increases as models learn to rely on iterative retrieval for information-rich results.

Most notably, models trained with VerlTool began exhibiting sophisticated agentic traits such as self-correction (fixing bugs after tracebacks), backtracking (reversing incorrect reasoning paths), and strategic search (refining queries upon failure).

Limitations and Future Work

While VerlTool provides a scalable foundation, challenges remain in reward engineering, as designing the optimal balance between tool use and internal reasoning is still a manual process. Additionally, the computational overhead of running hundreds of sandboxed containers requires significant resource management. Future research will explore "generalist" agents capable of choosing between a vast library of tools for a single complex prompt.

Summary updated

BibTeX
@article{jiang2026verltool,
  author = {Dongfu Jiang and Yi Lu and Zhuofeng Li and Zhiheng Lyu and Ping Nie and Haozhe Wang and Alex Su and Hui Chen and Kai Zou and Chao Du and Tianyu Pang and Wenhu Chen},
  title = {{VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Use}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}

Loading related content...

Figure