Measuring The Impact Of Programming Language Distribution

By Gabriel Orlanski, Kefan Xiao, Xavier García, Jeffrey Hui, Joshua Howland, Jonathan Malmaud, Jacob Austin, Risha Singh, Michele Catasta. 2023

52 citations recorded by the source corpus.

Current benchmarks for evaluating neural code models focus on only a small subset of programming languages, excluding many popular languages such as Go or Rust. To ameliorate this issue, we present the BabelCode framework for execution-based evaluation of any benchmark in any language. BabelCode enables new investigations into the qualitative performance of models' memory, runtime, and individual test case results. Additionally, we present a new code translation dataset called Translating Python Programming Puzzles (TP3) from the Python Programming Puzzles (Schuster et al. 2021) benchmark that involves translating expert-level python functions to any language. With both BabelCode and the TP3 benchmark, we investigate if balancing the distributions of 14 languages in a training dataset improves a large language model's performance on low-resource languages. Training a model on a balanced corpus results in, on average, 12.34% higher $pass@k$ across all tasks and languages compared to the baseline. We find that this strategy achieves 66.48% better $pass@k$ on low-resource languages at the cost of only a 12.94% decrease to high-resource languages. In our three translation tasks, this strategy yields, on average, 30.77% better low-resource $pass@k$ while having 19.58% worse high-resource $pass@k$.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Information Systems

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. Quoc V. Le
  2. Graham Neubig
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Jianfeng Gao
  6. Noah A. Smith
  7. Percy Liang
  8. Kyunghyun Cho

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Quoc V. Le
  3. Dacheng Tao
  4. Trevor Darrell
  5. Andrew Zisserman
  6. Yi Yang
  7. Xiaogang Wang
  8. Cordelia Schmid

In Information Systems

  1. Xinyun Chen
  2. Sebastian Gehrmann
  3. Denny Zhou
  4. Maxwell Lin
  5. Aleksandra Piktus
  6. Yi Tay
  7. Colin Cherry
  8. J. Clark

Citations in the corpus