AgentLens: 揭示 SWE-Agent 评估中的幸运通过问题
AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation
AI总结:
针对软件工程智能体评估中仅依赖最终补丁是否通过测试的二元信号问题,提出AgentLens框架进行过程级评估,通过构建前缀树接受器参考和上下文敏感意图标注器,识别出10.7%的通过轨迹存在“幸运通过”行为,并基于质量分数将轨迹分为幸运、扎实和理想三个等级。
摘要:
以下是更新后的摘要: 软件工程(SWE)智能体的评估主要依赖一个二元信号:最终补丁是否通过测试。这种仅关注结果的观点将原则性解决方案与混乱的试错过程视为等价。我们证明这种等价性在经验上是错误的。我们在60个SWE-bench验证任务上评估了来自八个模型后端的2,614条OpenHands轨迹。其中,47个任务有足够多的通过轨迹来构建任务级过程参考,从而得到一个包含1,815条轨迹的评估子集。在该子集的通过轨迹中,10.7%表现出我们称之为“幸运通过”的行为:回归循环、盲目重试、缺少验证,或探索、实现和验证在时间上无序。 我们引入AgentLens,一个用于SWE智能体轨迹过程级评估的框架,并定义AgentLens-Bench,一个包含1,815条轨迹的数据集,这些轨迹标注有质量分数、浪费信号、分歧点以及47个任务级前缀树接受器(PTA)参考。AgentLens通过合并同一任务的多个通过解决方案来构建PTA参考,并使用上下文敏感的意图标注器,基于轨迹历史而非仅工具身份将动作分配给探索、实现、验证或编排。 在AgentLens-Bench上,质量分数将通过轨迹分为幸运、扎实和理想三个等级,并进一步将幸运通过分解为五种重复出现的机制。在八个模型后端中,幸运率从0.5%到23.2%不等,当按质量分数而非通过率排序时,一些模型的排名变动多达五位。我们计划很快发布项目仓库,包括AgentLens-Bench工件、AgentLens SDK和分析工具。
英文摘要:
Evaluation of software engineering (SWE) agents is dominated by a binary signal: whether the final patch passes the tests. This outcome-only view treats a principled solution and a chaotic trial-and-error process as equivalent. We show that this equivalence is empirically false. We evaluate 2,614 OpenHands trajectories from eight model backends on 60 SWE-bench Verified tasks. Of these, 47 have enough passing trajectories to construct task-level process references, yielding a 1,815-trajectory evaluation subset. Among passing trajectories in this subset, 10.7% exhibit behavior we call a Lucky Pass: regression cycles, blind retries, missing verification, or temporally disordered exploration, implementation, and verification. We introduce AgentLens, a framework for process-level assessment of SWE-agent trajectories, and release AgentLens-Bench, a dataset of 1,815 trajectories annotated with quality scores, waste signals, divergence points, and 47 task-level Prefix Tree Acceptor (PTA) references. AgentLens builds PTA references by merging multiple passing solutions for the same task, and uses a context-sensitive intent labeler to assign actions to Exploration, Implementation, Verification, or Orchestration based on trajectory history rather than tool identity alone. On AgentLens-Bench, the quality score separates passing trajectories into Lucky, Solid, and Ideal tiers and further decomposes Lucky Passes into five recurring mechanisms. Across the eight model backends, Lucky rates range from 0.5% to 23.2%, and some models move by as many as five rank positions when ranked by quality score instead of pass rate. We publicly release AgentLens-Bench and the AgentLens SDK at https://github.com/agentlens-framework/agentlens, with a project page at https://agentlens-framework.github.io/agentlens/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。