English

Investigating the Transferability of Code Repair for Low-Resource Programming Languages

Machine Learning 2024-10-17 v2 Artificial Intelligence Computation and Language

Abstract

Large language models (LLMs) have shown remarkable performance on code generation tasks. A recent use case is iterative code repair, where an LLM fixes an incorrect program by rationalizing about errors and generating new code. Recent works augment the code repair process by integrating modern techniques such as chain-of-thought reasoning or distillation, but only study their benefits on high-resource languages like Python, and ignore low-resource languages like Perl. To address this gap of knowledge, we investigate the benefits of distilling code repair for both high and low resource languages to determine if the techniques that are effective in a high resource setting are also applicable in a low resource setting. Our evaluation shows that distilling the ability to repair code has language dependent benefits. To explain this behavior, we perform a further analysis and find that contrary to preexisting beliefs, the correlation between reasoning ability and code correction ability is weak. We hypothesize this weak correlation is magnified in low-resource settings where base models lack deep knowledge of a programming language, leading to wavering benefits of code repair.

Keywords

Cite

@article{arxiv.2406.14867,
  title  = {Investigating the Transferability of Code Repair for Low-Resource Programming Languages},
  author = {Kyle Wong and Alfonso Amayuelas and Liangming Pan and William Yang Wang},
  journal= {arXiv preprint arXiv:2406.14867},
  year   = {2024}
}
R2 v1 2026-06-28T17:14:18.612Z