PythonSaga:重新定义评估代码生成大语言模型的基准
PythonSaga: Redefining the Benchmark to Evaluate Code Generating LLMs
AI总结:
针对现有Python代码生成基准存在概念覆盖偏差和简单任务过多的问题,本文提出包含185个提示、均衡覆盖38个编程概念的新基准PythonSaga,并通过现有代码LLMs的较差表现验证了其稳健性。
摘要:
在大语言模型(LLMs)代码生成热潮的推动下,涌现出大量用于评估这些LLMs能力的基准。我们对HumanEval和MBPP这两个流行的Python代码生成基准进行了大规模人工评估,分析了它们的多样性和难度。我们的发现揭示了一个严重的偏差:这些基准偏向于有限的编程概念集合,而完全忽略了大多数其他概念。此外,我们揭示了一个令人担忧的问题:简单任务普遍存在,可能虚高了模型性能的估计。为了解决这些局限性,我们提出了一个新的基准PythonSaga,包含185个人工设计的提示,均衡地覆盖了38个编程概念,并跨越不同的难度级别。现有代码LLMs在PythonSaga上的不佳表现证明了我们基准的稳健性。
英文摘要:
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, potentially inflating model performance estimations. To address these limitations, we propose a novel benchmark, PythonSaga, featuring 185 hand-crafted prompts on 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。