arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.08603cs.SE
收藏

竞争规划AI的实证评价--以AlphaCode为例

An Empirical Evaluation of Competitive Programming AI: A Case Study of AlphaCode

Sila Lertbanjongngam, Bodin Chinthanet, Takashi Ishio, Raula Gaikovina Kula, Pattara Leelaprute, Bundit Manaskasemsak, Arnon Rungsawang, Kenichi Matsumoto

摘要:

AlphaCode是一个代码生成系统,用于帮助软件开发人员使用自然语言问题描述解决竞争性编程问题。尽管代码生成系统具有优势,但开源社区对实用性和数据许可表示担忧。然而,没有研究调查生成的代码在代码克隆和性能方面。在本文中,我们进行了实证研究,以找到代码的相似性和性能差异AlphaCode生成的代码和人类代码。结果表明:(i)AlphaCode生成的代码与人类代码相似(即,平均最大相似性得分为0.56)以及(i i)所生成的代码在执行时间和存储器使用方面与人类代码表现得相当或更差。此外,AlphaCode倾向于为低难度问题(即,四种情况具有完全相同的代码)。它还使用了过多的嵌套循环和不必要的变量声明来解决高难度的问题,这导致我们的手动调查性能低下。复制程序包可从https:/doi.org/10.5281/zenodo.6820681获得

英文摘要:

AlphaCode is a code generation system for assisting software developers in solving competitive programming problems using natural language problem descriptions. Despite the advantages of the code generating system, the open source community expressed concerns about practicality and data licensing. However, there is no research investigating generated codes in terms of code clone and performance. In this paper, we conduct an empirical study to find code similarities and performance differences between AlphaCode-generated codes and human codes. The results show that (i) the generated codes from AlphaCode are similar to human codes (i.e., the average maximum similarity score is 0.56) and (ii) the generated code performs on par with or worse than the human code in terms of execution time and memory usage. Moreover, AlphaCode tends to generate more similar codes to humans for low-difficulty problems (i.e., four cases have the exact same codes). It also employs excessive nested loops and unnecessary variable declarations for high-difficulty problems, which cause low performance regarding our manual investigation. The replication package is available at https:/doi.org/10.5281/zenodo.6820681

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

↑