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

有意违背:自动检测代理轨迹中的故障

Willful Disobedience: Automatically Detecting Failures in Agentic Traces

University of Washington(华盛顿大学);Microsoft Research(微软研究院)

Reshabh K Sharma, Shraddha Barke, Benjamin Zorn

AI总结:

本文提出AgentPex工具,通过提取规则自动评估代理轨迹,发现传统仅关注结果的评估方法无法检测到关键流程故障,如错误的工作流路由、不安全的工具使用或违反提示规则的情况。

摘要:

AI代理越来越多地嵌入到现实软件系统中,通过多轮对话、工具调用和中间决策执行多步骤工作流。这些长执行历史称为代理轨迹,使验证变得困难。仅结果的基准测试可能错过关键的程序性故障,如错误的工作流路由、不安全的工具使用或违反提示指定规则的情况。本文提出了AgentPex,一种AI驱动的工具,旨在系统性地评估代理轨迹。AgentPex从代理提示和系统指令中提取行为规则,然后使用这些规范自动评估轨迹的合规性。我们在τ²-基准的424个轨迹上评估了AgentPex,涵盖电信、零售和航空客户服务中的模型。我们的结果表明,AgentPex能够区分不同模型的代理行为,并揭示未被仅结果评分捕获的规范违规情况。它还通过领域和指标提供细粒度分析,使开发者能够大规模理解代理的优势和劣势。AgentPex的源代码可在https://github.com/microsoft/agentpex获取。

英文摘要:

AI agents are increasingly embedded in real software systems, where they execute multi-step workflows through multi-turn dialogue, tool invocations, and intermediate decisions. These long execution histories, called agentic traces, make validation difficult. Outcome-only benchmarks can miss critical procedural failures, such as incorrect workflow routing, unsafe tool usage, or violations of prompt-specified rules. This paper presents AgentPex, an AI-powered tool designed to systematically evaluate agentic traces. AgentPex extracts behavioral rules from agent prompts and system instructions, then uses these specifications to automatically evaluate traces for compliance. We evaluate AgentPex on 424 traces from $τ^2$-bench across models in telecom, retail, and airline customer service. Our results show that AgentPex distinguishes agent behavior across models and surfaces specification violations that are not captured by outcome-only scoring. It also provides fine-grained analysis by domain and metric, enabling developers to understand agent strengths and weaknesses at scale. The source code of AgentPex is available at https://github.com/microsoft/agentpex.

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

↑