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

DOMAINEVAL:一个面向多领域代码生成的自动构建基准

DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generation

Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);The Hong Kong University of Science and Technology(香港科技大学)

Qiming Zhu, Jialun Cao, Yaojie Lu, Hongyu Lin, Xianpei Han, Le Sun, Shing-Chi Cheung

AI总结:

针对现有代码基准未探索特定领域任务的问题,提出多领域自动构建基准DOMAINEVAL,评估12个LLM发现其在计算任务表现较好但在密码学和系统任务存在高达68.94%的性能差距,为未来研究指明方向。

摘要:

诸如HumanEval之类的代码基准被广泛采用以评估大型语言模型(LLMs)的能力,从而深入了解其优势与不足。然而,当前的基准主要测试LLMs在常见编码任务(例如冒泡排序、最大公约数)上的能力,而特定领域的编码任务(例如计算、系统、密码学)仍未被探索。为了填补这一空白,我们提出了一个多领域代码基准DOMAINEVAL,旨在全面评估LLMs的编码能力。我们的流程以完全自动化的方式工作,能够实现从代码仓库到所研究的格式化主题的一键式构建。通过在DOMAINEVAL上评估12个具有代表性的LLMs,我们观察到了有趣的发现。我们注意到,LLMs通常擅长计算任务,而在密码学和系统编码任务上表现不佳。在某些LLMs中,性能差距可高达68.94%(80.94% - 12.0%)。我们还观察到,生成更多样本可以提高LLMs的整体性能,但领域偏差甚至可能会增加。本研究的贡献包括:一个涵盖六个热门领域的代码生成基准数据集DOMAINEVAL,一个用于构建代码基准的完全自动化流程,以及基于LLMs在DOMAINEVAL上的表现识别其在代码生成任务中的局限性,为未来的研究改进提供方向。排行榜可在 https://domaineval.github.io/ 获取。

英文摘要:

Code benchmarks such as HumanEval are widely adopted to evaluate the capabilities of Large Language Models (LLMs), providing insights into their strengths and weaknesses. However, current benchmarks primarily exercise LLMs' capability on common coding tasks (e.g., bubble sort, greatest common divisor), leaving domain-specific coding tasks (e.g., computation, system, cryptography) unexplored. To fill this gap, we propose a multi-domain code benchmark, DOMAINEVAL, designed to evaluate LLMs' coding capabilities thoroughly. Our pipeline works in a fully automated manner, enabling a push-bottom construction from code repositories into formatted subjects under study. Interesting findings are observed by evaluating 12 representative LLMs against DOMAINEVAL. We notice that LLMs are generally good at computation tasks while falling short on cryptography and system coding tasks. The performance gap can be as much as 68.94% (80.94% - 12.0%) in some LLMs. We also observe that generating more samples can increase the overall performance of LLMs, while the domain bias may even increase. The contributions of this study include a code generation benchmark dataset DOMAINEVAL, encompassing six popular domains, a fully automated pipeline for constructing code benchmarks, and an identification of the limitations of LLMs in code generation tasks based on their performance on DOMAINEVAL, providing directions for future research improvements. The leaderboard is available at https://domaineval.github.io/.

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

↑