PLLGAug 19, 2023

Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMs

arXiv:2308.09895v680 citationsh-index: 28
Originality Incremental advance
AI Analysis

It addresses the challenge of improving Code LLM performance for low-resource programming languages, which is important for developers and researchers working with languages like Julia, Lua, OCaml, R, and Racket, representing an incremental advancement in data generation methods.

This paper tackles the problem of Code LLMs performing poorly on low-resource programming languages due to limited training data, by introducing MultiPL-T, an approach that translates high-resource language data into validated semi-synthetic data for low-resource languages, resulting in fine-tuned models that outperform other open Code LLMs on benchmarks like MultiPL-E.

Over the past few years, Large Language Models of Code (Code LLMs) have started to have a significant impact on programming practice. Code LLMs are also emerging as building blocks for research in programming languages and software engineering. However, Code LLMs produce impressive results on programming languages that are well represented in their training data (e.g., Java, Python, or JavaScript), but struggle with low-resource languages that have limited training data available. Low resource languages include OCaml, Racket, and several others. This paper presents an effective approach for boosting the performance of Code LLMs on low-resource languages using semi-synthetic data. Our approach, MultiPL-T, translates training data from high-resource languages into training data for low-resource languages in the following way. 1) We use a Code LLM to synthesize tests for commented code from a high-resource language, filtering out faulty tests and code with low test coverage. 2) We use a Code LLM to translate Python code to a target low-resource language, and use tests to validate the translation. We apply this approach to generate tens of thousands of validated training items for Julia, Lua, OCaml, R, and Racket. Furthermore, we use an open model (StarCoderBase) with open training data (The Stack), which allows us to decontaminate benchmarks, train models without violating licenses, and run experiments that could not otherwise be done. With MultiPL-T generated data, we present fine-tuned versions of StarCoderBase and Code Llama for Julia, Lua, OCaml, R, and Racket. On established benchmarks (MultiPL-E), these models outperform other open Code LLMs. The MultiPL-T approach is easy to apply to new languages, and is significantly more efficient and effective than alternatives such as training longer.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes