arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.19287cs.SE
收藏

CoderUJB:面向实际编程场景的可执行统一 Java 基准

CoderUJB: An Executable and Unified Java Benchmark for Practical Programming Scenarios

Zhengran Zeng, Yidong Wang, Rui Xie, Wei Ye, Shikun Zhang

AI总结:

本文提出包含 2,239 道题、源自 17 个真实开源 Java 项目的可执行统一基准 CoderUJB,用于评估 LLMs 的实际编程能力,并发现持续预训练和指令微调可能损害某些任务性能。

摘要:

在面向软件工程的大语言模型(LLMs)不断发展的背景下,迫切需要能够准确反映真实开发场景的基准。现有基准要么过于简单,要么无法体现软件开发的多任务特性。为此,我们提出 CoderUJB,这是一个新的基准,旨在评估 LLMs 在各种可执行且反映实际开发场景的 Java 编程任务上的表现,同时考虑到 Java 在真实软件生产中的广泛使用。CoderUJB 包含 2,239 道编程题,来源于 17 个真实开源 Java 项目,涵盖五种实际编程任务。我们基于该基准的实证研究考察了多种开源和闭源 LLMs 的编码能力,并分析了针对特定编程语言代码的持续预训练和指令微调对其性能的影响。研究结果表明,尽管 LLMs 展现出较强潜力,但挑战依然存在,尤其是在非功能代码生成方面(例如测试生成和缺陷检测)。重要的是,我们的结果提示,在针对特定编程语言的持续预训练和指令微调方面应保持谨慎,因为这些技术可能损害模型在某些任务上的性能,表明需要更精细化的策略。因此,CoderUJB 标志着向更真实地评估 LLMs 编程能力迈出的重要一步,我们的研究也为这些模型在软件工程中的未来发展提供了有价值的见解。

英文摘要:

In the evolving landscape of large language models (LLMs) tailored for software engineering, the need for benchmarks that accurately reflect real-world development scenarios is paramount. Current benchmarks are either too simplistic or fail to capture the multi-tasking nature of software development. To address this, we introduce CoderUJB, a new benchmark designed to evaluate LLMs across diverse Java programming tasks that are executable and reflective of actual development scenarios, acknowledging Java's prevalence in real-world software production. CoderUJB comprises 2,239 programming questions derived from 17 real open-source Java projects and spans five practical programming tasks. Our empirical study on this benchmark investigates the coding abilities of various open-source and closed-source LLMs, examining the effects of continued pre-training in specific programming languages code and instruction fine-tuning on their performance. The findings indicate that while LLMs exhibit strong potential, challenges remain, particularly in non-functional code generation (e.g., test generation and defect detection). Importantly, our results advise caution in the specific programming languages continued pre-training and instruction fine-tuning, as these techniques could hinder model performance on certain tasks, suggesting the need for more nuanced strategies. CoderUJB thus marks a significant step towards more realistic evaluations of programming capabilities in LLMs, and our study provides valuable insights for the future development of these models in software engineering.

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

↑