arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.00839cs.SEcs.AI
收藏

CodeClash:面向目标导向软件工程的基准测试

CodeClash: Benchmarking Goal-Oriented Software Engineering

Stanford University(斯坦福大学);Princeton University(普林斯顿大学);Cornell University(康奈尔大学);Technical University of Munich(慕尼黑技术大学)

John Yang, Kilian Lieret, Joyce Yang, Carlos E. Jimenez, Muhtasham Oblokulov, Aryan Siddiqui, Ofir Press, Ludwig Schmidt, Diyi Yang

AI总结:

CodeClash通过多轮竞赛评估语言模型在无明确指导下迭代开发代码以实现开放性目标的能力,揭示了模型在战略推理和长期代码维护方面的局限性。

摘要:

当前用于评估编码能力的基准测试主要针对具体、明确的任务,如修复特定bug或编写针对性测试。然而,现实软件开发是基于高阶目标,如提升用户留存或降低成本。评估语言模型是否能自主迭代开发代码以实现开放性目标仍是个挑战。为此,我们引入CodeClash基准测试,让语言模型在多轮竞赛中构建最佳代码库以实现竞争目标。每轮分为两个阶段:代理编辑代码,然后代码库在代码竞技场中竞争,胜者根据如得分最大化、资源获取或生存等目标决定。模型需自行决定如何改进代码库。我们运行了1680场竞赛(总计25200轮)以评估8个语言模型在6个竞技场的表现。结果表明,尽管模型展现出多样的开发风格,但它们在战略推理方面存在根本性限制。模型在长期代码库维护方面也面临困难,随着竞赛进行,仓库变得越来越杂乱和冗余。这些限制尤为明显:顶级模型在每轮竞赛中均输给专家人类程序员。我们开源CodeClash以推动自主、目标导向的代码开发研究。

英文摘要:

Current benchmarks for coding evaluate language models (LMs) on concrete, well-specified tasks such as fixing specific bugs or writing targeted tests. However, human programmers do not spend all day incessantly addressing isolated tasks. Instead, real-world software development is grounded in the pursuit of high-level goals, like improving user retention or reducing costs. Evaluating whether LMs can also iteratively develop code to better accomplish open-ended objectives without any explicit guidance remains an open challenge. To address this, we introduce CodeClash, a benchmark where LMs compete in multi-round tournaments to build the best codebase for achieving a competitive objective. Each round proceeds in two phases: agents edit their code, then their codebases compete head-to-head in a code arena that determines winners based on objectives like score maximization, resource acquisition, or survival. Whether it's writing notes, scrutinizing documentation, analyzing competition logs, or creating test suites, models must decide for themselves how to improve their codebases both absolutely and against their opponents. We run 1680 tournaments (25,200 rounds total) to evaluate 8 LMs across 6 arenas. Our results reveal that while models exhibit diverse development styles, they share fundamental limitations in strategic reasoning. Models also struggle with long-term codebase maintenance, as repositories become progressively messy and redundant. These limitations are stark: top models lose every round against expert human programmers. We open-source CodeClash to advance the study of autonomous, goal-oriented code development.

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

↑