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

MCoNaLa:一个基于多自然语言的代码生成基准

MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languages

Carnegie Mellon University(卡内基梅隆大学);Princeton University(普林斯顿大学);Inspired Cognition(Inspired Cognition公司)

Zhiruo Wang, Grace Cuenca, Shuyan Zhou, Frank F. Xu, Graham Neubig

摘要:

虽然最近在自然语言和程序设计语言的交叉点上出现了新兴的应用程序,例如代码生成和代码摘要,但这些应用程序通常以英语为中心。这就给不精通英语的程序开发人员造成了障碍。为了减轻这种差距,在跨语言的技术发展,我们提出了一个多语言数据集,MCoNaLa,基准代码生成从自然语言命令扩展到英语之外。从英语代码/自然语言挑战(CoNaLa)数据集的方法建模,我们用三种语言注释了总共896个NL代码对:西班牙语,日语和俄语。我们提出了一个定量的性能评估的MCoNaLa数据集的测试与国家的最先进的代码生成系统。虽然这三种语言的困难各不相同,但所有系统都明显落后于英语系统,这揭示了使代码生成适应新语言的挑战。

英文摘要:

While there has been a recent burgeoning of applications at the intersection of natural and programming languages, such as code generation and code summarization, these applications are usually English-centric. This creates a barrier for program developers who are not proficient in English. To mitigate this gap in technology development across languages, we propose a multilingual dataset, MCoNaLa, to benchmark code generation from natural language commands extending beyond English. Modeled off of the methodology from the English Code/Natural Language Challenge (CoNaLa) dataset, we annotated a total of 896 NL-code pairs in three languages: Spanish, Japanese, and Russian. We present a quantitative evaluation of performance on the MCoNaLa dataset by testing with state-of-the-art code generation systems. While the difficulties vary across these three languages, all systems lag significantly behind their English counterparts, revealing the challenges in adapting code generation to new languages.

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

↑