In plain words: Instead of training a code model on the language you want it to write, they trained it on one language and tested it on others. Training on HTML alone raised its Java problem-solving pass rate by 15.24 points, showing languages boost each other.
Abstract · Can Programming Languages Boost Each Other via Instruction Tuning?
When human programmers have mastered a programming language, it would be easier when they learn a new programming language. In this report, we focus on exploring whether programming languages can boost each other during the instruction fine-tuning phase of code large language models. We conduct extensive experiments of 8 popular programming languages (Python, JavaScript, TypeScript, C, C++, Java, Go, HTML) on StarCoder. Results demonstrate that programming languages can significantly improve each other. For example, CodeM-Python 15B trained on Python is able to increase Java by an absolute 17.95% pass@1 on HumanEval-X. More surprisingly, we found that CodeM-HTML 7B trained on the HTML corpus can improve Java by an absolute 15.24% pass@1. Our training data is released at https://github.com/NL2Code/CodeM.
Daoguang Zan, Ailun Yu, Bo Shen, Jiaxin Zhang, Taihong Chen, Bing Geng, Bei Chen, Jichuan Ji, Yafen Yao, Yongji Wang, Qianxiang Wang
arXiv:2308.16824 · cs.CL, cs.AI, cs.PL, cs.SE · submitted Aug 31, 2023 · updated Sep 3, 2023
abstract · pdf · html · Work in progress
[1] https://arxiv.org/abs/2210.07128