Abstract
This paper introduces a scalable framework to automatically construct fully simulated, database-backed environments for training language agents. By leveraging a two-stage fine-tuning strategy on these diverse environments, the authors develop the AgentScaler model family (4B to 30B parameters), which achieves state-of-the-art function-calling performance among open-source models and rivals massive closed-source systems.
Introduction
For Large Language Models (LLMs) to act as useful agents, they need robust function-calling (tool-use) capabilities. To learn this, agents must interact with diverse environments. However, the field is bottlenecked by a scarcity of high-quality "agentic data"—trajectories of autonomous agents successfully executing tool calls. Currently, generating this data is difficult; researchers either use a "reverse paradigm" (generating user queries to match observed tool calls), which lacks realism, or a "forward paradigm" (simulating user-agent interactions), which typically requires manual environment construction. Because manual construction is unscalable, agents are often trained on a narrow set of scenarios. This paper addresses the challenge of automatically scaling up verifiable training environments to teach agents generalized, robust tool-use skills.
Methods
The authors propose a pipeline that shifts away from manual environment design toward automated environment scaling and agent experience learning. The process involves four key steps:
- Environment Build and Scaling: Every function call is treated as a
readorwriteoperation on an underlying database. Over 30,000 real-world APIs were collected, mapped by dependencies, and clustered into over 1,000 domains. LLMs then programmatically materialize these tools by generating database schemas and executable Python code. - Agentic Task Construction: User intents are simulated, and valid tool-call sequences are generated by traversing the tool dependency graph.
- Experience Collection & Filtering: Human-agent interactions are simulated to collect trajectories. Because the environment is a real database, data is filtered based on environment state alignment—verifying if the agent's write operations resulted in the correct final database state.
- Two-Stage Fine-Tuning: Models are trained in two phases: Stage 1 focuses on general domains for fundamental logic, while Stage 2 specializes the agent in specific vertical domains.
Key Results and Insights
State-of-the-Art Performance
The resulting AgentScaler models (built on Qwen-3 architectures) set new benchmarks for models under 1T parameters. AgentScaler-30B-A3B scored 75.7 Overall on ACEBench-en, approaching the performance of Gemini-2.5-pro (78.2) and GPT-4o-mini (77.9). Notably, small models showed massive gains; AgentScaler-4B achieved an Overall score of 65.9, nearly matching the base Qwen3-8B model.
Verifiability and Generalization
Database-grounding solves the verifiability bottleneck. By backing simulated environments with actual database schemas, the authors created a rigorous way to grade synthetic data. If an agent hallucinates a tool call, the database state will not match the goal state, and the trajectory is discarded. This allows for infinite scaling without human intervention. Furthermore, testing on the Chinese benchmark ACEBench-zh showed that AgentScaler-4B's score on the complex "Agent" subset surged from 6.7 to 38.4, proving the pipeline instills transferable tool-use logic rather than simple memorization.
The "Long-Horizon" Challenge
Despite these advances, handling extended, multi-step tool-use chains remains a fundamental open problem. When task accuracy is plotted against the number of tool calls required, there is a stark negative correlation, indicating that agents still struggle with long-horizon reasoning.
Conclusion
This work demonstrates that agentic intelligence can be significantly improved through automated environment scaling rather than just increasing model parameters. While the current pipeline relies on Supervised Fine-Tuning (SFT), the stable, low-latency feedback provided by these simulated environments makes them ideal for future Reinforcement Learning (RL) optimization. Future work will explore extending this pipeline to vision-language agents and real-world deployment scenarios.
Summary updated