AlchemistCoder:通过对多源数据进行事后调优来协调与激发代码能力
AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data
AI总结:
本文提出AlchemistCoder,通过在多源数据上引入事后重新标记的数据特定提示(AlchemistPrompts)和代码理解任务,有效协调多源代码语料库的冲突,显著提升了Code LLMs的代码生成与泛化能力,在同规模模型中领先并匹敌更大模型。
摘要:
开源大型语言模型(LLMs)及其专用变体,特别是Code LLMs,近期展现出了令人瞩目的性能。然而,以往的Code LLMs通常在质量和多样性有限的单源数据上进行微调,这可能不足以激发预训练Code LLMs的潜力。在本文中,我们提出了AlchemistCoder,这是一系列在多源数据上微调的、具有增强代码生成和泛化能力的Code LLMs。为此,我们率先揭示了多源代码语料库中各种风格和质量之间的固有冲突,并引入了带有事后重新标记的数据特定提示,称为AlchemistPrompts,以协调不同的数据源和指令-响应对。此外,我们提出将数据构建过程作为代码理解任务纳入微调数据中,包括指令演化、数据过滤和代码审查。大量实验表明,AlchemistCoder在所有相同规模(6.7B/7B)的模型中保持明显领先,并匹敌甚至超越了更大的模型(15B/33B/70B),展示了我们的方法在改进指令遵循能力和推进代码智能边界方面的有效性。
英文摘要:
Open-source Large Language Models (LLMs) and their specialized variants, particularly Code LLMs, have recently delivered impressive performance. However, previous Code LLMs are typically fine-tuned on single-source data with limited quality and diversity, which may insufficiently elicit the potential of pre-trained Code LLMs. In this paper, we present AlchemistCoder, a series of Code LLMs with enhanced code generation and generalization capabilities fine-tuned on multi-source data. To achieve this, we pioneer to unveil inherent conflicts among the various styles and qualities in multi-source code corpora and introduce data-specific prompts with hindsight relabeling, termed AlchemistPrompts, to harmonize different data sources and instruction-response pairs. Additionally, we propose incorporating the data construction process into the fine-tuning data as code comprehension tasks, including instruction evolution, data filtering, and code review. Extensive experiments demonstrate that AlchemistCoder holds a clear lead among all models of the same size (6.7B/7B) and rivals or even surpasses larger models (15B/33B/70B), showcasing the efficacy of our method in refining instruction-following capabilities and advancing the boundaries of code intelligence.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。