EnvScaler:通过程序合成实现LLM代理的可扩展工具交互环境
EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesis
AI总结:
本文提出EnvScaler框架,通过程序合成构建大量工具交互环境,用于LLM代理的监督微调和强化学习,提升其在复杂多轮多工具交互环境中的任务解决能力。
摘要:
大型语言模型(LLMs)被期望训练为在各种现实环境中的代理,但这一过程依赖于丰富多样的工具交互沙盒。然而,访问真实系统往往受限;LLM模拟环境易产生幻觉和不一致;手动构建的沙盒难以扩展。本文提出EnvScaler,一种通过程序合成实现可扩展工具交互环境的自动化框架。EnvScaler包含两个组件。首先,SkelBuilder通过主题挖掘、逻辑建模和质量评估构建多样化的环境骨架。然后,ScenGenerator为每个环境生成多个任务场景和基于规则的轨迹验证函数。使用EnvScaler,我们合成了191个环境和约7K个场景,并应用于监督微调(SFT)和强化学习(RL)以Qwen3系列模型。在三个基准测试中,EnvScaler显著提高了LLM在涉及多轮、多工具交互的复杂环境中的任务解决能力。我们在此发布代码和数据:https://github.com/RUC-NLPIR/EnvScaler。
英文摘要:
Large language models (LLMs) are expected to be trained to act as agents in various real-world environments, but this process relies on rich and varied tool-interaction sandboxes. However, access to real systems is often restricted; LLM-simulated environments are prone to hallucinations and inconsistencies; and manually built sandboxes are hard to scale. In this paper, we propose EnvScaler, an automated framework for scalable tool-interaction environments via programmatic synthesis. EnvScaler comprises two components. First, SkelBuilder constructs diverse environment skeletons through topic mining, logic modeling, and quality evaluation. Then, ScenGenerator generates multiple task scenarios and rule-based trajectory validation functions for each environment. With EnvScaler, we synthesize 191 environments and about 7K scenarios, and apply them to Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) for Qwen3 series models. Results on three benchmarks show that EnvScaler significantly improves LLMs' ability to solve tasks in complex environments involving multi-turn, multi-tool interactions. We release our code and data at https://github.com/RUC-NLPIR/EnvScaler.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。