Investigating the Transferability of Code Repair for Low-Resource Programming Languages
Kyle Wong, Alfonso Amayuelas, Liangming Pan, William Yang Wang
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.- Anthology ID:
- 2025.findings-naacl.190
- Volume:
- Findings of the Association for Computational Linguistics: NAACL 2025
- Month:
- April
- Year:
- 2025
- Address:
- Albuquerque, New Mexico
- Editors:
- Luis Chiruzzo, Alan Ritter, Lu Wang
- Venue:
- Findings
- SIG:
- Publisher:
- Association for Computational Linguistics
- Note:
- Pages:
- 3410–3432
- Language:
- URL:
- https://preview.aclanthology.org/fix-sig-urls/2025.findings-naacl.190/
- DOI:
- Cite (ACL):
- Kyle Wong, Alfonso Amayuelas, Liangming Pan, and William Yang Wang. 2025. Investigating the Transferability of Code Repair for Low-Resource Programming Languages. In Findings of the Association for Computational Linguistics: NAACL 2025, pages 3410–3432, Albuquerque, New Mexico. Association for Computational Linguistics.
- Cite (Informal):
- Investigating the Transferability of Code Repair for Low-Resource Programming Languages (Wong et al., Findings 2025)
- PDF:
- https://preview.aclanthology.org/fix-sig-urls/2025.findings-naacl.190.pdf