TL;DR
Training LLM agents to interact with APIs typically requires building complex, fully executable sandboxes and populating realistic databases—a massive bottleneck for scalability. This paper introduces ESAT, an environment-free synthetic data generation pipeline that leverages LLMs as on-the-fly "digital world models" to simulate stateful environments. By relying solely on API specifications, ESAT generates high-quality multi-step interaction trajectories that significantly boost agent performance on complex benchmarks without ever executing a single line of real backend code.
What Problem Does This Paper Address?
To build reliable AI agents capable of executing multi-step workflows (like booking flights, managing calendars, or modifying databases), researchers need vast amounts of high-quality interaction trajectories for training. Traditionally, collecting this data requires a fully implemented environment: executable APIs, sandboxed infrastructure, and pre-populated backend databases with realistic states.
Engineering these environments for every new API ecosystem is incredibly resource-intensive and creates a massive bottleneck for scaling agent development. The authors tackle a fundamental question: Can we train high-quality API-calling agents without building the underlying environments at all?
Methods
The authors propose ESAT (Environment-Free Synthetic Agentic Trajectory generation), a pipeline that turns data synthesis into a lightweight specification problem. Instead of executing code against a real backend, ESAT uses LLMs to simulate the entire environment on-the-fly.
The pipeline consists of three main stages:
- Task Synthesis: A task generator LLM composes diverse, realistic user tasks based purely on provided API specifications. To ensure balanced coverage, it uses a combinatorial grid of configuration buckets (varying difficulty, action types, and task focus) and an inverse frequency-based sampling strategy to prioritize underrepresented APIs. Tasks are then filtered and rewritten to match natural, intent-level user requests.
- Trajectory Synthesis: Instead of executing code, a teacher LLM agent interacts directly with an LLM-based API Simulator. The simulator acts as a dynamic digital world model, generating coherent, stateful environmental feedback on-the-fly. It maintains state consistency across turns by tracking the interaction history. Programmatic schema validation and an LLM-based semantic judge ensure the simulated responses are realistic and compliant.
- Trajectory Filtering: A trajectory-level LLM judge evaluates the completed multi-turn interactions, discarding sub-optimal or incorrect trajectories to ensure a high-fidelity final dataset.
Datasets
The method was evaluated on two challenging multi-app benchmarks:
- AppWorld: A rigorous testbed featuring 457 APIs across 9 everyday apps, requiring complex data-retrieval and state-changing workflows.
- OfficeBench: An office automation benchmark focused on long-horizon workflows across 8 apps (spreadsheets, calendars, emails, etc.).
Using ESAT, the authors generated several synthetic datasets:
- ESAT-AW7: 9K trajectories generated using 340 APIs from AppWorld (excluding held-out evaluation apps).
- ESAT-S52: 6K trajectories generated from 52 entirely novel, synthetic apps (1,017 APIs) created from scratch by prompting an LLM, completely independent of AppWorld.
- ESAT-OB: 1.7K trajectories generated using 20 APIs from OfficeBench.
For comparison, they also collected AWT, a dataset of 634 trajectories generated by running a teacher agent through the actual, executable AppWorld environment.
Key Insights and Ideas
- LLMs as Digital World Models: Modern LLMs possess enough implicit world knowledge to accurately simulate complex, stateful environment behaviors and state changes over long horizons, purely from text-based API documentation.
- The Power of Synthetic Apps: Remarkably, fine-tuning models on trajectories from completely fictional apps (ESAT-S52) led to massive performance gains on a completely different, real benchmark (AppWorld). This implies that teaching an agent the mechanics of robust tool use, state tracking, and error recovery is highly transferable, regardless of the specific domain.
- Environment-Free Beats Real Environments: Models trained on ESAT's purely simulated trajectories actually outperformed models trained on real trajectories collected from the actual executable AppWorld environment. This is likely due to ESAT's ability to generate far more diverse and complex tasks than what is typically hand-engineered in standard training sets.
Key Results
- Massive Performance Gains: Supervised fine-tuning (SFT) on ESAT data yielded performance improvements of up to 50.5% on AppWorld and 60.5% on OfficeBench compared to base models.
- Effective Knowledge Distillation: Smaller models (ranging from 1.7B to 14B parameters) fine-tuned on ESAT data routinely outperformed much larger models like GPT-4o and Nemotron-3-120B in zero-shot settings. For instance, Qwen3.5-4B achieved a 67.6% pass rate on AppWorld Test-Normal, crushing zero-shot GPT-4o (48.8%).
- High Simulator Fidelity: An evaluation using GPT-5.1 as an independent judge confirmed that the ESAT simulator produced valid, internally consistent responses for 93.7% of the simulated API calls.
Limitations and Future Work
- Long-Context Degradation: The simulator's failure rate increases significantly as the output token length grows. For short responses (<500 tokens), the failure rate is only 2-3%, but it climbs to 23% for long-form responses exceeding 2K tokens, driven by state drift or hallucination limitations in the underlying simulator model (GLM-5.1-FP8).
- Multi-App Task Complexity Skew: The task generation stage is somewhat skewed toward single-app tasks. LLMs still face inherent difficulties when trying to compose highly complex, meaningful tasks that naturally span three or more distinct applications simultaneously from scratch.
The authors suggest that leveraging more powerful frontier models as the underlying simulator could help maintain better long-form consistency and unlock even more complex multi-app task generation.
Summary updated