Democratizing Tool Learning with Environments Fully Simulated by a Free 8B Language Model

Chenming Tang, Hsiu-Yuan Huang, Weijie Liu, Junqiang Zheng, Saiyong Yang, Yunfang WuNeurIPS 2026

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.

Figure 1: The overview of TRUSTEE.

Each training iteration runs in three stages:

  1. 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.
  2. 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.
  3. 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 rain when 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-8B improve Qwen3-8B without 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-8B disagreed 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:

Table 1: Main results. The highest results for each LM are bolded. “DF” refers to data-free (i.e., no established data) while “OP” indicates using open-source LMs only. The BFCL results of methods with “†” are evaluated under the direct prompting setting instead of the standard native function calling (FC) setting because they score nearly 0 on all the categories under the default FC setting.
  • 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-8B trained 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 Qwen3 family 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

Abstract

Reinforcement learning has become a prevalent paradigm for training tool calling agents, which typically requires online interactive environments. Existing approaches either rely on training data with ground truth annotations or require advanced proprietary language models (LMs) to synthesize environments that remain fixed once created. In this work, we propose TRUSTEE, a cost-friendly method for training tool calling agents with dynamic environments fully simulated by open-source LMs that can be as small as 8B, including task generation, user simulation, tool simulation, and trajectory evaluation, paired with an adaptive curriculum learning mechanism that controls task difficulty dynamically. Our empirical results show that TRUSTEE outperforms baselines which require extra external resources in most cases. These confirm that, with a sufficiently sophisticated design, even simulated environments with a local 8B LM as the backbone could set a strong baseline for tool learning. We hope our proposed paradigm could democratize tool learning and inspire future research on environment scaling with limited resources.
BibTeX
@inproceedings{tang2026democratizing,
  author = {Chenming Tang and Hsiu-Yuan Huang and Weijie Liu and Junqiang Zheng and Saiyong Yang and Yunfang Wu},
  title = {{Democratizing Tool Learning with Environments Fully Simulated by a Free 8B Language Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=JZaFq20B2u},
}
Figure