InverseCoder: Unleashing the Power of Instruction-Tuned Code LLMs with Inverse-Instruct
<|reference_start|>InverseCoder: Unleashing the Power of Instruction-Tuned Code LLMs with Inverse-Instruct: Recent advancements in open-source code large language models (LLMs) have demonstrated remarkable coding abilities by fine-tuning on the data generated from powerful closed-source LLMs such as GPT-3.5 and GPT-4 for instruction tuning. This paper explores how to further improve an instruction-tuned code LLM by generating data from itself rather than querying closed-source LLMs. Our key observation is the misalignment between the translation of formal and informal languages: translating formal language (i.e., code) to informal language (i.e., natural language) is more straightforward than the reverse. Based on this observation, we propose INVERSE-INSTRUCT, which summarizes instructions from code snippets instead of the reverse. Specifically, given an instruction tuning corpus for code and the resulting instruction-tuned code LLM, we ask the code LLM to generate additional high-quality instructions for the original corpus through code summarization and self-evaluation. Then, we fine-tune the base LLM on the combination of the original corpus and the self-generated one, which yields a stronger instruction-tuned LLM. We present a series of code LLMs named InverseCoder, which surpasses the performance of the original code LLMs on a wide range of benchmarks, including Python text-to-code generation, multilingual coding, and data-science code generation.<|reference_end|>
@article{wu2024inversecoder:,
    title={InverseCoder: Unleashing the Power of Instruction-Tuned Code LLMs with
  Inverse-Instruct},
    author={Yutong Wu, Di Huang, Wenxuan Shi, Wei Wang, Lingzhe Gao, Shihao Liu,
  Ziyuan Nan, Kaizhao Yuan, Rui Zhang, Xishan Zhang, Zidong Du, Qi Guo, Yewen
  Pu, Dawei Yin, Xing Hu, Yunji Chen},
    journal={arXiv preprint arXiv:2407.05700},
    year={2024},
    archivePrefix={arXiv},
    eprint={2407.05700},
    primaryClass={cs.CL cs.AI cs.SE}
}