Skip to content
RobotWorld
Back to Papers

PAPER DEEP DIVE

自动驾驶autonomous driving数据集

ToolVerse: Unlocking Massive Environments and Long-Horizon Tasks for Agentic Reinforcement Learning

While LLM agents demonstrate strong reasoning abilities in compact and well-defined scenarios, they struggle to maintain robustness and effectiveness when faced with large-scale, diverse, and dynamic real-world environments that demand seamless tool integration. To address this gap, we introduce ToolVerse, a comprehensive framework that scales up agentic RL environments and enables agents to perform complex long-horizon reasoning in Tool-Integrated Reasoning (TIR) tasks. First, ToolVerse automatically builds the massive executable agent training environments from nearly 400 real-world Model Context Protocols (MCPs) that contain about 4500 tools. Second, we propose a task design strategy based on a tool dependency graph, utilizing Dynamic Unlocking Sampling Algorithm to generate long-horizon tasks, and produce GUST (Graph Unlocking Sampling Tasks) dataset. Third, to alleviate the credit assigment problem in long-horizon agentic RL, we propose a fine-grained Turn-Aware Relative Advantage algorithm. We conduct extensive Agentic RL training using ToolVerse and evaluate our framework on serveral agentic benchmarks. Experimental results demonstrate that our framework significantly strengthens LLMs' capabilities in long-horizon tool use, achieving a marked performance boost and showcasing robust reasoning within dynamic environments.

Shuaiyu Zhou, Fengpeng Yue, Zengjie Hu, Yuanzhe Shen, Chenyang Zhang, feng hong, Cao Liu, Ke ZengJuly 17, 20266 min read
中文

Paper: ToolVerse: Unlocking Massive Environments and Long-Horizon Tasks for Agentic Reinforcement Learning

Authors: Shuaiyu Zhou, Fengpeng Yue, Zengjie Hu, Yuanzhe Shen et al. (Meituan LongCat Interaction Team / Peking University / Fudan University / Wuhan University)

Source: arXiv:2607.15660

ToolVerse scales Agentic RL across three dimensions: automatically building executable environments from 422 real MCP environments (~4438 tools), generating long-horizon tasks via a tool dependency graph + Dynamic Unlocking Sampling algorithm (GUST dataset), and proposing Turn-Aware Relative Advantage (TARA) to solve the credit assignment problem in multi-turn interactions.

1. Background and Motivation

LLMs as autonomous agents show promise in interacting with tools and environments to accomplish complex tasks. Combined with Agentic RL, LLMs develop long-horizon reasoning and sequential decision-making. However, developing agentic systems faces three challenges:

  • Insufficient environment diversity: existing Agent RL environments are typically limited to single or few tools (search engines, code interpreters), lacking complexity for long-horizon multi-turn tool integration.
  • Difficulty of long-horizon task design: designing multi-turn tasks across multiple integrated tools is inherently hard, requiring each action to be informed by prior steps.
  • Credit assignment difficulty: sparse terminal rewards cannot provide meaningful advantage estimates for individual actions in long trajectories, causing high policy gradient variance.
ToolVerse framework

Figure 1: ToolVerse framework overview. Step 1: Scaling executable agent environments; Step 2: Graph-based long-horizon task synthesis; Step 3: Turn-Aware Relative Advantage estimation.

2. Scaling Executable Agent Environments

ToolVerse sources JSON tool definitions from open-source and proprietary repositories, developing an automated pipeline to convert them into executable MCP tools. Only toolsets forming closed loops (passing syntax validation and unit tests) are retained, yielding 422 executable tool environments with ~4438 tools. Toolsets are strictly filtered to contain 5–20 tools for appropriate reasoning complexity.

Tool semantic breadth

Figure 3: Tool distribution spans eight macro-domains and numerous specific entities, illustrating real-world scenario coverage.

3. Graph-Based Long-Horizon Task Synthesis

3.1 Tool Dependency Graph (TDG) Construction

A TDG $\mathcal{G}=(\mathcal{V},\mathcal{E})$ is defined per scenario, with nodes as tools and edges capturing dependencies. The LLM infers dependencies on two principles: (1) an edge $T_A\to T_B$ if $T_A$'s output is required as $T_B$'s input; (2) an edge if $T_B$ can only be invoked after $T_A$ in the logical sequence.

