arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.03810cs.SEcs.AIcs.CLcs.LG
收藏

你的代码大语言模型表现如何?用高质量数据赋能代码指令微调

How Do Your Code LLMs Perform? Empowering Code Instruction Tuning with High-Quality Data

Beijing University of Posts and Telecommunications(北京邮电大学);Meituan(美团)

Yejie Wang, Keqing He, Dayuan Fu, Zhuoma Gongque, Heyang Xu, Yanxu Chen, Zhexu Wang, Yujia Fu, Guanting Dong, Muxi Diao, Jingang Wang, Mengdi Zhang, Xunliang Cai, Weiran Xu

AI总结:

针对代码指令数据泄漏与质量难辨问题,提出基于复杂度、回答质量和多样性的高效数据剪枝策略,并据此训练 LLaMA3 微调模型 XCoder,以更少数据达到新的最优性能。

摘要:

近来,人们越来越关注如何构建更好的代码指令微调数据。然而,我们观察到,使用这些数据集训练的代码模型在 HumanEval 上表现出色,但在 LiveCodeBench 等其他基准测试上表现较差。进一步调查后,我们发现许多数据集存在严重的数据泄漏问题。在清理了大部分泄漏数据后,一些知名的高质量数据集表现不佳。这一发现揭示了一个新挑战:识别哪个数据集才真正称得上高质量代码指令数据。为解决该问题,我们提出了一种高效的代码数据剪枝策略,用于筛选优质样本。我们的方法基于三个维度:指令复杂度、回答质量和指令多样性。基于筛选出的数据,我们推出了 XCoder,这是一组由 LLaMA3 微调得到的模型。实验表明,XCoder 使用更少的训练数据即取得了新的最优性能,验证了我们数据策略的有效性。此外,我们对数据组成进行了全面分析,发现现有代码数据集根据其构建方法具有不同特征,这为未来的代码大语言模型提供了新的见解。我们的模型和数据集已发布于 https://github.com/banksy23/XCoder

英文摘要:

Recently, there has been a growing interest in studying how to construct better code instruction tuning data. However, we observe Code models trained with these datasets exhibit high performance on HumanEval but perform worse on other benchmarks such as LiveCodeBench. Upon further investigation, we find that many datasets suffer from severe data leakage. After cleaning up most of the leaked data, some well-known high-quality datasets perform poorly. This discovery reveals a new challenge: identifying which dataset genuinely qualify as high-quality code instruction data. To address this, we propose an efficient code data pruning strategy for selecting good samples. Our approach is based on three dimensions: instruction complexity, response quality, and instruction diversity. Based on our selected data, we present XCoder, a family of models finetuned from LLaMA3. Our experiments show XCoder achieves new state-of-the-art performance using fewer training data, which verify the effectiveness of our data strategy. Moreover, we perform a comprehensive analysis on the data composition and find existing code datasets have different characteristics according to their construction methods, which provide new insights for future code LLMs. Our models and dataset are released in https://github.com/banksy23/XCoder

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

↑