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

NL2Repo-Bench: 向编码代理的长周期仓库生成评估迈进

NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents

Nanjing University(南京大学);Peking University(北京大学);Beijing University of Posts and Telecommunications(北京邮电大学);Beihang University(北航)
Jingzhe Ding, Shengda Long, Changxin Pu, Huan Zhou, Hongwan Gao, Xiang Gao, Chao He, Yue Hou, Fei Hu, Zhaojian Li, Weiran Shi, Zaiyuan Wang, Daoguang Zan, Chenc… 展开作者

Jingzhe Ding, Shengda Long, Changxin Pu, Huan Zhou, Hongwan Gao, Xiang Gao, Chao He, Yue Hou, Fei Hu, Zhaojian Li, Weiran Shi, Zaiyuan Wang, Daoguang Zan, Chenchen Zhang, Xiaoxu Zhang, Qizhi Chen, Xianfu Cheng, Bo Deng, Qingshui Gu, Kai Hua, Juntao Lin, Pai Liu, Mingchen Li, Xuanguang Pan, Zifan Peng, Yujia Qin, Yong Shan, Zhewen Tan, Weihao Xie, Zihan Wang, Yishuo Yuan, Jiayu Zhang, Enduo Zhao, Yunfei Zhao, He Zhu, Liya Zhu, Chenyang Zou, Ming Ding, Jianpeng Jiao, Jiaheng Liu, Minghao Liu, Qian Liu, Chongyang Tao, Jian Yang, Tong Yang, Zhaoxiang Zhang, Xinjie Chen, Wenhao Huang, Ge Zhang

AI总结:

NL2Repo-Bench通过评估编码代理在长周期内生成仓库的能力,揭示了自主软件开发中的核心挑战。

摘要:

最近在编码代理方面的进展表明,向自主软件开发迅速迈进,但现有的基准测试未能严格评估构建完整软件系统所需长期能力。大多数先前的评估集中在局部代码生成、支架完成或短期修复任务上,留下了一个开放的问题:代理是否能够持续保持一致的推理、规划和执行能力,以满足现实世界仓库建设所需的长期需求。为了解决这一差距,我们提出了NL2Repo Bench,一个专门设计来评估编码代理长周期仓库生成能力的基准测试。给定一个单一的自然语言需求文档和一个空的工作区,代理必须自主设计架构、管理依赖关系、实现多模块逻辑,并生成一个完全可安装的Python库。我们的实验涉及最先进的开源和闭源模型,揭示了长周期仓库生成仍然 largely 未解决:即使最强的代理也仅能达到平均40%以下的测试通过率,很少能正确完成整个仓库。详细分析揭示了基本的长周期失败模式,包括提前终止、失去全局一致性、脆弱的跨文件依赖关系以及数百次交互步骤中的规划不足。NL2Repo Bench建立了一个严格、可验证的测试平台,用于衡量持续的代理能力,并突出了长周期推理作为下一代自主编码代理的核心瓶颈。

英文摘要:

Recent advances in coding agents suggest rapid progress toward autonomous software development, yet existing benchmarks fail to rigorously evaluate the long-horizon capabilities required to build complete software systems. Most prior evaluations focus on localized code generation, scaffolded completion, or short-term repair tasks, leaving open the question of whether agents can sustain coherent reasoning, planning, and execution over the extended horizons demanded by real-world repository construction. To address this gap, we present NL2Repo Bench, a benchmark explicitly designed to evaluate the long-horizon repository generation ability of coding agents. Given only a single natural-language requirements document and an empty workspace, agents must autonomously design the architecture, manage dependencies, implement multi-module logic, and produce a fully installable Python library. Our experiments across state-of-the-art open- and closed-source models reveal that long-horizon repository generation remains largely unsolved: even the strongest agents achieve below 40% average test pass rates and rarely complete an entire repository correctly. Detailed analysis uncovers fundamental long-horizon failure modes, including premature termination, loss of global coherence, fragile cross-file dependencies, and inadequate planning over hundreds of interaction steps. NL2Repo Bench establishes a rigorous, verifiable testbed for measuring sustained agentic competence and highlights long-horizon reasoning as a central bottleneck for the next generation of autonomous coding agents.

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

↑