跳到正文
arXiv cs.CL· Yuxuan Lu, Ziyi Wang, Yingzhou Lu, Yisi Sang, Jiri Gesi, Xianfeng Tang, Yimeng Zhang, Zhenwei Dai, Hui Liu, Hanqing Lu, Chen Luo, Qi He, Benoit Dumoulin, Jing Huang, Dakuo Wang·· 14 小时前AI 评分55

Firefly:从真实 API 生成大规模可验证工具调用数据

Firefly: Illuminating Large-Scale Verified Tool-Call Data Generation from Real APIs

AI 导读

Firefly 提出一种从真实 MCP 服务器生成可验证工具调用数据的流程,先让强 LLM 沿工具图 DAG 探索真实 API,再从观测结果反向合成任务,以保证标签正确。

正文 · 原文

Authors:Yuxuan Lu, Ziyi Wang, Yingzhou Lu, Yisi Sang, Jiri Gesi, Xianfeng Tang, Yimeng Zhang, Zhenwei Dai, Hui Liu, Hanqing Lu, Chen Luo, Qi He, Benoit Dumoulin, Jing Huang, Dakuo Wang

View PDF HTML (experimental)

Abstract:Training tool-calling agents requires large-scale trajectory data with verifiable labels, yet existing approaches either synthesize environments that diverge from real API behavior or generate tasks without ground-truth outcomes for verification. We present FireFly, a pipeline for generating verified tool-call data from real-world MCP servers. Our key insight is to invert the standard synthesis pipeline: rather than generating tasks and hoping they are solvable, we first let a strong LLM explore real APIs along graph-guided DAG structures, then synthesize tasks backward from observed outcomes, guaranteeing label correctness by construction. To handle the scale of real-world tool spaces (${\sim}$1,000 tools), we build a pairwise tool graph and sample sub-DAGs to focus exploration on semantically coherent workflows. To address environment drift in live APIs, we construct a retrieval-augmented simulator that caches all exploration results and replays them during training and evaluation, enabling fully offline and reproducible RL. Applying this pipeline yields 5,144 verified tasks spanning 240 servers and 993 tools. A 4B-parameter model trained with GRPO on FireFly matches Claude Sonnet 4.6 on our held-out test set and shows improvements on multiple tool-calling benchmarks including Tau2-Bench, MCPMark, and MCP-Atlas.
Subjects: Software Engineering (cs.SE); Computation and Language (cs.CL)
Cite as: arXiv:2605.17558 [cs.SE]
  (or arXiv:2605.17558v2 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2605.17558

arXiv-issued DOI via DataCite

Submission history

From: Yuxuan Lu [view email]
[v1] Sun, 17 May 2026 17:38:17 UTC (3,125 KB)
[v2] Mon, 26 Oct 2026 03:02:53 UTC (3,129 KB)

来源:arXiv cs.CL · arxiv.org