Abstract
Training AI agents for complex, real-world tool use typically requires extensive, hard-coded simulation environments that are difficult to build and scale. This paper introduces Simia, a framework that utilizes Large Language Models (LLMs) as dynamic "world models" to simulate environment feedback. By replacing brittle code with LLM-driven reasoning, the authors successfully trained open-source models to outperform proprietary giants like GPT-4o on sophisticated tool-use benchmarks. Simia demonstrates that high-quality synthetic data and rich simulated feedback can significantly enhance agent performance across diverse domains such as airline booking, retail, and office automation.
Introduction
Developing agents capable of navigating "messy" real-world tasks—such as managing calendars or processing flight bookings—demands vast amounts of training data. Traditionally, this data is sourced from "testbeds," which are simulated environments with real API implementations. However, these testbeds are often heavy, brittle, and non-scalable. For every new tool or domain, developers must manually write the underlying environment code.
Researchers from Microsoft and the University of Washington identify a critical gap: while LLMs excel in complex-task/simple-environment settings (like mathematics), they struggle in simple-task/complex-environment settings (like office workflows) due to a lack of scalable training infrastructure. Simia addresses this by leveraging the inherent world knowledge of LLMs to simulate these complex environments without manual coding.
Methodology: The Simia Framework
The Simia approach consists of two primary components designed to scale training data and improve agent reasoning through feedback.
Simia-SFT (Supervised Fine-Tuning)
Simia-SFT is a pipeline that amplifies a small set of "seed" trajectories into a massive dataset of over 90,000 interactions. The process involves four stages: pre-filtering for logic and quality, prompt design incorporating tool specifications and policies, multi-turn trajectory simulation where an LLM acts as both user and environment, and final rule-based checks for formatting and validity.
Simia-RL (Reinforcement Learning)
In the RL phase, Simia replaces hard-coded reward functions with a reasoning model (e.g., o4-mini) that serves as the environment. This model observes agent actions, simulates outcomes, and provides "rich feedback." Unlike real environments that might return generic error messages, the LLM simulator explains why an action failed, facilitating faster and more effective learning.
Experimental Evaluation
The framework was evaluated across several demanding benchmarks:
- $\tau^2$-Bench (Airline & Retail): Focuses on multi-turn API calls and error recovery in realistic scenarios.
- OfficeBench: Tests cross-application workflows involving Word, Excel, and Email.
- AgentBench: Covers diverse tasks including OS manipulation, e-commerce (WebShop), and web browsing (Mind2Web).
Results and Key Insights
The experimental results highlight the efficacy of LLM-based simulation. The Simia-Tau (Qwen2.5-32B) model achieved an average score of 58.9 on $\tau^2$-Bench, notably outperforming GPT-4o (54.2) and the larger xLAM-2-70B (56.3).
Key insights from the study include:
- LLMs as World Models: LLMs possess sufficient internal knowledge to simulate API behaviors accurately without access to source code.
- The Advantage of Rich Feedback: RL on simulated environments can be more effective than on real ones because the simulator provides detailed explanations for failures, rather than cryptic system errors.
- Scalability: By treating environment design as a prompt-engineering problem, the researchers generated 90,000 trajectories without writing backend code for specific environments.
Conclusion and Future Work
Simia represents a shift from software engineering to prompt-and-schema design for agent training. While currently focused on airline, retail, and office domains, future work will involve extending this to more technical or niche tool schemas. Additionally, the authors note that as the reasoning capabilities of simulator models improve, the quality of the trained agents will likely follow suit, though care must be taken to mitigate potential distributional biases or hallucinations inherited from the simulator.
Summary updated