CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 21 of its 35 references that are in the map. First posted on arXiv 31 Mar 2024.
Builds on
21 of 35 references.
References · 21
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023OpenChat: Advancing Open-source Language Models with Mixed-Quality Datacited by 250
9 more
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 89
- 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 86
- 2022Fill in the Blank: Context-aware Automated Text Input Generation for Mobile GUI Testingcited by 36
- 2023A3Test: Assertion-Augmented Automated Test Case Generationcited by 33
- 2023CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Modelscited by 28
- 2022Aligning Offline Metrics and Human Judgments of Value for Code Generation Modelscited by 14
Built on by
Citing papers per year: 2024: 6; 2025: 12; 2026: 5.
23 papers.
Sort:
By area:
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2024Commit0: Library Generation from Scratchcited by 50
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generationcited by 26
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Reviewcited by 19
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 18
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millionscited by 16
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoningcited by 12
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
11 more
- 2025AutoSDT: Scaling Data-Driven Discovery Tasks Toward Open Co-Scientistscited by 11
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2026EvoConfig: Self-Evolving Multi-Agent Systems for Efficient Autonomous Environment Configurationcited by 7
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Taskscited by 6
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?cited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?cited by 1
- 2025Beyond Benchmarks: LLM Evaluation with an Anthropomorphic and Lifecycle-oriented Roadmapcited by 1
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptationcited by 1
- 2025CrossPL: Evaluating Large Language Models on Cross Programming Language Code Generationcited by 0
- 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Gocited by 0
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Tasks18 Feb 2026
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millions2 Feb 2026
- 2026EvoConfig: Self-Evolving Multi-Agent Systems for Efficient Autonomous Environment Configuration23 Jan 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Go14 Nov 2025
- 2025Beyond Benchmarks: LLM Evaluation with an Anthropomorphic and Lifecycle-oriented Roadmap26 Aug 2025
- 2025CrossPL: Evaluating Large Language Models on Cross Programming Language Code Generation26 Jul 2025
- 2025AutoSDT: Scaling Data-Driven Discovery Tasks Toward Open Co-Scientists9 Jun 2025
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning31 May 2025
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?26 May 2025
11 more
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generation10 Mar 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2024Commit0: Library Generation from Scratch2 Dec 2024
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generation23 Aug 2024
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updates8 Jul 2024
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions22 Jun 2024
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Review18 Jun 2024
- 2024On the Impacts of Contexts on Repository-Level Code Generation17 Jun 2024
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generationcited by 26
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2026EvoConfig: Self-Evolving Multi-Agent Systems for Efficient Autonomous Environment Configurationcited by 7
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Taskscited by 6
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Tasks18 Feb 2026
- 2026EvoConfig: Self-Evolving Multi-Agent Systems for Efficient Autonomous Environment Configuration23 Jan 2026
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generation10 Mar 2025
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2024Commit0: Library Generation from Scratchcited by 50
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Reviewcited by 19
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 18
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millionscited by 16
- 2025AutoSDT: Scaling Data-Driven Discovery Tasks Toward Open Co-Scientistscited by 11
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?cited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
12 most cited of 17 All 17 (JSON)
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millions2 Feb 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Go14 Nov 2025
- 2025Beyond Benchmarks: LLM Evaluation with an Anthropomorphic and Lifecycle-oriented Roadmap26 Aug 2025
- 2025CrossPL: Evaluating Large Language Models on Cross Programming Language Code Generation26 Jul 2025
- 2025AutoSDT: Scaling Data-Driven Discovery Tasks Toward Open Co-Scientists9 Jun 2025
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?26 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2024Commit0: Library Generation from Scratch2 Dec 2024
12 newest of 17 All 17 (JSON)