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

SWE-Time:时序仓库理解基准

SWE-Time: Benchmarking Temporal Repository Understanding

Nankai University(南开大学);Baidu, Inc.(百度公司);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Guangzhou University(广州大学)

Shijun Xiao, Xinrong Chen, Hao Liu, Wensheng Zhang, Yongqiang Tang

AI总结:

该研究针对现有代码理解基准忽略仓库时序演化的问题,提出SWE-Time基准及RealWorld-to-Verifiable构建框架,评估15个编码智能体在1661个案例上的表现,发现Claude Opus 4.8得分最高,凸显仓库演化是代码理解的新挑战维度。

摘要:

仓库级代码理解基准已逐步扩展了推理的空间范围,从局部代码延伸至整个仓库,但大多将每个仓库视为静态快照。然而,模型如何随时间推理仓库演化的问题在很大程度上尚未被探索。我们提出SWE-Time,一个以仓库演化本身为推理目标的时序仓库理解基准。SWE-Time评估两个互补的时序方向:通过历史回归分析对仓库演化的回顾性理解,以及从变更前仓库状态对预期变更的前瞻性理解。为在这些场景中实现真实且可靠的评估,我们提出RealWorld-to-Verifiable构建框架,该框架将真实世界的开发者查询和历史证据转化为可验证的评估任务。我们在来自65个GitHub仓库的1661个案例上评估了15个编码智能体。在Claude Code中,Claude Opus 4.8取得了最高的SWE-Time平均得分61.9,仍有较大提升空间。受控分析凸显了历史代码证据和开发者意图的重要性,而跨仓库状态的一致推理仍然具有挑战性。这些结果表明,仓库演化是代码理解中一个独特且具有挑战性的维度。

英文摘要:

Repository-level code-understanding benchmarks have progressively expanded the spatial scope of reasoning, from local code to entire repositories, while largely treating each repository as a static snapshot. However, how models reason about repository evolution over time remains largely unexplored. We introduce SWE-Time, a benchmark for temporal repository understanding that makes repository evolution itself the reasoning target. SWE-Time evaluates two complementary temporal directions: retrospective understanding of repository evolution through historical regression analysis and prospective understanding of intended changes from pre-change repository states. To enable realistic yet reliable evaluation in these settings, we introduce the RealWorld-to-Verifiable Construction Framework, which transforms real-world developer queries and historical evidence into verifiable evaluation tasks. We evaluate 15 coding agents on 1,661 cases from 65 GitHub repositories. Within Claude Code, Claude Opus 4.8 achieves the highest SWE-Time Avg. of 61.9, leaving substantial headroom. Controlled analyses highlight the importance of historical code evidence and developer intent, while consistent reasoning across repository states remains challenging. These results highlight repository evolution as a distinct and challenging dimension of code understanding.

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

↑