EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesis
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Function Calling | BFCL V3 | Overall Accuracy54.06 | 88 | |
| Interactive Tool-Use Agent Performance | tau2-Bench | Retail Performance Score49.1 | 84 | |
| Agent Performance | Tau-Bench | Retail Accuracy55.7 | 55 | |
| Function Calling | BFCL Multi-Turn v3 | Overall Accuracy41.88 | 41 | |
| Agent Performance | ACEBench Agent | Agent Score70 | 36 | |
| Agent Capability Evaluation | ACEBench Agent | Multi-Step Reasoning Score85 | 13 | |
| Agentic Workflow Success | τ2-bench | Airline Success Rate31.5 | 13 | |
| Agentic Tool-use | Tau-Bench | Retail Score53.62 | 13 | |
| Agentic Task Success | MCP-Universe | Location Success Score0.00e+0 | 11 | |
| Environment Synthesis | Programming-based Environments | Environment Count191 | 6 |