以用户为中心的代码生成工具评估
User Centric Evaluation of Code Generation Tools
AI总结:
针对现有大语言模型评估多侧重能力对比、缺乏可用性考量的问题,本文提出以用户为中心的代码生成工具评估方法,并通过实验验证ChatGPT生成R代码的实用性,同时指出其简洁性有待提升。
摘要:
随着机器学习(ML)技术的快速发展,大语言模型(LLM)作为从自然语言需求生成程序代码的智能工具正得到越来越多的研究。然而,现有对LLM的评估多聚焦于将其能力与人类进行对比。在决定是否在软件生产中使用LLM时,评估其可用性十分必要。本文为此提出了一种以用户为中心的方法。该方法在基准测试的测试用例中加入元数据以描述其使用场景,采用模拟LLM使用过程的多次尝试流程开展测试,从一组反映可用性的质量属性维度衡量LLM生成的解决方案,并基于用户将LLM作为工具使用的体验评估其性能。\n本文还报告了采用该方法评估ChatGPT作为R编程语言代码生成工具可用性的案例研究。实验表明,尽管ChatGPT在高难度编程任务上可能失败,但它在生成R程序代码方面实用性很强。用户体验良好,总体平均尝试次数为1.61次,平均完成时间为47.02秒。实验还发现,其可用性最薄弱的方面是简洁性,得分为3.80分(满分5分)。
英文摘要:
With the rapid advance of machine learning (ML) technology, large language models (LLMs) are increasingly explored as an intelligent tool to generate program code from natural language specifications. However, existing evaluations of LLMs have focused on their capabilities in comparison with humans. It is desirable to evaluate their usability when deciding on whether to use a LLM in software production. This paper proposes a user centric method for this purpose. It includes metadata in the test cases of a benchmark to describe their usages, conducts testing in a multi-attempt process that mimics the uses of LLMs, measures LLM generated solutions on a set of quality attributes that reflect usability, and evaluates the performance based on user experiences in the uses of LLMs as a tool. The paper also reports a case study with the method in the evaluation of ChatGPT's usability as a code generation tool for the R programming language. Our experiments demonstrated that ChatGPT is highly useful for generating R program code although it may fail on hard programming tasks. The user experiences are good with overall average number of attempts being 1.61 and the average time of completion being 47.02 seconds. Our experiments also found that the weakest aspect of usability is conciseness, which has a score of 3.80 out of 5.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。