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

StaminaBench: 对编码智能体进行100轮交互的压力测试

StaminaBench: Stress-Testing Coding Agents over 100 Interaction Turns

AWS Agentic AI(AWS 代理人工智能)

Vlad Sobal, Shuo Yang, Yuting Zhang, Wei Xia, Stefano Soatto

AI总结:

提出StaminaBench基准,通过100轮连续变更请求测试编码智能体的耐力,发现所有模型在5-6轮内失败,而测试反馈和重试机制可将通过轮数提升12倍。

摘要:

我们引入了StaminaBench,一个衡量编码智能体耐力的基准:它们在失败前能处理多少连续交互轮次(变更请求)。与流行的任务解决率指标不同,这符合实际编码风格,其中会话运行数十或数百轮。在StaminaBench中,智能体实现一个REST API服务器,并在可调数量的程序生成的后续变更请求(实验中为100个)上进行修改,导致代码库最多达6000行。测试完全以编程方式生成,无需LLM参与,确保可重复性和可靠性;变更序列来自硬编码或LLM驱动的采样器,两者都受限于结构化动作空间以确保变更有效。智能体和服务器在隔离环境中运行,并通过HTTP与基准通信,使测试完全黑盒且与语言无关。我们评估了六个智能体框架与七个开源LLM在20个场景(每个100轮)上的表现,发现:(1)所有测试模型在5-6轮内失败,确认了无彻底测试的编码风格会产生错误;(2)将测试反馈传递给智能体并允许重试,可将通过轮数提升最多12倍;(3)良好的框架是强性能所必需的:更强的模型在其最佳和最差框架之间表现出高达6倍的差距,而较弱的模型在任何框架下都失败。我们发布了基准和生成的任务,以促进对多轮编码智能体行为的进一步研究。基准代码和数据:此 http URL。

英文摘要:

We introduce StaminaBench, a benchmark that measures the stamina of coding agents: how many consecutive interaction turns (change requests) they can handle before failing. Unlike the prevailing fraction-of-tasks-solved metric, this matches real vibe-coding where sessions run dozens or hundreds of turns. In StaminaBench, agents implement a REST API server and modify it across a tunable number of procedurally generated follow-up change requests - 100 in our experiments, resulting in codebases of up to 6,000 lines. Tests are generated fully programmatically without LLM involvement, ensuring reproducibility and reliability; change sequences are drawn from either a hardcoded or LLM-driven sampler, both constrained to a structured action space to ensure changes are valid. The agent and the server run in an isolated environment and communicate with the benchmark through HTTP, making testing fully black-box and language-agnostic. We evaluate six agent harnesses paired with seven open-source LLMs across 20 scenarios of 100 turns each and find that: (1) all the tested models fail within 5-6 turns, confirming that vibe-coding-style programming without thorough testing produces bugs; (2) passing test feedback back to the agent and allowing it to retry improves passed turn count by up to 12x; and (3) a good harness is required for strong performance: stronger models exhibit up to a 6x gap between their best and worst harness, while weaker models fail with any harness. We release the benchmark and the generated tasks to enable further research into multi-turn coding agent behavior. Benchmark code and data: github.com/amazon-science/StaminaBench.

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

↑