缩小大型语言模型评估中的复杂性差距
Narrowing the Complexity Gap in the Evaluation of Large Language Models
AI总结:
GeneBench通过增加编程基准的复杂性,揭示了LLMs在真实世界任务中的表现下降,证明了其评估的挑战性。
摘要:
在真实世界代码复杂性方面评估大型语言模型(LLMs)至关重要。否则,基于简单基准的LLMs编程能力的高估可能会在实际应用中带来失望。最近,研究者通过挖掘或增强开源仓库构建了更现实的基准。此类解决方案通常任务特定。从真实世界项目中控制数据质量也可能耗时且容易出错。更重要的是,基于固定基准问题评估LLMs会受到数据污染和过拟合的影响。我们提出了GeneBench,一种自动化技术,用于向任何编程基准添加真实世界复杂性。GeneBench利用多目标优化来增加编程问题的复杂性,同时保持代码的可读性,类似于真实世界的程序。通过使用GeneBench转换四个广泛使用的编程基准,并在这些基准上评估13个LLMs(包括两个推理LLMs),在所有编程任务中都显示出显著的性能下降(14.9%-60.5%,平均35.2%),证明了LLMs在真实世界复杂性下的挣扎。即使当LLMs被少量提示或用不同版本的GeneBench示例进行微调时,这种挣扎依然存在,证明了问题的挑战性。最后,我们展示了在GeneBench和SWE-Bench上研究的LLMs在修复bug时的性能相似。此外,所有研究的LLMs在不同版本的GeneBench下四个任务中性能下降的一致再现,使该技术适合评估LLMs而无需花费成本构建真实世界基准。
英文摘要:
Evaluating Large Language Models (LLMs) with respect to real-world code complexity is essential. Otherwise, there is a risk of overestimating LLMs' programming abilities based on simplistic benchmarks, only to be disappointed when using them in real-world settings. Recently, researchers explored the construction of more realistic benchmarks by mining or augmenting open-source repositories. Such solutions are usually task-specific. Data quality control from real-world projects can also be time-consuming and error-prone. More importantly, evaluating LLMs on fixed benchmark problems is subject to data contamination and overfitting. We propose GeneBench, an automated technique to add real-world complexities to any programming benchmark. GeneBench leverages a multi-objective optimization to increase the complexity of programming problems while maintaining the readability of code similar to real-world programs. Transforming four widely-used programming benchmarks using GeneBench and evaluating 13 LLMs (including two reasoning LLMs) on them shows a notable performance drop across all programming tasks (14.9%-60.5%, avg=35.2%), demonstrating LLMs' struggle under real-world complexities. The struggle persists even when LLMs are few-shot prompted or fine-tuned with examples from different versions of GeneBench, demonstrating the challenging nature of the problems. Finally, we show that the performance of the studied LLMs in bug repair is similar under GeneBench and SWE-Bench. This, along with the consistent reproduction of performance drop of all studied LLMs across four tasks under different versions of GeneBench, makes the technique suitable to evaluate LLMs without costly construction of real-world benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。