PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
March 31, 20241 citationsOpen Access

CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarks

View Full Paper
YXYiqing XieAXAlex XieDSDivyanshu Sheth

Key Points

Key points are not available for this paper at this time.

Abstract

To facilitate evaluation of code generation systems across diverse scenarios, we present CodeBenchGen, a framework to create scalable execution-based benchmarks that only requires light guidance from humans. Specifically, we leverage a large language model (LLM) to convert an arbitrary piece of code into an evaluation example, including test cases for execution-based evaluation. We illustrate the usefulness of our framework by creating a dataset, Exec-CSN, which includes 1,931 examples involving 293 libraries revised from code in 367 GitHub repositories taken from the CodeSearchNet dataset. To demonstrate the complexity and solvability of examples in Exec-CSN, we present a human study demonstrating that 81.3% of the examples can be solved by humans and 61% are rated as ``requires effort to solve''. We conduct code generation experiments on open-source and proprietary models and analyze the performance of both humans and models. We will release the code of both the framework and the dataset upon acceptance.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Xie et al. (2024) studied this question.

synapsesocial.com/papers/68e7180db6db6435876918afhttps://doi.org/10.48550/arxiv.2404.00566
Ask AI
Helpful
Bookmark
Share
View Full Paper