3.2 Dynamic Unlocking Sampling (DUS)

The algorithm maintains a ready queue $\mathcal{Q}\subseteq\mathcal{V}$ (zero in-degree tools), ensuring high-dependency tasks are "locked" until prerequisites complete. At each step $t$, a subset $S_t\subseteq\mathcal{Q}$ is sampled, and after execution, successor in-degrees are updated: $d_{\text{in}}(v)\leftarrow d_{\text{in}}(v)-1$. This topological progression induces a curriculum of increasing complexity:

$$T=[S_{1},S_{2},\dots,S_{m}], \quad k=\min(|\mathcal{Q}|,N)$$

3.3 Inverse Context Reconstruction

After DUS samples a dependency-compatible tool skeleton, arguments are instantiated in topological order against a mock database to obtain an executable Golden Trace. An LLM then converts each Golden Trace into a user-facing task, verified via LangGraph replay and Pass@8 filtering.

4. Turn-Aware Relative Advantage (TARA)

TARA overview

Figure 2: Turn-Aware Relative Advantage estimation. For each turn in a multi-turn trajectory, rule-based validation is performed, the normalized advantage is computed against the group distribution at that turn, and propagated to all tokens within the turn.

Standard GRPO normalizes rewards across the entire trajectory, assigning a single scalar advantage to all tokens. In long-horizon tool use, this coarse feedback cannot distinguish correct intermediate steps from fatal later errors. TARA decomposes turn-level advantage into Local (immediate correctness) and Future (downstream impact).

4.1 Binary Reward

$$r_{i,t}=\begin{cases}1.0,&\text{if }G_{t}\subseteq_{\mathrm{dict}}A_{i,t},\\0.0,&\text{otherwise}.\end{cases}$$

4.2 Local Advantage

$$A_{i,t}^{\text{local}}=\frac{r_{i,t}-\mu_{t}^{\text{local}}}{\sigma_{t}^{\text{local}}+\epsilon}$$

4.3 Gated Future Advantage

A consistency gate $\delta_{i,t}=r_{i,t}$ ensures future rewards are only credited if the current step is valid:

$$V_{i,t}=\delta_{i,t}\cdot\sum_{k=0}^{T-t}\gamma^{k}r_{i,t+k+1}, \quad A_{i,t}^{\text{future}}=\frac{V_{i,t}-\mu_{t}^{\text{future}}}{\sigma_{t}^{\text{future}}+\epsilon}$$

4.4 Total Advantage Fusion

$$A_{i,t}^{\text{total}}=A_{i,t}^{\text{local}}+\lambda\cdot A_{i,t}^{\text{future}}$$

with $\lambda=0.5$ by default.

5. Method Architecture Flow

flowchart TD
    subgraph S1["Step 1: Scale Environments"]
        R["422 MCP environments\n~4438 tools"] --> AUTO["Automated conversion\nJSON -> executable MCP"]
        AUTO --> ENV["Executable environments\n(5-20 tools each)"]
    end
    subgraph S2["Step 2: Task Synthesis"]
        ENV --> TDG["Tool Dependency Graph G=(V,E)"]
        TDG --> DUS["Dynamic Unlocking Sampling\nready queue Q (zero in-degree)"]
        DUS --> TRACE["Golden Trace\n(topological instantiation)"]
        TRACE --> FILTER["Pass@8 filtering\n(LangGraph verification)"]
        FILTER --> GUST["GUST dataset"]
    end
    subgraph S3["Step 3: TARA Training"]
        GUST --> ROLL["K rollouts"]
        ROLL --> REWARD["Per-turn binary reward\nr_{i,t}"]
        REWARD --> AL["Local advantage A^local"]
        REWARD --> AF["Gated future advantage A^future"]
        AL --> TOTAL["Total advantage A^total\n= A^local + lambda * A^future"]
        AF --> TOTAL
        TOTAL --> UPDATE["Policy gradient update"]
    end

6. GUST Dataset

GUST dataset stats

