EvolveTool-Bench:评估LLM生成的工具库作为软件 artifact 的质量
Beyond Task Completion: A Verification-vs.-Conformance Gap in Tool-Evolving Agents
AI总结:
本文提出EvolveTool-Bench,通过评估LLM生成的工具库在软件工程流程中的质量,揭示任务完成率之外的软件质量风险,强调需将工具库视为首要软件 artifact。
摘要:
现代LLM代理在运行时越来越多地创建自己的工具——从Python函数到API客户端——但现有基准几乎只通过下游任务完成度来评估它们。这类似于仅凭代码是否运行来评判软件工程师,忽视冗余、回归和安全性。我们引入EvolveTool-Bench,一种用于评估LLM生成工具库的诊断基准。在三个需要实际工具执行的领域(专有数据格式、API编排和数值计算)中,我们定义了库级软件质量指标——重用性、冗余性、组合成功率、回归稳定性以及安全性——以及一个衡量每个工具质量的Tool Quality Score,涵盖正确性、鲁棒性、通用性和代码质量。在首次代码级和策略级工具演变的直接对比中(ARISE vs. EvoSkill vs. 一次性基线,99个任务,两个模型),我们发现任务完成率相似的系统(63-68%)在库健康度上差异可达18%,揭示了任务-only评估所无法察觉的软件质量风险。我们的结果强调,LLM生成工具的评估和治理需要将演进的工具库视为首要软件 artifact,而非黑箱。
英文摘要:
Agents that synthesize their own tools ship a second artifact alongside each answer: a software library that future tasks reuse, compose, and depend on. Task completion (TC) certifies the answer; it does not certify the library. On a Claude Haiku 4.5 pilot, we patch the harness to preserve per-tool source and replay every synthesised tool against a held-out conformance suite. Across 222 preserved tools and three protocols, 96.8% record per-tool correctness C=0.00: two protocols silent-rot at 100%, one at 91.7%. Hand-written reference implementations score C=1.00 on all 16 capability suites. The synthesised tools execute cleanly and the in-session verifier raises no flag; on held-out inputs they simply return wrong answers. This is the verification-vs.-conformance gap a pass-rate benchmark cannot see. EvolveTool-Bench makes that gap measurable. Sessions are structured into seed, gap, variant, composition, regression, and adversarial roles; runs emit per-tool manifests, verified-subset TC, correct-vs.-incorrect reuse, and audit traces for post-deployment monitoring. In the Haiku pilot over five protocols (3 seeds, 8 sessions, 51 verified decisions per pass), TC alone does not separate the protocols; the audit layer does. One pre-specified contrast shows the adapted decision-split synthesis protocol underperforming one-shot synthesis (-7.1 pp, 95% CI [-13.9,-0.1]; not significant after BH correction) -- a hypothesis-generating signal, not a confirmed effect. We release the harness, per-tool source preservation, conformance replay, and reproducibility manifests. An audit schema of this shape -- verifier coverage, reuse decomposition, held-out conformance -- is the minimum a deployed tool-evolving agent should emit between releases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。