新任务评估大模型自我调用编程能力,揭示现有模型在复杂推理中的短板。
HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generation
- 设计自调用代码生成任务,要求模型先解基础题再用答案解更难题。
- o1-mini在基础测试中96.2%通过率,自调用任务降至76.2%,性能明显下降。
- 指令微调对提升推理能力帮助有限,暴露模型深层缺陷,适合研究者参考。
我们提出自调用代码生成这一新任务,用于评估大语言模型的渐进式推理与问题解决能力。在此任务中,模型需先解决一个基础问题,再利用其解决方案来应对一个相关且更复杂的子问题。本文有三项主要贡献:第一,提出生成更具挑战性版本基准测试的一般方法,构建了三个新基准:HumanEval Pro、MBPP Pro 和 BigCodeBench-Lite Pro,专为评估自调用代码生成设计;第二,基于二十个 LLM 在这些基准上的实验分析,得出两个关键发现:(i) 多数模型在传统代码生成基准(如 HumanEval、MBPP)上表现优异,但在自调用任务中性能显著下降,例如 o1-mini 在 HumanEval 上 pass@1 为 96.2%,而在 HumanEval Pro 上仅为 76.2%;(ii) 在自调用代码生成任务中,指令微调模型相比基线模型仅带来微弱提升;第三,揭示评估结果中存在的各类失败模式。上述结果凸显了在自调用代码生成任务上进一步研究的必要性,并为提升大模型代码推理能力指明新方向。
原文摘要 · Abstract (English)
We introduce self-invoking code generation, a new task designed to evaluate the progressive reasoning and problem-solving capabilities of LLMs. In this task, models are presented with a base problem and a related, more complex problem. They must solve the base problem and then utilize its solution to address the more complex one. This work features three key contributions. First, we propose a general recipe for generating more challenging versions of existing benchmarks, resulting in three new benchmarks: HumanEval Pro, MBPP Pro, and BigCodeBench-Lite Pro, specifically designed to assess LLMs on self-invoking code generation. Second, from the analysis of experimental results over twenty LLMs on our benchmarks, we have two important observations: (i) Most LLMs excel in traditional code generation benchmarks like HumanEval and MBPP, but their performance declines on self-invoking tasks. For example, o1-mini achieves 96.2% pass@1 on HumanEval but only 76.2% on HumanEval Pro. (ii) On self-invoking code generation task, the instruction-tuned models demonstrate only marginal improvements compared to the base models. Third, we disclose the types of failure modes that exist in our evaluation results. All these results underscore the need for further advancements in self-invoking code generation tasks and provide a new direction for future research on enhancing LLMs' code reasoning capabilities.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。