arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.13183cs.SEcs.AI
收藏

AgentScript-Eval:针对企业领域特定语言代码生成的大语言模型与智能体基准测试

AgentScript-Eval: Benchmarking LLMs and Agents for Code Generation in an Enterprise DSL

William & Mary(威廉与玛丽学院);Salesforce(赛富时)

Dipin Khati, Shubham Mehrotra, Bin Bi, Zhou Yu, Denys Poshyvanyk, James Zhu, Sitaram Asur, Phil L. Mui

AI总结:

本文提出AgentScript-Eval基准测试,针对企业DSL代码生成评估LLM与智能体,发现模型规模预测性弱,编译-编辑循环可大幅提升性能,指导措辞比呈现形式更关键。

摘要:

领域特定语言(DSL)广泛应用于企业软件,为从数据访问到基础设施自动化的复杂任务提供了紧凑接口。平台正日益将其扩展至智能体领域,开发者可声明智能体的主题、允许的动作及约束,而非编写通用代码。大语言模型(LLM)编写通用代码的能力已被广泛验证,但该能力的测试几乎仅针对公共预训练数据丰富的语言,而企业DSL既不丰富也不公开。本文介绍AgentScript-Eval,这是一个针对AgentScript的执行分级基准测试,包含100个真实任务;AgentScript是Salesforce在Agentforce中用于构建对话式智能体的声明式DSL。任务涵盖根据规范创作智能体、调试错误定义以及优化正常运行的智能体。对5个模型进行零样本评估后发现,该测试场景难度较高:最佳模型的pass@3仅达25.0%,且所有模型在从零开始创作任务上的得分均为0%。进一步研究发现,模型规模和价格对成功的预测能力较弱——一个31B的开放权重模型在所有测试模型中达到最高编译率(48.0%),并在部分准确率上与最强前沿模型持平,且令牌成本最低。添加智能体编译-编辑循环是最大的提升手段,大致使部分准确率翻倍。除此之外,领域指导的措辞比其呈现形式更重要:同一技能包作为普通文档时得分为28%,作为实时插件时仅为14%;重写该插件内的一项技能后,得分提升至37%,这是我们的最佳结果,且目录和工具未做改动。更大的模型并未始终优于更小的模型,关键在于模型周围的测试框架及提供给它的指导。

英文摘要:

Domain-specific languages (DSLs) are widely used in enterprise software, giving a compact interface to complex tasks, from data access to infrastructure automation. Platforms increasingly extend them to agents, where a developer declares the topics, permitted actions, and guardrails of an agent rather than writing general-purpose code. Large language models (LLMs) write general-purpose code well, but that ability has been measured almost entirely on languages abundant in public pretraining data, and enterprise DSLs are neither abundant nor public. We introduce AgentScript-Eval, an execution-graded benchmark of 100 real tasks for AgentScript, the declarative DSL that Salesforce uses in Agentforce to build conversational agents. Tasks span authoring an agent from a specification, debugging a broken definition, and optimizing a working one. Evaluating five models zero-shot, we find that the regime is hard: the best model reaches only 25.0% pass@3, and every model scores 0% on authoring from scratch. We further find that model scale and price are weak predictors of success -- a 31B open-weight model attains the highest compilation rate of any model tested (48.0%) and matches the strongest frontier model on partial-credit accuracy at the lowest token cost. Adding an agentic compile-and-edit loop is the single largest lever, roughly doubling partial-credit accuracy. Beyond that gain, the wording of domain guidance matters more than its packaging. The same skill pack scores 28% as plain documentation but only 14% as a live plugin. Rewriting one skill inside that plugin then raises it to 37%, our best result, with catalog and tooling untouched. Larger models did not reliably outperform smaller ones; what mattered was the harness surrounding the model and the guidance supplied to it.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