arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.08669cs.CLcs.AI
收藏

SOPBench:评估语言智能体遵循标准操作程序与约束的能力

SOPBench: Evaluating Language Agents at Following Standard Operating Procedures and Constraints

University of California, Santa Barbara(加州大学圣巴巴拉分校);Google Deepmind(谷歌DeepMind)

Zekun Li, Shinda Huang, Jiangtian Wang, Nathan Zhang, Antonis Antoniades, Wenyue Hua, Kaijie Zhu, Sirui Zeng, Chi Wang, William Yang Wang, Xifeng Yan

AI总结:

针对语言智能体遵循领域SOP能力研究不足的问题,本文提出含可执行环境、测试生成与多维度评估的SOPBench框架,评测18个主流模型发现该任务极具挑战且智能体易被越狱,同时发布相关资源。

摘要:

随着语言智能体越来越多地自动化执行关键任务,它们在采取行动和调用工具时遵循特定领域标准操作程序(SOP)、政策与约束的能力变得至关重要,但相关研究仍不充分。为填补这一空白,我们开发了自动化评估流水线SOPBench,包含:(1)可执行环境,涵盖7个客服领域的167个工具/函数,配有对应服务的SOP和基于规则的验证器;(2)自动化测试生成框架,可生成900多个经过验证的测试用例;(3)自动化评估框架,可从多个维度严格评估智能体的遵循情况。我们的方法将每个服务专属的SOP代码程序转换为可执行函数的有向图,要求智能体基于自然语言SOP描述调用这些函数。原始代码作为基于规则的基准验证器来评估合规性,减少了对人工标注和基于大语言模型评估的依赖。我们评估了18个主流模型,结果显示即使对于顶级模型(如GPT-4o、Claude-3.7-Sonnet),该任务也颇具挑战性,且不同领域间存在表现差异。o4-mini-high等推理模型表现更优,而其他强大模型的效果较差(通过率为30%-50%),小模型(7B、8B)的表现则显著更差。此外,语言智能体很容易被越狱诱导而忽视SOP和约束。代码、数据及超过24000条智能体轨迹已发布在https://github.com/Leezekun/SOPBench。

英文摘要:

As language agents increasingly automate critical tasks, their ability to follow domain-specific standard operating procedures (SOPs), policies, and constraints when taking actions and making tool calls becomes essential yet remains underexplored. To address this gap, we develop an automated evaluation pipeline SOPBench with: (1) executable environments containing 167 tools/functions across seven customer service domains with service-specific SOPs and rule-based verifiers, (2) an automated test generation framework producing over 900 verified test cases, and (3) an automated evaluation framework to rigorously assess agent adherence from multiple dimensions. Our approach transforms each service-specific SOP code program into a directed graph of executable functions and requires agents to call these functions based on natural language SOP descriptions. The original code serves as oracle rule-based verifiers to assess compliance, reducing reliance on manual annotations and LLM-based evaluations. We evaluate 18 leading models, and results show the task is challenging even for top-tier models (like GPT-4o, Claude-3.7-Sonnet), with variances across domains. Reasoning models like o4-mini-high show superiority while other powerful models perform less effectively (pass rates of 30%-50%), and small models (7B, 8B) perform significantly worse. Additionally, language agents can be easily jailbroken to overlook SOPs and constraints. Code, data, and over 24k agent trajectories are released at https://github.com/Leezekun/SOPBench.

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

↑