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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chen, Simin, Feng, Xiaoning, Han, Xiaohong, Liu, Cong, Yang, Wei
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916108560236544
author Chen, Simin
Feng, Xiaoning
Han, Xiaohong
Liu, Cong
Yang, Wei
author_facet Chen, Simin
Feng, Xiaoning
Han, Xiaohong
Liu, Cong
Yang, Wei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_15545
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models
Chen, Simin
Feng, Xiaoning
Han, Xiaohong
Liu, Cong
Yang, Wei
Software Engineering
Artificial Intelligence
Computation and Language
Programming Languages
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.
title PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models
topic Software Engineering
Artificial Intelligence
Computation and Language
Programming Languages
url https://arxiv.org/abs/2401.15545