arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.03543cs.SEcs.AIcs.CLcs.LG
收藏

CodeEditorBench:评估大型语言模型的代码编辑能力

CodeEditorBench: Evaluating Code Editing Capability of Large Language Models

Multimodal Art Projection Research Community(多模态艺术投影研究社区);University of Waterloo(滑铁卢大学);HKUST(香港科技大学);University of Manchester(曼彻斯特大学);Tongji University(同济大学);Vector Institute(矢量研究所)

Jiawei Guo, Ziming Li, Xueling Liu, Kaijing Ma, Tianyu Zheng, Zhouliang Yu, Ding Pan, Yizhi LI, Ruibo Liu, Yue Wang, Shuyue Guo, Xingwei Qu, Xiang Yue, Ge Zhang, Wenhu Chen, Jie Fu

AI总结:

本文提出CodeEditorBench评估框架,覆盖调试、翻译、润色和需求切换等代码编辑任务,通过19个LLMs的评测揭示闭源模型优势,为代码编辑能力研究提供基准平台。

摘要:

面向代码的大型语言模型(LLMs)正在快速发展,代码编辑已成为一项关键能力。我们提出了CodeEditorBench,这是一个评估框架,旨在严格评估LLMs在代码编辑任务中的表现,包括调试、翻译、润色和需求切换。与仅关注代码生成的现有基准不同,CodeEditorBench强调真实场景和软件开发的实际方面。我们从五个来源整理了多样化的编码挑战和场景,涵盖各种编程语言、复杂度级别和编辑任务。对19个LLMs的评估表明,闭源模型(尤其是Gemini-Ultra和GPT-4)在CodeEditorBench上优于开源模型,凸显了基于问题类型和提示敏感性的模型性能差异。CodeEditorBench旨在通过提供一个稳健的平台来评估代码编辑能力,从而促进LLMs的进步。我们将发布所有提示和数据集,以使社区能够扩展数据集并对新兴LLMs进行基准测试。通过引入CodeEditorBench,我们为LLMs在代码编辑方面的发展做出了贡献,并为研究人员和从业者提供了宝贵的资源。

英文摘要:

Large Language Models (LLMs) for code are rapidly evolving, with code editing emerging as a critical capability. We introduce CodeEditorBench, an evaluation framework designed to rigorously assess the performance of LLMs in code editing tasks, including debugging, translating, polishing, and requirement switching. Unlike existing benchmarks focusing solely on code generation, CodeEditorBench emphasizes real-world scenarios and practical aspects of software development. We curate diverse coding challenges and scenarios from five sources, covering various programming languages, complexity levels, and editing tasks. Evaluation of 19 LLMs reveals that closed-source models (particularly Gemini-Ultra and GPT-4), outperform open-source models in CodeEditorBench, highlighting differences in model performance based on problem types and prompt sensitivities. CodeEditorBench aims to catalyze advancements in LLMs by providing a robust platform for assessing code editing capabilities. We will release all prompts and datasets to enable the community to expand the dataset and benchmark emerging LLMs. By introducing CodeEditorBench, we contribute to the advancement of LLMs in code editing and provide a valuable resource for researchers and practitioners.

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

↑