Execution-first synthetic tool-use trace generation for LLM agents

Ouajdi, Hafsa; Giannuzzo, Francesco; Boukhary, Alaa; Papotti, Paolo; Conangla, Gerard; Elwood, Adam
AgenticDev 2026, International Workshop on Agentic AI for Next-Generation Software Development, 12/16 October 2026, Munich, Germany / Submitted to ArXiV, 31 July 2026

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.

 

Type:
Conférence
City:
Munich
Date:
2026-07-31
Department:
Data Science
Eurecom Ref:
8908
Copyright:
© ACM, 2026. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in AgenticDev 2026, International Workshop on Agentic AI for Next-Generation Software Development, 12/16 October 2026, Munich, Germany / Submitted to ArXiV, 31 July 2026

PERMALINK : https://www.eurecom.fr/publication/8908