ToolSpace:为长程智能体扩展以工具为中心的环境合成

·

研究论文 · 2026/11/04

ToolSpace 是一个以工具为中心的框架,用于为长程智能体合成可执行环境。与现有以数据为中心的方法不同,它从真实 MCP 服务和开放智能体语料的执行轨迹中,利用确定性规则挖掘工具间的数据、状态和重试依赖,构建加权工具组合图并聚类成环境。仅对状态变更环境合成数据库,查询和无状态工具则重放记录返回。通过带回滚的状态感知随机游走和基于断言的检查生成自然语言任务,仅保留可从初始状态成功重放的样本。在 AutomationBench 和 tau3-Bench Banking 上生成的更难 Pro 版本使 7 个前沿模型得分最多下降 38.2 分;在七个长程工具使用基准上,ToolSpace 将 Qwen3.6-35B-A3B 平均分从 23.0 提升至 41.0(RL 后 43.2),GLM-5.2 从 44.6 提升至 56.6,与 Claude Opus 5 相当。消融实验表明执行见证的边明显优于 LLM 判断的边,且性能随数据和环境规模持续提升。

ToolSpace 通过以工具为中心的环境合成方法,解决了现有方法中工具接口不真实、组合缺乏执行基础、任务跨环境少的问题,显著提升了长程智能体的性能,并生成了更具挑战性的基准,对智能体工具使用研究具有重要价值。

Large language models are deployed as long-horizon agents that compose diverse tools across MCP services into executable workflows. Existing MCP environment-scaling methods are data-centric: they first synthesize a database and scenario, then derive tools and tasks from them. As a result, tool interfaces may not match real ones, tool compositions are not grounded in execution, and tasks rarely span more than one environment. We propose ToolSpace, a tool-centric framework that reverses this order. ToolSpace mines data, state, and retry dependencies from adjacent calls in execution traces of real MCP services and open agent corpora, using deterministic rules rather than LLM judgment, and clusters the resulting weighted tool-composition graph into environments. Databases are synthesized only for state-mutating environments, while query and stateless tools replay recorded returns. ToolSpace then performs state-aware random walks with rollback and decompiles each chain into a natural-language task with assertion-based checks, keeping only samples that replay successfully from the initial state. Applied to AutomationBench and tau3-Bench Banking, the pipeline produces harder Pro versions on which 7 frontier models drop by up to 38.2 points. Across seven long-horizon tool-use benchmarks, ToolSpace raises Qwen3.6-35B-A3B from 23.0 to 41.0 average score (43.2 with RL) and GLM-5.2 from 44.6 to 56.6, on par with Claude Opus 5. Ablations show that execution-witnessed edges clearly outperform LLM-judged ones, and performance keeps improving with data and environment scale.

阅读原文

参与讨论