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
- Quoc V. Le
- Graham Neubig
- Luke S. Zettlemoyer
- Mohit Bansal
- Jianfeng Gao
- Noah A. Smith
- Percy Liang
- Kyunghyun Cho
In Computer Vision and Pattern Recognition
- Luc Van Gool
- Quoc V. Le
- Dacheng Tao
- Trevor Darrell
- Andrew Zisserman
- Yi Yang
- Xiaogang Wang
- Cordelia Schmid
In Information Systems
- Xinyun Chen
- Sebastian Gehrmann
- Denny Zhou
- Maxwell Lin
- Aleksandra Piktus
- Yi Tay
- Colin Cherry
- J. Clark
Citations in the corpus
- PaLM 2 Technical Report (2023, methodology): “Table 18: Pass rates for PaLM and PaLM-2 experiments on BabelCode (Orlanski et al., 2023).”
- SWE-bench: Can Language Models Resolve Real-World GitHub Issues? (2023, background): “In the past year, subsequent benchmarks have sought to augment HumanEval with extensions to different languages (Cassano et al., 2022; Athiwaratkun et al., 2023; Orlanski et al., 2023), variations in edit scope (Yu et al.”
- Scaling Data-Constrained Language Models (2023, methodology): “Up-sampling is often employed when pre-training data is partly limited, such as data from a high-quality domain like Wikipedia or text in a rare language for training multilingual LLMs [60, 82].”
- Teaching Large Language Models to Self-Debug (2023, background): “### Task Start ### # These are the assertions for your function: assert small_nnum([10, 20, 50, 70, 90, 20, 50, 40, 60, 80, 100],2)==[10,20]”