EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesis

Xiaoshuai Song, Haofei Chang, Guanting Dong, Yutao Zhu, Zhicheng Dou +1 more
1/9/2026
cs.CLcs.AIcs.LG

Official code: RUC-NLPIR/EnvScaler (190 stars, MIT, last commit 2026-02-12).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

The official implementation of "EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesis".

19014PythonJan 9, 20268 months agoMIT
agentllmstool-use

Similar Papers

Cite this paper

@article{song2026envscaler,
  title  = {EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesis},
  author = {Xiaoshuai Song and Haofei Chang and Guanting Dong and Yutao Zhu and Zhicheng Dou and Ji-Rong Wen},
  year   = {2026},
  eprint = {2601.05808},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.05808v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.05808.svg)](https://codeofpaper.com/paper/2601.05808)

Discussion