arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.02601cs.AIcs.SE
收藏

AgentAssay: 用于非确定性AI代理工作流的令牌高效回归测试

AgentAssay: Token-Efficient Regression Testing for Non-Deterministic AI Agent Workflows

Independent Researcher(独立研究者)

Varun Pratap Bhardwaj

AI总结:

AgentAssay通过行为指纹和自适应预算优化,实现非确定性AI代理工作流的高效回归测试,显著降低测试成本并提高检测能力。

摘要:

自主AI代理被部署到前所未有的规模,但目前尚无系统的方法来验证代理在提示、工具、模型或编排逻辑发生变化后未出现退化。我们提出了AgentAssay,这是首个令牌高效的回归测试非确定性AI代理工作流的框架,实现了78-100%的成本降低,同时保持严格的统计保证。我们的贡献包括:(1)基于假设检验的随机三值判断(通过/失败/ inconclusive);(2)五维代理覆盖度量指标;(3)针对代理的突变测试操作符;(4)代理工作流的元关系;(5)CI/CD部署门作为统计决策程序;(6)行为指纹映射执行轨迹到紧凑向量,实现多变量回归检测;(7)自适应预算优化校准试验次数以适应行为方差;(8)基于轨迹的离线分析,实现零成本测试生产轨迹。在5种模型(GPT-5.2、Claude Sonnet 4.6、Mistral-Large-3、Llama-4-Maverick、Phi-4)、3种场景和7605次试验中,行为指纹检测功率达到86%,二元测试为0%,SPRT减少试验78%,完整流程通过轨迹优先分析实现100%成本节约。实现:20000+行Python代码,751个测试,10个框架适配器。

英文摘要:

Autonomous AI agents are deployed at unprecedented scale, yet no principled methodology exists for verifying that an agent has not regressed after changes to its prompts, tools, models, or orchestration logic. We present AgentAssay, the first token-efficient framework for regression testing non-deterministic AI agent workflows, achieving 78-100% cost reduction while maintaining rigorous statistical guarantees. Our contributions include: (1) stochastic three-valued verdicts (PASS/FAIL/INCONCLUSIVE) grounded in hypothesis testing; (2) five-dimensional agent coverage metrics; (3) agent-specific mutation testing operators; (4) metamorphic relations for agent workflows; (5) CI/CD deployment gates as statistical decision procedures; (6) behavioral fingerprinting that maps execution traces to compact vectors, enabling multivariate regression detection; (7) adaptive budget optimization calibrating trial counts to behavioral variance; and (8) trace-first offline analysis enabling zero-cost testing on production traces. Experiments across 5 models (GPT-5.2, Claude Sonnet 4.6, Mistral-Large-3, Llama-4-Maverick, Phi-4), 3 scenarios, and 7,605 trials demonstrate that behavioral fingerprinting achieves 86% detection power where binary testing has 0%, SPRT reduces trials by 78%, and the full pipeline achieves 100% cost savings through trace-first analysis. Implementation: 20,000+ lines of Python, 751 tests, 10 framework adapters.

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

↑