arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.06873cs.SE
收藏

挖掘工作流图用于对话式大语言模型代理的黑盒边界测试

Mining Workflow Graphs for Black-Box Boundary Testing of Conversational LLM Agents

Lero, the Research Ireland Centre for Software University of Limerick(利罗爱尔兰软件研究中心,利默里克大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));University of Ottawa(渥太华大学);Genesys Ireland

Liting Lin, Boxi Yu, Yuzhong Zhang, Lionel Briand, David-Paul Niland, Emir Muñoz

AI总结:

研究针对对话式大语言模型代理内部工作流失败难测问题,提出黑盒测试框架AgentEval,通过挖掘对话工作流图,利用其结构枚举测试目标,执行测试,在与白盒审计器对比测试中,能有效覆盖多个不同边界,降低重复率和误报率。

摘要:

当对话式大语言模型代理的内部工作流程失败时,可能会造成现实世界的危害,比如未经确认就完成交易。由于关键边界隐藏在多轮对话前提之后,标准测试难以触及,测试这些状态依赖的失败很困难。我们提出了AgentEval,一个黑盒测试框架,用于发现并强调这些有状态的边界。AgentEval与代理交互以挖掘对话工作流图,即其行为模型。它利用图结构枚举特定保护条件和前提作为测试目标,在应用扰动前重放对话路径到边界,然后执行测试,仅根据对话轮次判断是否通过。我们将AgentEval与能访问代理底层源代码的白盒审计器进行基准测试。在四个τ³基准代理上,AgentEval成功生成测试,每个代理覆盖23至38个不同边界;消融研究表明,得益于图结构,与仅提示基线相比,在更低的重复率和误报率下,能覆盖23个不同边界,而基线仅为12个。

英文摘要:

Failures of conversational LLM agents can have real-world consequences, for example when an agent completes a transaction without the user's confirmation. An important class of such failures occurs at workflow boundaries, such as identity checks and confirmation steps, which a test can reach only after several turns of conversation. We present AgentEval, a black-box testing framework that discovers and tests these boundaries. AgentEval interacts with an agent to mine a conversational workflow graph, a model of its behavior whose nodes are the agent's activities and whose edges are the user actions observed between them. It generates tests at each node of this graph, replaying the conversational path to that node before applying a perturbation. AgentEval then runs each test, and a separate LLM judge decides whether it passes or fails using only the conversation turns. We benchmark AgentEval against a privileged, white-box auditor with access to the agent's underlying source code, which AgentEval never sees. On four $τ^3$-bench agents, the boundary tests of AgentEval cover 38.8-46.0 distinct boundaries per agent on average over five repetitions. In ablation studies, generating tests without targeting the graph's nodes lowers the distinct-boundary count by 2.0-7.0 in every agent and raises the duplicate rate in most agents.

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

↑