arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.21227cs.SEcs.AI
收藏

TaskEval:评估大型语言模型代码生成任务难度

TaskEval: Assessing Difficulty of Code Generation Tasks for Large Language Models

SnT, University of Luxembourg(卢森堡大学SnT研究所);Huawei Distributed Scheduling and Data Engine Lab(华为分布式调度与数据引擎实验室)

Florian Tambon, Amin Nikanjam, Cyrine Zid, Foutse Khomh, Giuliano Antoniol

AI总结:

TaskEval提出一种基于多样化提示和项目反应理论的框架,用于评估代码生成任务难度及LLM能力,通过分析基准任务特征和编程结构,辅助改进LLM评估。

摘要:

大型语言模型(LLMs)在代码生成等代码相关任务中表现出色,但基准评估往往忽略了任务特征,如难度。此外,基准通常使用单一提示描述的任务构建,尽管提示的表述对结果有深远影响。本文提出了一种通用方法TaskEval,一个使用多样化提示和项目反应理论(IRT)的框架,以高效评估LLMs的能力和基准任务特征,增进对其性能的理解。使用两个代码生成基准HumanEval+和ClassEval,以及8个代码生成LLMs,我们展示了TaskEval能够刻画任务属性。通过主题分析,我们识别并分析了基准中17个和21个主题的任务。我们还交叉分析了任务特征与LLMs使用的编程结构(如变量赋值、条件等),强调了与任务难度相关的一些模式。最后,我们对人类标注者和LLMs的任务难度评估进行了比较。与当前基准评估工作正交,TaskEval可以帮助研究人员和从业者促进对LLMs更好的评估。任务特征可用于识别现有基准中的不足或改进LLMs的评估。

英文摘要:

Large Language Models (LLMs) excel in code-related tasks like code generation, but benchmark evaluations often overlook task characteristics, such as difficulty. Moreover, benchmarks are usually built using tasks described with a single prompt, despite the formulation of prompts having a profound impact on the outcome. This paper introduces a generalist approach, TaskEval, a framework using diverse prompts and Item Response Theory (IRT) to efficiently assess LLMs' capabilities and benchmark task characteristics, improving the understanding of their performance. Using two code generation benchmarks, \textit{HumanEval}+ and \textit{ClassEval}, as well as 8 code generation LLMs, we show that \textit{TaskEval} is capable of characterising the properties of tasks. Using topic analysis, we identify and analyse the tasks of 17 and 21 topics within the benchmarks. We also cross-analyse tasks' characteristics with programming constructs (e.g., variable assignment, conditions, etc.) used by LLMs, emphasising some patterns with tasks' difficulty. Finally, we conduct a comparison between the difficulty assessment of tasks by human annotators and LLMs. Orthogonal to current benchmarking evaluation efforts, \textit{TaskEval} can assist researchers and practitioners in fostering better assessments of LLMs. The tasks' characteristics can be used to identify shortcomings within existing benchmarks or improve the evaluation of LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