paper-with-me

홈 › Papers

CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarks

2024-03-31 · Yiqing Xie, Alex Xie, Divyanshu Sheth, PengFei Liu, Daniel Fried, Carolyn Rose

To adequately test modern code generation systems, evaluation benchmarks must execute and test the code generated by the system. However, these execution and testing requirements have largely limited benchmarks to settings where code is easily executable or has human-written tests. To facilitate evaluation of code generation systems across diverse scenarios, we present CodeBenchGen, a framework to create scalable execution-based benchmarks from naturally occurring code sources. Specifically, we leverage a large language model (LLM) to sandbox arbitrary pieces of code into evaluation examples, 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 converted from code in 367 GitHub repositories taken from the Code- SearchNet dataset. To demonstrate the 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 provide code and data at: https://github.com/yiqingxyq/CodeBenchGen.

📄 PDF Abstract BibTeX arXiv:2404.00566

Code (2)

veronicium/codebenchgen 공식 구현
yiqingxyq/codebenchgen 공식 구현

Tasks

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testing

2025-03-10 · Yiqing Xie, Alex Xie, Divyanshu Sheth, PengFei Liu 외

We present RepoST, a scalable method to construct environments that provide execution feedback for repository-level code generation for both training and evaluation. Unlike existing works that aim to build entire reposit…

Code GenerationHumanEval

Multi-Turn Code Generation Through Single-Step Rewards

2025-02-27 · Arnav Kumar Jain, Gonzalo Gonzalez-Pumariega, Wayne Chen, Alexander M Rush 외

We address the problem of code generation from multi-turn execution feedback. Existing methods either generate code without feedback or use complex, hierarchical reinforcement learning to optimize multi-turn rewards. We …

Code GenerationHierarchical Reinforcement Learning

EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

2024-10-14 · Dong Huang, Guangtao Zeng, Jianbo Dai, Meng Luo 외

As large language models (LLMs) play an increasingly important role in code generation, enhancing both correctness and efficiency has become crucial. Current methods primarily focus on correctness, often overlooking effi…

Code Generation

Execution-Based Evaluation of Natural Language to Bash and PowerShell for Incident Remediation

2024-05-10 · Ngoc Phuoc An Vo, Brent Paulovicks, Vadim Sheinin

Given recent advancements of Large Language Models (LLMs), code generation tasks attract immense attention for wide application in different domains. In an effort to evaluate and select a best model to automatically reme…

Code GenerationFew-Shot Learning

MetaAgent-X : Breaking the Ceiling of Automatic Multi-Agent Systems via End-to-End Reinforcement Learning

2026-05-14 · Yaolun Zhang, Yujie Zhao, Nan Wang, Yiran Wu 외 arxiv

Automatic multi-agent systems aim to instantiate agent workflows without relying on manually designed or fixed orchestration. However, existing automatic MAS approaches remain only partially adaptive: they either perform…

Reinforcement Learning