Multi-lingual Evaluation of Code Generation Models

By Ben Athiwaratkun, Sanjay Krishna Gouda, Zijian Wang, Xiaopeng Li, Yuchen Tian, Ming Tan, Wasi Uddin Ahmad, Shiqi Wang, Qing Sun, Mingyue Shang and 15 more. 2022

247 citations recorded by the source corpus.

We present new benchmarks on evaluation code generation models: MBXP and Multilingual HumanEval, and MathQA-X. These datasets cover over 10 programming languages and are generated using a scalable conversion framework that transpiles prompts and test cases from the original Python datasets into the corresponding data in the target language. Using these benchmarks, we are able to assess the performance of code generation models in a multi-lingual fashion, and discovered generalization ability of language models on out-of-domain languages, advantages of multi-lingual models over mono-lingual, the ability of few-shot prompting to teach the model new languages, and zero-shot translation abilities even on mono-lingual settings. Furthermore, we use our code generation model to perform large-scale bootstrapping to obtain synthetic canonical solutions in several languages, which can be used for other code-related evaluations such as code insertion, robustness, or summarization tasks. Overall, our benchmarks represents a significant step towards a deeper understanding of language models' code generation abilities. We publicly release our code and datasets at https://github.com/amazon-research/mxeval.

Subfields: Artificial Intelligence, Information Systems, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Graham Neubig
  2. Mohit Bansal
  3. Jianfeng Gao
  4. Percy Liang
  5. Luke S. Zettlemoyer
  6. Yonatan Belinkov
  7. Xinyun Chen
  8. Denny Zhou

In Information Systems

  1. Uri Alon
  2. Shuyan Zhou
  3. Daniel Fried
  4. Xinyun Chen
  5. Graham Neubig
  6. Denny Zhou
  7. Zhi Jin
  8. Armando Solar-Lezama

In Code Generation & Program Synthesis

  1. Shuyan Zhou
  2. Uri Alon
  3. Qian Liu
  4. Graham Neubig
  5. Armando Solar-Lezama
  6. Xinyun Chen
  7. Noah D. Goodman
  8. Raymond Li

Citations in the corpus