Execution-First Synthetic Tool-Use Trace Generation for LLM Agents

πŸ“… 2026-07-31
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
Existing query-first data synthesis approaches struggle to generate valid and executable tool-use sequences. This work proposes SyntheticAgentTraceQA, a novel framework that introduces an "execution-first" paradigm: it first constructs high-level workflows, maps and validates feasible tool trajectories, and then synthesizes corresponding natural language tasks and reference answers. The method integrates dependency-aware tool assignment, trajectory validation in a controlled environment, and reasoning-augmented annotation generation, followed by fine-tuning and evaluation using the Qwen model. Experimental results demonstrate that this framework substantially improves large language model (LLM) agents’ tool execution accuracy, trajectory consistency, and answer quality. Furthermore, the study reveals that masked supervision outperforms full supervision for models at the 9B scale.
πŸ“ Abstract
Agentic software-engineering and industrial systems increasingly operate through executable workflows rather than code genera- tion alone: they search artifacts, invoke tools, inspect structured observations, and query databases. Training these agents requires supervision data that captures valid tool interactions and executable workflows. However, traditional query-first data synthesis can fail because plausible user requests may not correspond to valid tool sequences, compatible parameters, or available data. To address this limitation, we propose SyntheticAgentTraceQA, an execution- first framework for generating scalable supervision data for tool- augmented agents. Our framework first constructs high-level work- flow structures, maps them to available tools through dependency- aware assignment, executes and validates the resulting traces in con- trolled environments, and only then synthesizes natural-language user tasks, teacher-generated reasoning annotations, and reference answers. We evaluate the framework across four tool ecosystems and use the resulting data to fine-tune and evaluate Qwen model variants. The results show that execution-grounded supervision improves tool execution behavior, reference-trace agreement, and answer-generation performance on the evaluated tasks. Further analysis reveals a supervision trade-off: masked supervision, which excludes reasoning annotations from the training objective, im- proves final-answer metrics, whereas full supervision, computing loss over the complete assistant output including reasoning tokens, underperforms on answer quality and does not consistently im- prove reference-trace agreement, particularly at the 9B scale. These findings highlight the importance of designing synthetic supervi- sion according to the desired capabilities of tool-augmented agents.
Problem

Research questions and friction points this paper is trying to address.

tool-use
synthetic data
execution trace
LLM agents
supervision data
Innovation

Methods, ideas, or system contributions that make the work stand out.

execution-first
synthetic data generation
tool-augmented agents
workflow validation
masked supervision
πŸ”Ž Similar Papers
2024-09-02International Conference on Learning RepresentationsCitations: 48
H
Hafsa Ouajdi
EURECOM, Sophia Antipolis, France; Aily Labs, Munich, Germany
F
Francesco Giannuzzo
EURECOM, Sophia Antipolis, France; Aily Labs, Munich, Germany
A
Alaa Boukhary
Aily Labs, Munich, Germany
Paolo Papotti
Paolo Papotti
Professor at EURECOM
Data ManagementInformation QualityLLMs
G
Gerard Conangla
Aily Labs, Munich, Germany
A
Adam Elwood
Aily Labs, Munich, Germany