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

一个用于评估具有中间推理的仓库级代码代理的基准测试:在特性添加任务上

RACE-Bench: A Reasoning-Augmented Benchmark for Repository-Level Code Agents on Feature Addition

Zhejiang University(浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新区(滨江)区块链与数据安全研究所)

Shuhan Liu, Zhiyi Zhao, Xing Hu, Kui Liu, Xiaohu Yang, Xin Xia

AI总结:

本文提出RACE-bench基准,用于评估仓库级代码代理在特性添加任务中的推理能力,通过执行补丁验证和结构化中间推理地面真相,分析代理的推理质量与实现步骤转换性能。

摘要:

仓库级代码代理在现实中的特性添加任务中展现出强大潜力,使其能力的可靠评估变得愈发重要。然而,现有基准主要基于最终测试正确性将这些代理视为黑箱,提供有限的关于它们推理过程和失败原因的洞察。为解决这一限制,我们引入RACE-bench,一个增强推理的基准,用于评估代码代理在仓库级特性添加任务中的能力。RACE-bench包含来自12个开源仓库的528个现实特性添加实例。每个实例都配以可执行补丁验证和结构化中间推理地面真相,涵盖问题理解、文件定位、实现任务和步骤分解。基于此设计,我们引入了一个双轨评估框架,同时衡量补丁正确性和中间推理质量。我们评估了三个代表性的仓库级代码代理在RACE-bench上的表现。在完整基准上,不同代理的解决率范围从29%到70%。我们的推理层面分析进一步显示,尽管当前代理在理解高层次意图方面表现良好,但在将意图转换为具体实现步骤时性能显著下降。我们还发现,应用成功但测试失败的案例表现出较低的推理召回率(35.7%下降)和较高的过度预测(94.1%增加)相比成功案例。这些发现突显了在评估仓库级代码代理时,除了最终补丁正确性外,还需考察其推理过程的质量。

英文摘要:

Repository-level code agents have shown strong promise in real-world feature addition tasks, making reliable evaluation of their capabilities increasingly important. However, existing benchmarks primarily evaluate these agents as black boxes based on final test correctness, providing limited insight into how they reason and where failures arise. To address this limitation, we introduce RACE-bench, a reasoning-augmented benchmark for evaluating code agents on repository-level feature addition tasks. RACE-bench contains 528 real-world feature addition instances from 12 open-source repositories. Each instance is paired with executable patch verification and structured intermediate reference reasoning covering issue understanding, file localization, implementation tasks, and step decomposition. Based on this design, we introduce a dual-track evaluation framework that jointly measures patch correctness and intermediate reasoning alignment with developer-accepted reference trajectories. We evaluate three representative repository-level code agents on RACE-bench. On the full benchmark, Resolved Rate ranges from 29% to 70% across different agents. Our reasoning-level analysis further shows that while current agents perform well at understanding high-level intent, their performance degrades substantially when translating intent into concrete implementation steps. We also find patches that can be applied but still fail the tests cover fewer reference-reasoning elements (35.7% lower recall) and contain more unsupported reasoning elements (94.1% higher over-prediction) than successful patches. These findings highlight the importance of evaluating repository-level code agents beyond final patch correctness by examining the quality of their reasoning processes.

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

↑