Figure 4: GUST dataset statistical distribution: Pass@K score, graph complexity, tools per environment, tasks per data item.

Per toolset, three distinct dependency graphs are generated, with five tasks sampled per graph. Pass@8 filtering: a teacher agent (Qwen3-32B) attempts each task up to 8 times; at least one trajectory with trace_score=1 is required to retain the task. Maximum 10 distinct tasks per toolset. Data items contain 3–7 tasks; most environments have 7–13 tools.

7. Experimental Results

ModelBFCL Overallτ²-Bench OverallACEBench Overall
Qwen3-4B baseline25.3821.0641.28
+ ToolVerse (GRPO)28.50 (+3.12)25.77 (+4.71)48.34 (+7.06)
+ ToolVerse (TARA)28.25 (+2.87)26.83 (+5.77)55.00 (+13.72)
Qwen3-8B baseline28.8827.8746.51
+ ToolVerse (GRPO)35.25 (+6.37)30.10 (+2.23)56.66 (+10.15)
+ ToolVerse (TARA)37.50 (+8.62)32.37 (+4.50)61.66 (+15.15)

ToolVerse consistently achieves significant gains across all model scales, with TARA achieving the best overall results. On ACEBench-Agent, TARA lifts Qwen3-8B from 46.51% to 61.66% (+15.15), with the most pronounced improvements on multi-turn and multi-step subtasks — where the credit assignment problem is most acute.

Training curves

Figure 5: Training curves. The TARA-enhanced model shows continuous improvement in Trace Score and Val Score, with faster and more stable convergence.

Ablation Study

MethodBFCL-v3τ²-Bench
Qwen3-8B baseline28.88%27.87%
+ GRPO35.25%30.10%
Turn-local only33.75%27.33%
Turn-local + future w/o gate35.00%28.17%
Full TARA37.50%32.37%

Full TARA is best. Local-only credit is insufficient for long-horizon optimization; ungated future credit also underperforms, confirming the gate's importance for filtering noisy future signals. Environment scaling from 100 to 422 environments raises BFCL-v3 from 35.00% to 37.50% and τ²-Bench from 27.33% to 32.37%.

8. Conclusion

ToolVerse advances agentic RL by scaling executable environments and synthesizing long-horizon tasks via graph-based dynamic unlocking sampling. The framework auto-builds environments from 422 real MCP environments (~4438 tools), generates the GUST dataset via TDG + DUS, and proposes the Turn-Aware Relative Advantage (TARA) algorithm to solve credit assignment in multi-turn tool interactions. Experiments demonstrate advanced performance on complex tool-use benchmarks, with TARA consistently outperforming naive GRPO. Future work will expand task generation methods for simulated and real-world environments and explore more scalable, fine-grained credit assignment strategies.

Related Papers

SparseDrive: End-to-End Autonomous Driving via Sparse Scene Representation

SparseDrive: End-to-End Autonomous Driving via Sparse Scene Representation

SparseDrive unifies detection, tracking, online mapping, prediction, and planning with sparse scene representation, using a symmetric perception module, a parallel motion planner, and collision-aware rescoring for safe planning.

自动驾驶端到端稀疏表示May 30, 2024
HyWorldVLA: A Vision-Language-Action Model with Hybrid World Modeling for Autonomous Driving

HyWorldVLA: A Vision-Language-Action Model with Hybrid World Modeling for Autonomous Driving

Vision-Language-Action (VLA) models augmented with world modeling represent a promising paradigm for end-to-end autonomous driving. While pixel-level future prediction enables fine-grained spatiotemporal reasoning, it compromises robustness in noisy driving scenarios. Conversely, latent-based world models alleviate this sensitivity but often incur limited interpretability and representational degradation due to absent pixel-level grounding. To reconcile this trade-off, we propose HyWorldVLA, a hybrid world-VLA framework that unifies pixel-level supervision and latent representation learning. In the pre-training stage, HyWorldVLA predicts video latents encoded by a pre-trained video VAE, while simultaneously reconstructing video frames to provide precise pixel-level grounding. During the subsequent co-fine-tuning phase, the model exclusively predicts latent features, which are fed into an action expert to generate trajectories. Extensive experiments on NAVSIM v1 and v2 benchmarks demonstrate that HyWorldVLA significantly outperforms both pixel-based and latent-based world model baselines. Notably, we present the first comprehensive qualitative and quantitative analysis of world model noise robustness in autonomous driving, establishing a new benchmark for evaluating future architectures.

