CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models
Hao Yu, Bo Shen, Dezhi Ran, Jiaxin Zhang, Qi Zhang, Yuchi Ma, Guangtai Liang, Ying Li, Qianxiang Wang, Tao Xie
Abstract
Code generation models based on the pre-training and fine-tuning paradigm have been increasingly attempted by both academia and industry, resulting in well-known industrial models such as Codex, CodeGen, and PanGu-Coder. To evaluate the effectiveness of these models, multiple existing benchmarks (e.g., HumanEval and AiXBench) are proposed, including only cases of generating a standalone function, i.e., a function that may invoke or access only built-in functions and standard libraries. However, non-standalone functions, which typically are not included in the existing benchmarks, constitute more than 70% of the functions in popular opensource projects, and evaluating models' effectiveness on standalone functions cannot reflect these models' effectiveness on pragmatic code generation scenarios (i.e., code generation for real settings of open source or proprietary code). To help bridge the preceding gap, in this paper, we propose a benchmark named CoderEval, consisting of 230 Python and 230
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
76 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- OctoPack: Instruction Tuning Code Large Language Models cites InCoder: A Generative Model for Code Infilling and Synthesis
- OctoPack: Instruction Tuning Code Large Language Models cites Language Models are Few-Shot Learners
- OctoPack: Instruction Tuning Code Large Language Models cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
- Monitor-Guided Decoding of Code LMs with Static Analysis of Repository Context cites The Curious Case of Neural Text Degeneration
- InCoder: A Generative Model for Code Infilling and Synthesis cites Language Models are Few-Shot Learners
- InCoder: A Generative Model for Code Infilling and Synthesis cites The Curious Case of Neural Text Degeneration
- Evaluating Large Language Models in Class-Level Code Generation cites InCoder: A Generative Model for Code Infilling and Synthesis
- Evaluating Large Language Models in Class-Level Code Generation cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
- Evaluating Large Language Models in Class-Level Code Generation cites WizardCoder: Empowering Code Large Language Models with Evol-Instruct
- Evaluating Large Language Models in Class-Level Code Generation cites The Curious Case of Neural Text Degeneration
- SWE-bench: Can Language Models Resolve Real-world Github Issues? cites InCoder: A Generative Model for Code Infilling and Synthesis
- SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites OctoPack: Instruction Tuning Code Large Language Models
- SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
- SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
- Language Models are Few-Shot Learners cites The Curious Case of Neural Text Degeneration
- DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation cites InCoder: A Generative Model for Code Infilling and Synthesis
- WizardCoder: Empowering Code Large Language Models with Evol-Instruct cites OctoPack: Instruction Tuning Code Large Language Models
- WizardCoder: Empowering Code Large Language Models with Evol-Instruct cites InCoder: A Generative Model for Code Infilling and Synthesis
- WizardCoder: Empowering Code Large Language Models with Evol-Instruct cites Language Models are Few-Shot Learners
- WizardCoder: Empowering Code Large Language Models with Evol-Instruct cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
Cited by top-tier papers76
- SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
- SWE-agent: Agent-Computer Interfaces Enable Automated Software EngineeringJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret et al.NeurIPS 2024 · 2,059 citations
- OctoPack: Instruction Tuning Code Large Language ModelsNiklas Muennighoff, Qian Liu, Armel Randy Zebaze, Qinkai Zheng et al.ICLR 2024 · 203 citations
- Evaluating Large Language Models in Class-Level Code GenerationXueying Du, Mingwei Liu, Kaixin Wang, Hanlin Wang et al.ICSE 2024 · 118 citations
- Monitor-Guided Decoding of Code LMs with Static Analysis of Repository ContextLakshya A. Agrawal, Aditya Kanade, Navin Goyal, Shuvendu K. Lahiri et al.NeurIPS 2023 · 55 citations
Builds on7
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- WizardCoder: Empowering Code Large Language Models with Evol-InstructZiyang Luo, Can Xu, Pu Zhao, Qingfeng Sun et al.ICLR 2024 · 945 citations
- DS-1000: A Natural and Reliable Benchmark for Data Science Code GenerationYuhang Lai, Chengxi Li, Yiming Wang, Tianyi Zhang et al.ICML 2023 · 504 citations
- InCoder: A Generative Model for Code Infilling and SynthesisDaniel Fried, Armen Aghajanyan, Jessy Lin, Sida Wang et al.ICLR 2023 · 140 citations
Related papers
- PythonSaga: Redefining the Benchmark to Evaluate Code Generating LLMsAnkit Yadav, Himanshu Beniwal, Mayank SinghEMNLP Findings 2024 · 12 citations
- ComplexCodeEval: A Benchmark for Evaluating Large Code Models on More Complex CodeJia Feng, Jiachen Liu, Cuiyun Gao, Chun Yong Chong et al.ASE 2024 · 7 citations
- ReCode: Robustness Evaluation of Code Generation ModelsShiqi Wang, Zheng Li, Haifeng Qian, Chenghao Yang et al.ACL 2023 · 32 citations
- McEval: Massively Multilingual Code EvaluationLinzheng Chai, Shukai Liu, Jian Yang, Yuwei Yin et al.ICLR 2025 · 1 citation
- Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'Shanchao Liang, Nan Jiang, Yiran Hu, Lin TanACL 2025 · 9 citations
