EMNLP Findings2024
PythonSaga: Redefining the Benchmark to Evaluate Code Generating LLMs
Abstract
Driven by the surge in code generation using large language models (LLMs), numerous benchmarks have emerged to evaluate these LLMs capabilities.We conducted a large-scale human evaluation of HumanEval and MBPP, two popular benchmarks for Python code generation, analyzing their diversity and difficulty.Our findings unveil a critical bias towards a limited set of programming concepts, neglecting most of the other concepts entirely.Furthermore, we uncover a worrying prevalence of easy tasks that can inflate model performance estimations.To address these limitations, we propose a novel benchmark, PythonSaga, featuring 185 hand-crafted prompts in a balanced representation of 38 programming concepts across diverse difficulty levels.The robustness of our benchmark is demonstrated by the poor performance of existing Code-LLMs.The code and data set are openly available to the NLP community at https://github.com/ PythonSaga/PythonSaga.
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.
1 top-tier paper has 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
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
Cited by top-tier papers1
Builds on4
- CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan et al.EMNLP Findings 2020 · 2,828 citations
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program SynthesisErik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu et al.ICLR 2023 · 234 citations
- OpenCodeInterpreter: Integrating Code Generation with Execution and RefinementTianyu Zheng, Ge Zhang, Tianhao Shen, Xueling Liu et al.ACL Findings 2024 · 46 citations
- MetaGPT: Meta Programming for A Multi-Agent Collaborative FrameworkSirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng et al.ICLR 2024
Related papers
- Evaluating Large Language Models in Class-Level Code GenerationXueying Du, Mingwei Liu, Kaixin Wang, Hanlin Wang et al.ICSE 2024 · 118 citations
- NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User QueriesShudan Zhang, Hanlin Zhao, Xiao Liu, Qinkai Zheng et al.ACL Findings 2024 · 11 citations
- DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code GenerationQiming Zhu, Jialun Cao, Yaojie Lu, Hongyu Lin et al.AAAI 2025 · 25 citations
- McEval: Massively Multilingual Code EvaluationLinzheng Chai, Shukai Liu, Jian Yang, Yuwei Yin et al.ICLR 2025 · 1 citation
- Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code GenerationJiawei Liu, Chunqiu Steven Xia, Yuyao Wang, Lingming ZhangNeurIPS 2023 · 2,317 citations
