arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.05700cs.CLcs.AIcs.SE
收藏

InverseCoder: 利用 Inverse-Instruct 自我改进的指令调优代码大语言模型

InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instruct

Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Baidu Inc.(百度公司);Autodesk Research(欧特克研究院)

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

AI总结:

本文提出Inverse-Instruct数据增强方法,利用微调后的开源代码LLM为自身训练数据生成指令,扩充数据集以提升模型性能,并在多个基准上验证了其有效性。

摘要:

近期开源代码大语言模型(LLMs)的进展主要得益于对由强大的闭源LLMs生成的数据进行微调,而这些数据的获取成本高昂。本文探讨是否可以利用一个经过微调的开源模型来生成额外数据,以扩充其指令调优数据集。我们有两个观察:(1)一段代码片段可以作为不同指令的响应。(2)经过指令调优的代码LLMs在将代码翻译为指令方面优于反向翻译。基于这些观察,我们提出了Inverse-Instruct,一种数据增强技术,该技术利用微调后的LLM从其自身训练数据中为代码响应生成额外的指令。额外的指令-响应对被添加到原始数据集中,通过在增强数据集上进行微调,可以获得更强的代码LLM。我们在多种开源代码模型(如CodeLlama-Python和DeepSeek-Coder)和基准测试(如HumanEval(+)、MBPP(+)、DS-1000和MultiPL-E)上实证验证了Inverse-Instruct,表明它能够持续改进基础模型。

英文摘要:

Recent advancements in open-source code large language models (LLMs) have been driven by fine-tuning on the data generated from powerful closed-source LLMs, which are expensive to obtain. This paper explores whether it is possible to use a fine-tuned open-source model to generate additional data to augment its instruction-tuning dataset. We make two observations: (1) A code snippet can serve as the response to different instructions. (2) Instruction-tuned code LLMs perform better at translating code into instructions than the reverse. Based on these observations, we propose Inverse-Instruct, a data augmentation technique that uses a fine-tuned LLM to generate additional instructions of code responses from its own training dataset. The additional instruction-response pairs are added to the original dataset, and a stronger code LLM can be obtained by fine-tuning on the augmented dataset. We empirically validate Inverse-Instruct on a range of open-source code models (e.g. CodeLlama-Python and DeepSeek-Coder) and benchmarks (e.g., HumanEval(+), MBPP(+), DS-1000 and MultiPL-E), showing it consistently improves the base models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