MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languages

Zhiruo Wang, Grace Cuenca, Shuyan Zhou, Frank F. Xu, Graham Neubig
3/16/2022
cs.CL
benchmark-dataset

Official code: zorazrw/multilingual-conala (22 stars, Python, CC-BY-SA-4.0, last commit 2023-02-13).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

CC-BY-SA-4.0

[EACL'23] MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languages

221Python, ShellMar 8, 20223 years agoCC-BY-SA-4.0
benchmarkcode-generationmultilingual

Similar Papers

Cite this paper

@article{wang2022mconala,
  title  = {MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languages},
  author = {Zhiruo Wang and Grace Cuenca and Shuyan Zhou and Frank F. Xu and Graham Neubig},
  year   = {2022},
  eprint = {2203.08388},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08388}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08388.svg)](https://codeofpaper.com/paper/2203.08388)

Discussion