VLA世界模型自动驾驶Jul 23, 2026
Think at 5 Hz, Act at 20 Hz: Asynchronous Fast-Slow Vision-Language-Action Inference for Closed-Loop Driving

Think at 5 Hz, Act at 20 Hz: Asynchronous Fast-Slow Vision-Language-Action Inference for Closed-Loop Driving

Large language models bring instruction following and scene reasoning to end-to-end driving, but their inference latency collides with the control rate a vehicle requires. Existing closed-loop agents hide this gap by invoking the model on alternate simulation ticks and replaying the previous command in between, so half of all control outputs ignore the newest observations. We present a fast-slow architecture that removes this compromise. A frozen 7B vision-language backbone acts as the slow system, digesting navigation instructions and visual history at low frequency while exposing its per-layer key-value cache as a standing representation of the scene. A lightweight action expert acts as the fast system, attending to this cache and to the current camera frame at every simulation tick to regress waypoints in a single forward pass. Since the cache lags behind the world at deployment, we train the expert under randomized staleness, aligning training with asynchronous execution. On LangAuto-Short routes in CARLA, our system produces fresh control at every 50 ms simulation tick and lifts route completion from 37.0 to 94.0 over the frame-skipping baseline. A frame-skip ablation with the same expert separates the two factors at work: the expert raises the driving score on its own, while per-tick freshness raises completion from 82.1 to 94.0 and cuts red-light violations by a third. Trained on a single town, the expert transfers zero-shot to two unseen towns, holding 84-94% route completion where the baseline reaches 31-41%. It reduces open-loop waypoint error by nearly a factor of four compared to the backbone's own action head, at a per-tick model cost of 32 ms that is independent of history length on a single consumer GPU.

自动驾驶autonomous driving仿真Jul 17, 2026
AEGIS: Assay-Aware Protocol Validation and Runtime Monitoring for Open-Source Liquid Handling Robots

AEGIS: Assay-Aware Protocol Validation and Runtime Monitoring for Open-Source Liquid Handling Robots

Self-driving laboratories increasingly rely on low-cost liquid handlers such as the Opentrons OT-2, which ship without the pressure-based aspiration monitoring of Hamilton or Tecan systems and are typically run open-loop. Two failure modes go undetected: protocols that are syntactically valid but violate assay-specific invariants (e.g., tip reuse between a PCR template and a no-template control), and physical execution failures (partial dispense, air bubbles, missing tips) at runtime. We present AEGIS, a two-layer guardian for both. Layer 1 pairs a curated machine-readable assay rule database with an LLM that reasons over OT-2 Python code, reaching an adjusted F1 of 0.97 on a 24-protocol benchmark across five assay families and beating rules-only and LLM-only ablations across five backends; a free open-weight model ties the best proprietary one, so no paid API is required. Layer 2 fits a PCA world model to YOLO-cropped four-frame pipette trajectories; under a leakage-free leave-one-plate-out evaluation it reaches average precision 0.89 and operating-point F1 0.71 (AUROC 0.80), a deployment-faithful number that matches the live demonstration, and we characterize the small-pipette (p20) resolution limit (F1 0.47). A live demonstration on a physical OT-2 (five replicates per condition) catches planted no-tip failures deterministically and partial dispense on coloured dyes, with an always-VLM self-vote gate lifting partial-dispense recall to 5/5; transparent water is a principled limit of any front-view-only monitor, which AEGIS surfaces as low-confidence VLM reasoning rather than a wrong verdict. Cascade triage holds VLM cost near $1.63 per plate versus $10.33 for an always-VLM baseline. AEGIS is open source and, to our knowledge, the first system to unify pre-flight assay-aware validation with runtime visual monitoring for an open-source liquid handler.

自动驾驶autonomous driving场景生成Jul 17, 2026