arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.01438cs.SE
收藏

探究多种自然语言对使用GitHub Copilot的代码建议的影响

Exploring the Effect of Multiple Natural Languages on Code Suggestion Using GitHub Copilot

Kei Koyanagi, Dong Wang, Kotaro Noguchi, Masanari Kondo, Alexander Serebrenik, Yasutaka Kamei, Naoyasu Ubayashi

AI总结:

本研究针对自然语言对AI代码工具GitHub Copilot代码建议效果的影响开展实证,用756道不同难度AtCoder题目测试英、日、中文,发现语言间表现有差异且中文最差,难度升高性能均显著下降,为相关研究提供了新方向。

摘要:

GitHub Copilot是一款实现程序合成自动化的AI工具,自2021年推出以来受到广泛关注。近期研究已大量考察了Copilot在各类编程任务中的能力及其安全问题,但不同自然语言对代码建议的影响仍鲜为人知。自然语言被认为是自然语言处理领域的一种社会偏差,这种偏差可能会影响软件工程的多样性。为填补这一空白,我们开展了一项实证研究,探究三种流行自然语言(英语、日语、中文)对Copilot的影响。我们使用了来自AtCoder竞赛的756道不同难度级别的题目用于评估。结果表明,Copilot的能力因自然语言的不同而存在差异,其中中文的表现最差。此外,无论使用哪种自然语言,其性能都会随着题目难度的提升而显著下降。我们的工作是理解自然语言在Copilot能力中重要性的初步一步,也为未来的研究带来了有前景的方向。

英文摘要:

GitHub Copilot is an AI-enabled tool that automates program synthesis. It has gained significant attention since its launch in 2021. Recent studies have extensively examined Copilot's capabilities in various programming tasks, as well as its security issues. However, little is known about the effect of different natural languages on code suggestion. Natural language is considered a social bias in the field of NLP, and this bias could impact the diversity of software engineering. To address this gap, we conducted an empirical study to investigate the effect of three popular natural languages (English, Japanese, and Chinese) on Copilot. We used 756 questions of varying difficulty levels from AtCoder contests for evaluation purposes. The results highlight that the capability varies across natural languages, with Chinese achieving the worst performance. Furthermore, regardless of the type of natural language, the performance decreases significantly as the difficulty of questions increases. Our work represents the initial step in comprehending the significance of natural languages in Copilot's capability and introduces promising opportunities for future endeavors.

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

↑