arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.02806cs.SEcs.AIcs.HC
收藏

The RealHumanEval:评估大型语言模型支持程序员的能力

The RealHumanEval: Evaluating Large Language Models' Abilities to Support Programmers

MIT-IBM Watson AI Lab(MIT-IBM Watson人工智能实验室);Massachusetts Institute of Technology(麻省理工学院);Microsoft Research(微软研究院);Carnegie Mellon University(卡内基梅隆大学);IBM Research(IBM研究院);University of California, Berkeley(加州大学伯克利分校)

Hussein Mozannar, Valerie Chen, Mohammed Alsobay, Subhro Das, Sebastian Zhao, Dennis Wei, Manish Nagireddy, Prasanna Sattigeri, Ameet Talwalkar, David Sontag

AI总结:

研究引入RealHumanEval界面评估LLM辅助程序员的能力,发现基准性能提升可增加生产力但差距不成比例,且偏好与实际表现不相关,开源工具与数据以促进以人为中心的评估。

摘要:

针对代码的大型语言模型评估主要依赖于静态基准,包括HumanEval(Chen et al., 2021),或近期使用对LLM响应的人类偏好。随着LLM日益被用作程序员助手,我们研究现有基准上的提升或更受偏好的LLM响应是否能转化为使用LLM编程时的程序员生产力,包括编码耗时。我们引入RealHumanEval,一个用于测量LLM通过自动补全或聊天支持协助程序员能力的Web界面。我们使用RealHumanEval进行了用户研究(N=243),用户与七个基础模型性能各异的LLM进行交互。尽管静态基准未包含人在回路,我们发现基准性能的提升带来了程序员生产力的增加;然而基准与人类性能之间的差距并不成比例——这一趋势在两种LLM支持形式中均成立。相反,我们发现程序员的偏好与其真实表现不相关,这促使需要更好的代理信号。我们开源RealHumanEval以支持新模型的以人为中心的评估,并公开研究数据以促进改进代码模型的努力。

英文摘要:

Evaluation of large language models for code has primarily relied on static benchmarks, including HumanEval (Chen et al., 2021), or more recently using human preferences of LLM responses. As LLMs are increasingly used as programmer assistants, we study whether gains on existing benchmarks or more preferred LLM responses translate to programmer productivity when coding with LLMs, including time spent coding. We introduce RealHumanEval, a web interface to measure the ability of LLMs to assist programmers, through either autocomplete or chat support. We conducted a user study (N=243) using RealHumanEval in which users interacted with seven LLMs of varying base model performance. Despite static benchmarks not incorporating humans-in-the-loop, we find that improvements in benchmark performance lead to increased programmer productivity; however gaps in benchmark versus human performance are not proportional -- a trend that holds across both forms of LLM support. In contrast, we find that programmer preferences do not correlate with their actual performance, motivating the need for better proxy signals. We open-source RealHumanEval to enable human-centric evaluation of new models and the study data to facilitate efforts to improve code models.

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

↑