NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Terrarium: Growing Personal Assistants via Scalable Synthesis of App Worlds

Mengzhou Wu, Yuzhe Guo, Jiawen Tao, Xiaokun Yuan, Yuan Cao, Gang Cao, Yuetang Deng, Zhi Gong, Dezhi Ran, Linyi Li, Wei Yang, Tao XiearXiv 2026

TL;DR

Terrarium is a new framework that automatically "grows" training environments for LLM personal assistants by synthesizing executable, resettable "App Worlds" from real-world web data and GUI traces. By generating over 13,000 tasks across 275 diverse applications, it enables large-scale reinforcement learning that boosts agent performance by an average of 18 points on complex, multi-step benchmarks.

What Problem Does This Paper Address?

We want AI assistants that can book flights, manage calendars, and navigate complex enterprise software. However, training these agents is notoriously difficult. Real-world applications are "live" environments: they have restricted access, their states are hard to reset for repeated training trials, and they often contain sensitive data.

Existing solutions usually fall into two camps:

  1. Manual Engineering: Researchers hand-code simulated environments (like AppWorld). This is high-quality but doesn't scale—you can't manually code every app on the internet.
  2. Generic Synthesis: Automated pipelines create "toy" environments from scratch. These often lack the messy, specific constraints and workflows of real-world software, leading to agents that fail when they meet a real API.

Terrarium bridges this gap by using app-grounded synthesis, turning real-world application information into high-fidelity, executable surrogates.

Methods

The Terrarium pipeline follows a "closed-loop" construction process to ensure the synthesized worlds are actually usable for training:

  1. Information Collection: An LLM crawls the web for app descriptions and usage instructions, while a GUI agent records "traces" (screenshots and accessibility trees) of the app in action.
  2. App Specification: These traces are consolidated into a structured blueprint. It defines what the app can do (capabilities), how data flows (entities), and what the "buttons" (operations) actually do to the state.
  3. World Synthesis: Terrarium generates a Python-based runtime with mutable state and callable operations. It uses a search agent to populate the world with realistic "seed" data (e.g., fake user accounts, flight listings, or retail inventories).
  4. Task Generation: It creates two types of training tasks:
  5. Intent Execution: "Book a flight from NYC to London under $500."
    • Intent Completion: Training the agent to recognize when a request is missing info (e.g., "Which date?") and ask the user for clarification instead of guessing.
  6. Closed-Loop Refinement: This is the "secret sauce." Terrarium runs an agent through the new task. If the agent fails because the world is buggy or the rubric is inconsistent, the framework automatically revises the world or the task until it passes a "closure check."
Figure 2: Overview of the Terrarium construction pipeline.

For training, the authors used Group Relative Policy Optimization (GRPO), a reinforcement learning technique that rewards the model based on whether it successfully achieved the final outcome defined in a rubric, rather than just mimicking a "correct" sequence of steps.

Datasets

The authors introduced a massive new training suite:

  • Terrarium Training Suite: 275 App Worlds across 8 categories (Travel, Commerce, Healthcare, etc.) and 13,344 tasks.
  • Evaluation Benchmarks: To test if the training generalizes, they evaluated on two independent, human-engineered benchmarks: $\tau^2$-bench (Airline, Retail, Telecom) and AppWorld.

Key Insights and Ideas

  • Real-World Grounding Matters: By starting with GUI traces, Terrarium captures "business logic" (like needing a confirmation code before a refund) that generic simulators miss.
  • The Power of "Intent Completion": One of the most interesting findings is that training an agent to stop and ask questions (Intent Completion) actually makes it better at executing tasks. It reduces "hallucinated" actions and premature state changes.
  • Scaling Laws for Environments: The researchers found a clear trend: as you increase the number of unique "App Worlds" in the training set, the agent's ability to generalize to entirely new, unseen applications improves consistently.

Key Results

The results show that "growing" assistants in Terrarium pays off significantly across all model scales (4B to 14B parameters):

  • Massive Gains: Models trained with Terrarium outperformed base Qwen3 models by an average of 18.34 percentage points on $\tau^2$-bench and 10.94 points on AppWorld.
  • Domain Mastery: In the Telecom domain, the gains exceeded 20 points, showing the framework's strength in handling complex, multi-step service interactions.
  • Efficiency: A Terrarium-trained 4B model often outperformed much larger 14B models that hadn't undergone this specific app-grounded training.
Figure 1: From 275 applications, Terrarium constructs ex- ecutable App Worlds and 13,344 tasks for assistant training.

Limitations and Future Work

  • Surrogate Fidelity: While grounded in real data, these are still "surrogate" worlds. They might miss deep backend edge cases that only appear in production systems.
  • LLM-as-a-Judge: The training relies on a large LLM (Qwen3.5-397B) to act as the "judge" for rewards. While effective, this introduces a dependency on the judge's own reasoning capabilities.
  • Future Directions: The authors suggest expanding to even more complex "cross-app" workflows (e.g., taking info from an email to book a calendar event and then a ride-share) and improving the diversity of the synthesized "seed" data.

Summary updated

BibTeX
@misc{wu2026terrarium,
  author = {Mengzhou Wu and Yuzhe Guo and Jiawen Tao and Xiaokun Yuan and Yuan Cao and Gang Cao and Yuetang Deng and Zhi Gong and Dezhi Ran and Linyi Li and Wei Yang and Tao Xie},
  title = {{Terrarium: Growing Personal Assistants via Scalable Synthesis of App Worlds}},
  year = {2026},
  eprint = {2610.14860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.14860},
}
Figure