Unlocking Implicit Experience: Synthesizing Tool-Use Trajectories from Text

Zhihao Xu, Rumei Li, Jiahuan Li, Rongxiang Weng, Jingang Wang, Xunliang Cai, Xiting WangarXiv 2026

TL;DR

Instead of simulating agent data from predefined APIs, this paper introduces GEM, a pipeline that extracts diverse, multi-turn tool-use trajectories directly from unstructured text corpora. By unlocking the implicit problem-solving workflows embedded in web text, GEM-trained models achieve a 16.5% absolute improvement on the BFCL V3 benchmark, outperforming several proprietary models and demonstrating remarkable out-of-domain generalization.

What Problem Does This Paper Address?

For autonomous agents to be truly useful, they need to interact with environments over multiple turns—handling ambiguous user requests, managing long-context dependencies, and recovering from tool execution errors. However, training these agents requires high-quality multi-turn tool-use trajectories, which are incredibly scarce in the wild.

To fix this data drought, current state-of-the-art methods rely on a tool-centered simulation paradigm. Researchers take a predefined set of APIs and use LLMs to simulate user tasks and agent interactions around them. The catch? Gathering a diverse toolset is expensive, and the resulting data is strictly limited by the scope of those predefined APIs. This bottleneck restricts an agent's ability to generalize to unseen real-world environments.

The authors ask a fundamental question: Can we bypass predefined tools entirely and synthesize diverse, high-quality trajectories directly from real-world text?

Methods

The authors introduce the Text-to-Trajectory paradigm, operationalized through a pipeline called GEM (Generation and Extraction Multi-turn).

Comparison of the typical synthesis pipeline vs. the proposed text-based synthesis pipeline.

The GEM pipeline consists of four main stages:

  1. Selection (Text Filtering): A classifier filters raw text corpora to identify segments rich in multi-step operational procedures or workflows.
  2. Extraction: An LLM converts these human-described procedures into structured abstract workflows and standard OpenAI-format API tool definitions.
  3. Generation: A powerful teacher model (GLM-4.6) generates a complete multi-turn dialogue (System prompt, User tasks, Assistant responses, and Tool responses) in a single efficient pass.
  4. Refinement & Validation: The initial trajectories are enhanced by injecting real-world complexities like ambiguous queries, rule violations, and error recovery. Finally, a rule-based check and an LLM judge filter out structural errors and hallucinations.

To make this scalable and cost-effective, the authors also train a specialized Trajectory Synthesizer via supervised fine-tuning (SFT). This model distills the complex, multi-stage GEM pipeline into an efficient, end-to-end generator that maps raw text directly to complete tool-use trajectories.

Datasets

  • Raw Text Corpora: The pipeline uses Ultra-FineWeb and WikiHow as the foundational text sources containing implicit human problem-solving experiences.
  • Evaluation Benchmarks:
  • BFCL V3 (Berkeley Function Calling Leaderboard) Multi-turn: Evaluates agents interacting with a Python-based API environment across categories like missing parameters, missing functions, and long contexts.
  • $\tau^2$-bench (Airline and Retail domains): A challenging benchmark evaluating user-agent interactions in complex, simulated real-world domains.

Key Insights and Ideas

  • Web Text is a Workflow Goldmine: A preliminary analysis revealed that roughly 14% of unstructured web text segments naturally contain explicit multi-step workflows (e.g., instructional guides, troubleshooting steps). This represents a massive, untapped reservoir of procedural knowledge.
  • Out-of-Domain Generalization: Because GEM extracts logic and tools directly from diverse real-world text rather than a sandbox environment, the resulting data instills a fundamental understanding of tool-use reasoning. This allows models to generalize exceptionally well to entirely unseen domains.
  • End-to-End Distillation is Viable: The distilled Trajectory Synthesizer successfully internalized the "text-to-trajectory" mapping, matching the data quality of the full multi-stage pipeline while significantly slashing inference latency and API costs.

Key Results

The GEM paradigm yielded substantial performance gains across both open-source model scales (8B and 32B parameters):

  • BFCL V3 Multi-turn: Fine-tuning on GEM data raised the overall accuracy of Qwen3-32B from 28.35% to 44.88% (a 16.5% absolute improvement). Notably, this out-of-domain trained model outperformed leading proprietary models, including GPT-4.1 (38.88%) and DeepSeek-V3.2-Exp (37.38%).
  • $\tau^2$-bench: Despite being trained on data entirely out-of-domain relative to the test set, Qwen3-32B-GEM achieved a 86.84% Pass@4 score in the Retail domain, comfortably beating baselines like Simia (73.68%) which were trained on in-domain simulated data.
Quantitative results on the $\tau^2$-bench benchmark across Airline and Retail domains.

An ablation study also confirmed that the Refinement stage was critical, accounting for a massive jump in accuracy (raising Qwen3-32B's score from 32.50% to 44.88%).

Limitations and Future Work

While highly effective, the GEM pipeline still relies on a powerful teacher model for the initial trajectory generation and refinement steps before distillation can occur. Additionally, the refinement stage—while essential for injecting complexity—adds computational overhead during data creation. The authors note that finding ways to more directly and efficiently leverage raw text to synthesize high-quality tool-calling trajectories remains a promising direction for future research.

Summary updated

BibTeX
@misc{xu2026unlocking,
  author = {Zhihao Xu and Rumei Li and Jiahuan Li and Rongxiang Weng and Jingang Wang and Xunliang Cai and Xiting Wang},
  title = {{Unlocking Implicit Experience: Synthesizing Tool-Use Trajectories from Text}},
  year = {2026},
  eprint = {2601.10355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.10355},
}
Figure