EDGEGEN:通过合成边缘案例生成改进工具调用代理超越顺利路径

·

研究论文 · 2026/09/22

工具调用型LLM智能体正日益部署于企业应用中,但其有效评估与优化需要高质量、多样化的任务数据集,而受隐私等限制这类数据集往往难以获取。现有合成任务生成方法常产生通用任务,忽略智能体底层状态或数据库,且无法反映真实使用多样性。我们提出EdgeGen,一种合成任务生成框架,它从智能体规范中提取合规规则,并利用这些规则生成基于数据库的、旨在违反这些规则的边缘案例任务。当与现有合成数据生成技术结合时,EdgeGen通过微调和harness优化实现智能体改进。由此形成的流水线构成全自动闭环系统,无需人工标注。在tau2bench航空领域,基于EdgeGen生成数据的微调带来2%至42%的平均进度提升,而其他基线方法对某些模型则出现性能下降。另一方面,在harness优化方面,对于Gemma-4-e4b模型,我们的方法相比人工整理和基础harness分别带来10%和30%的平均进度提升。

该工作针对工具调用智能体评估数据稀缺且现有合成任务脱离实际的问题,提出自动生成合规违规边缘案例的方法,在微调和harness优化上均取得显著提升,且无需人工标注,对企业级智能体部署具有实用价值。

Tool-calling LLM agents are increasingly deployed in enterprise applications. However, effective evaluation and optimization require high-quality, diverse task datasets that are often difficult to obtain due to privacy and other constraints. Existing synthetic task generation methods often produce generic tasks that ignore an agent's underlying state or database and fail to reflect real-world usage diversity. We propose EdgeGen, a synthetic task generation framework that extracts compliance rules from an agent's specification and uses them to generate database-grounded edge-case tasks designed to violate these rules. When combined with existing synthetic data generation techniques, EdgeGen enables agent improvement through finetuning and harness optimization. The resulting pipeline forms a fully automated closed-loop system that requires no human annotation. Finetuning on data generated by EdgeGen yields a consistent mean progress improvement of 2 percent to 42 percent on tau2bench airline domain, while other baseline methods show degradation for some models. On the other hand, for harness optimization, our method shows a mean progress improvement of 10 percent and 30 percent over the human-curated and base harnesses, respectively, for the Gemma-4-e4b model.

阅读原文

参与讨论