TL;DR
Training AI agents to use tools (like APIs or search engines) via reinforcement learning usually requires expensive human-annotated datasets, fragile real-world tool infrastructures, or giant proprietary models to build synthetic sandboxes. TRUSTEE flips the script by using a single, free, local 8-billion-parameter language model to hallucinate the entire training universe—generating tasks, roleplaying users, simulating API responses, and grading performance. Even wilder: an 8B model can use this setup to train itself and outperform agents trained on real data or expensive proprietary pipelines.
What Problem Does This Paper Address?
Teaching Language Models (LMs) to call external functions turns passive text generators into autonomous agents. Recently, multi-turn reinforcement learning (RL)—where an agent learns by trial and error across back-and-forth interactions—has emerged as the gold standard for this.
Here is the catch: RL is notoriously data-hungry, and scaling up interactive environments is a logistical nightmare. Real-world APIs cost money, hit rate limits, and change unexpectedly, while real human users don't want to chat with half-baked bots thousands of times. Previous workarounds either only simulated half the picture (relying on pre-existing static tasks) or paid massive proprietary models (like GPT-4) to write executable code and databases—creating static sandboxes that are either too hard for weak models or too easy for strong ones. The authors ask: Can we train strong tool-use agents from scratch using zero training data, zero executable code, and just a small open-source model?
Methods
Enter TRUSTEE (Tool leaRning Using SimulaTEd Environments). All it needs is a text list of tool descriptions (names and parameters—no actual working code!) and a local open-source LM (specifically, Qwen3-8B) acting as the simulation backbone.
Each training iteration runs in three stages:
- Task Generation: The backbone LM samples a few tool descriptions and invents a hidden scenario: a user persona, a secret goal, expected tool calls, and an opening user query.
- Simulated Interaction: The agent tries to solve the user's problem. If the agent outputs a tool call, the backbone LM pretends to be the API and invents a plausible JSON-like response. If the agent talks to the user, the backbone LM roleplays the user.
- Rewarding & Optimization: Once the chat ends, the backbone LM acts as a judge, grading the full transcript (
-1,0, or+1) against the secret goal. The agent then updates its weights using GRPO (Group Relative Policy Optimization, a standard, stable RL algorithm).
What’s novel beyond full simulation? Because the whole world is made of prompts, it is completely malleable on the fly. The authors introduce Adaptive Curriculum Learning. If the agent scores well on a batch, TRUSTEE dials up a difficulty knob (from 1 to 100). Higher difficulty means sampling more tools to choose from, requiring more conversation turns, stripping helpful instructions out of the system prompt, making simulated users novices who ask vague questions, and enforcing stricter grading criteria (penalizing hallucinations and inefficiency). A "soft curriculum" coin-flip occasionally randomizes lower-difficulty traits so the agent doesn't overfit to narrow patterns.
Datasets
- Training Data: None! TRUSTEE is data-free regarding task queries and ground-truth trajectories. For its raw "tool dictionary," it pulls static text descriptions of REST APIs across 49 categories from ToolBench (originally scraped from RapidAPI). No newly introduced benchmarks are created.
- Evaluation Benchmarks: Agents are tested on BFCL V4 (Berkeley Function Calling Leaderboard, covering single-turn "Live", "Non-Live", and "Multi-Turn" subsets) and $\tau^2$-bench (testing interactive tool calling in realistic Airline, Retail, and Telecom customer-service scenarios). They also use the test split of ToolRL to audit their simulated reward judge.
Key Insights and Ideas
- Factual accuracy doesn't matter; consistency does: If an agent queries a weather API for Seattle, it doesn't matter if the simulator invents
52°F and rainwhen it's actually sunny. What matters is that the agent picked the right tool, formatted the date and city arguments properly, and read the returned payload accurately. - Self-play works via Information Asymmetry: How can
Qwen3-8BimproveQwen3-8Bwithout a smarter teacher? Because the environment holds privileged information! Checking an answer when you hold the secret user intent and expected API calls in your prompt is much easier than solving the puzzle blind. The learning signal comes from the structural scaffolding, not superior model intelligence. - Simulated judges can beat rigid rules: When auditing trajectories where
Qwen3-8Bdisagreed with a traditional rule-based exact-match scorer, human inspection showed the rule-based scorer was wrong half the time (penalizing valid alternative phrasing or relying on broken gold labels), whereas the LM judge hit 85% accuracy.
Key Results
Using a single 8x H20 GPU node (4 GPUs running the simulator, 4 training the agent), TRUSTEE shines across pre-trained and post-trained models:
- Massive gains from scratch: On
Qwen3-8B-Base, TRUSTEE boosts single-turn BFCL scores by 10x to 15x (e.g., 4.74 to 72.54 on Live), takes Multi-Turn BFCL from 0.00 to 7.88 (13x higher than the runner-up), and jumps 3.5x on $\tau^2$-bench Telecom. - True self-improvement: Post-trained
Qwen3-8Btrained solely by itself improves across every single benchmark subset, taking first place in 5 out of 6 categories (reaching 46.38 on BFCL Multi-Turn and 45.61 on $\tau^2$-bench Retail). - Fast and cheap: Training takes ~30–43 hours—roughly 3.5x to 5.7x faster than programmatic synthesis methods like EnvScaler (140–170 hours), with zero API bills.
Limitations and Future Work
- Simulator ceilings: An 8B model has bounded long-horizon reasoning. If you throw too many tools or overly long multi-turn chats at it, both task quality and reward accuracy degrade.
- Hyperparameter juggling: The 5-dimensional adaptive curriculum introduces lots of knobs (step sizes, thresholds, turn limits) that require careful tuning.
- Model family lock-in: Experiments only tested the
Qwen3family due to pesky engineering incompatibilities in how different model families parse tool-call templates. - Future directions: The authors plan to explore turn-by-turn dense rewards (instead of one final score at the end), add entropy-control tricks to keep the agent exploring longer, and have the LM invent the tools themselves so it doesn't even need a scraped API list.
Summary updated