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

PPM: 用于基准测试代码生成模型的多样化编程问题自动生成方法

PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models

UT Dallas(德克萨斯大学达拉斯分校);Taiyuan University of Technology(太原理工大学)

Simin Chen, Xiaoning Feng, Xiaohong Han, Cong Liu, Wei Yang

AI总结:

针对现有代码生成模型基准测试问题集构建方法的缺陷,提出PPM编程问题合并思路及两种实现,实验证明其能生成更具挑战性、多样且自然的编程问题。

摘要:

近年来,大量大型代码生成模型(LCGMs)被提出,在辅助开发者完成复杂编程任务方面展现出巨大潜力。对LCGMs进行基准测试需要构建一组多样化的编程问题,每个问题包含提示(含任务描述)、标准解法和测试输入。现有构建此类问题集的方法主要分为两类:人工方法和基于扰动的方法。但人工方法工作量大、可扩展性不足,且由于LCGMs的训练数据收集可能存在污染,还存在数据完整性风险;基于扰动的方法主要生成语义同质化、标准解法相同的问题,还会引入可被IDE轻松自动修正的拼写错误,导致方法无效且不符合实际场景。本研究提出编程问题合并(PPM)的思路,并给出该思路的两种实现方式。我们将工具应用于两个广泛使用的数据集,使用8个代码生成模型与9种基线方法进行对比。结果表明,与基线方法相比,该工具在生成更具挑战性、更多样化且更自然的编程问题方面具备有效性。

英文摘要:

In recent times, a plethora of Large Code Generation Models (LCGMs) have been proposed, showcasing significant potential in assisting developers with complex programming tasks. Benchmarking LCGMs necessitates the creation of a set of diverse programming problems, and each problem comprises the prompt (including the task description), canonical solution, and test inputs. The existing methods for constructing such a problem set can be categorized into two main types: manual methods and perturbation-based methods. However, manual methods demand high effort and lack scalability, while also risking data integrity due to LCGMs' potentially contaminated data collection, and perturbation-based approaches mainly generate semantically homogeneous problems with the same canonical solutions and introduce typos that can be easily auto-corrected by IDE, making them ineffective and unrealistic. In this work, we propose the idea of programming problem merging (PPM) and provide two implementation of this idea, we utilize our tool on two widely-used datasets and compare it against nine baseline methods using eight code generation models. The results demonstrate the effectiveness of our tool in generating more challenging, diverse, and natural programming problems, comparing to the baselines.

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

↑