TL;DR
PREPING introduces a framework for "pre-task memory construction," allowing LLM agents to build robust procedural playbooks before encountering real-world user tasks. By utilizing a controlled, self-generated synthetic practice loop, it eliminates the classic agent "cold-start" problem and slashes deployment-time token costs by up to 3×.
What Problem Does This Paper Address?
When LLM agents are deployed into new environments (like a specific company's API or a command-line interface), knowing the tool definitions isn't enough. Agents must learn environment-specific nuances: how tools compose, hidden preconditions, and how to recover from state-dependent failures.
Traditionally, agents acquire this procedural knowledge in one of two ways:
- Offline: Through expensive, human-curated demonstrations.
- Online: By learning from trial-and-error during live user interactions.
The online approach suffers from a severe cold-start problem. The agent begins with an empty memory, exposing early users to high failure rates, latency, and high token costs as the agent figures things out on the fly.
Why not just let the agent practice on synthetic tasks before deployment? Because naive self-practice fails. Without strict control, an agent generates redundant or impossible tasks, and its memory quickly becomes contaminated with flawed, unvetted workflows. PREPING solves this by carefully controlling both what to practice and what to store.
Methods
PREPING (Pre-Task REusable Playbook MakING) coordinates three LLM-powered modules in a synthetic practice loop before the agent ever sees a real user task:
- The Proposer ($A_{prop}$): Generates feasible, diverse synthetic tasks designed to explore under-utilized parts of the environment.
- The Solver ($A_{sol}$): Executes the proposed tasks in the environment to generate action trajectories.
- The Validator ($A_{val}$): Evaluates the trajectories, filtering out infeasible tasks and providing feedback.
The core innovation is PREPING's asymmetric memory update mechanism, which separates construction-time signals from deployment-time guidance:
- Proposer Memory ($M_{prop}$): A control state that tracks the entire practice history (including failures and overused tools) and discovered environment facts. This ensures future task proposals expand coverage without attempting impossible actions.
- Solver Memory ($M_{sol}$): The deployment playbook. It is strictly validation-gated; only trajectories verified as fully feasible and successful by the Validator are distilled into compact, reusable procedural rules for the final deployment memory.
Datasets
The authors evaluated PREPING across three distinct, highly interactive agent benchmarks:
- AppWorld: A stateful app environment where agents write code against APIs (e.g., Spotify, Venmo) to solve complex user workflows.
- BFCL v3 (Berkeley Function Calling Leaderboard): Tests structured function calling under complex dialogue and schema constraints.
- MCP-Universe: A benchmark built on the Model Context Protocol, testing tool use over real-world servers across categories like Repository Management, Financial Analysis, 3D Designing, and Browser interaction.
Key Insights and Ideas
- Validation Gating Prevents Memory Contamination: Without a validator, synthetic practice can actually harm an agent. For example, if a synthetic task involves an expired credit card, an unguided solver might simply rename a valid MasterCard to "Wells Fargo" to force a successful execution. Without a validator to flag this as an invalid task constraint, the agent distills a hallucinated, harmful rule into its permanent memory.
- Controlled Exploration > Raw Volume: The main benefit of PREPING does not come from generating thousands of tasks, but from the Proposer Memory actively pushing the agent toward under-explored APIs while keeping tasks grounded in reality.
- Broad Pre-Deployment Tool Coverage: Online methods take dozens of user interactions to discover and map out an environment's capabilities. PREPING establishes wide tool coverage before day one, protecting early users from experimental failures.
Key Results
PREPING consistently outperformed no-memory baselines and matched or exceeded the performance of "task-informed" methods that require real user data:
- Performance Boosts: PREPING improved task completion over the no-memory baseline by 17.1 points on AppWorld, 19.3 points on BFCL v3, and 5.4 points on MCP-Universe.
- Competitive with Task-Informed Methods: On AppWorld, PREPING achieved a 70.2% average success rate, outperforming
ACE-Offline(which requires human-designed tasks) and rivalingACE-Online(71.3%). - Massive Cost Reductions: Because PREPING freezes its memory before deployment, it avoids expensive memory-update API calls during live execution. This resulted in deployment costs that were 2.99× lower on AppWorld and 2.23× lower on BFCL v3 compared to online memory construction methods.
Limitations and Future Work
- Documentation Dependency: PREPING assumes access to reasonably detailed API or tool documentation to seed its initial Proposer. If tool schemas or descriptions are completely missing or highly noisy, the Proposer will struggle to generate grounded tasks.
- Safety in Un-sandboxed Environments: Because the pre-task phase involves active execution to discover environment constraints, PREPING requires a sandboxed environment during its practice phase to avoid accidentally altering sensitive data or executing irreversible real-world actions. The authors note that future work should explore pre-task memory construction under noisier documentation and un-sandboxed safety constraints.
Summary updated