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

CodeAlignBench:评估代码生成模型在开发者偏好代码调整上的表现

CodeAlignBench: Assessing Code Generation Models on Developer-Preferred Code Adjustments

Apple Inc.(苹果公司)

Forough Mehralian, Ryan Shar, James R. Rae, Alireza Hashemi

AI总结:

针对现有基准忽略开发者期望的问题,提出多语言基准CodeAlignBench,通过预定义约束和后续指令优化两种设置评估LLM的指令遵循能力,全面揭示模型在不同语言和生成目标上的优劣。

摘要:

随着大型语言模型生成代码的能力日益增强,评估其性能仍是一个复杂且不断演变的挑战。现有基准主要关注功能正确性,忽略了现实编码任务的多样性和开发者的期望。为此,我们引入了一个多语言基准,用于评估LLM的指令遵循能力,且可扩展至任何独立编程问题集上运行。我们的基准在两种关键设置下评估指令遵循:遵守初始问题中指定的预定义约束,以及根据后续指令执行优化的能力。在本文的分析中,我们使用来自LiveBench的编程任务对基准测试流程进行了实证评估,这些任务也被自动从Python翻译为Java和JavaScript。我们的自动化基准表明,模型在指令遵循的多个维度上表现出不同的性能水平。我们的基准测试流程提供了对代码生成模型更全面的评估,突显了它们在不同语言和生成目标上的优势与局限。

英文摘要:

As large language models become increasingly capable of generating code, evaluating their performance remains a complex and evolving challenge. Existing benchmarks primarily focus on functional correctness, overlooking the diversity of real-world coding tasks and developer expectations. To this end, we introduce a multi-language benchmark that evaluates LLM instruction-following capabilities and is extensible to operate on any set of standalone coding problems. Our benchmark evaluates instruction following in two key settings: adherence to pre-defined constraints specified with the initial problem, and the ability to perform refinements based on follow-up instructions. For this paper's analysis, we empirically evaluated our benchmarking pipeline with programming tasks from LiveBench, that are also automatically translated from Python into Java and JavaScript. Our automated benchmark reveals that models exhibit differing levels of performance across multiple dimensions of instruction-following. Our benchmarking pipeline provides a more comprehensive evaluation of code generation models, highlighting their strengths and limitations across languages and generation goals.

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

↑