arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.00558cs.CLcs.AIcs.SE
收藏

AMR-Evol:自适应模块化响应进化激发代码生成大语言模型更优的知识蒸馏

AMR-Evol: Adaptive Modular Response Evolution Elicits Better Knowledge Distillation for Large Language Models in Code Generation

Hong Kong Baptist University(香港浸会大学);Alibaba DAMO Academy(阿里巴巴达摩院)

Ziyang Luo, Xin Li, Hongzhan Lin, Jing Ma, Lidong Bing

AI总结:

针对代码生成大语言模型知识蒸馏中响应质量被忽视的问题,提出AMR-Evol框架,通过模块化分解和自适应响应进化两阶段优化响应蒸馏,在多个代码基准上取得显著性能提升。

摘要:

GPT4等专有大型语言模型在代码生成中的出色表现,引发了一种通过知识蒸馏(如Code Evol-Instruct)在开源模型中复制这些能力的趋势。然而,这些工作往往忽视了响应质量这一关键方面,严重依赖教师模型进行直接响应蒸馏。这种范式,尤其是对于复杂指令,可能会降低合成数据的质量,从而损害知识蒸馏过程。为此,本研究引入了自适应模块化响应进化(AMR-Evol)框架,该框架采用两阶段过程来优化响应蒸馏。第一阶段,模块化分解,将直接响应分解为更易于管理的子模块。第二阶段,自适应响应进化,利用相关功能模块自动进化响应。我们在三个流行的代码基准(HumanEval、MBPP和EvalPlus)上的实验证明了AMR-Evol框架相对于基线响应蒸馏方法的优越性。通过与在相似规模数据上训练的开源代码大语言模型进行比较,我们观察到性能提升:在HumanEval-Plus上超过+3.0分,在MBPP-Plus上超过+1.0分,这凸显了我们框架的有效性。我们的代码可在https://github.com/ChiYeungLaw/AMR-Evol获取。

英文摘要:

The impressive performance of proprietary LLMs like GPT4 in code generation has led to a trend to replicate these capabilities in open-source models through knowledge distillation (e.g. Code Evol-Instruct). However, these efforts often neglect the crucial aspect of response quality, relying heavily on teacher models for direct response distillation. This paradigm, especially for complex instructions, can degrade the quality of synthesized data, compromising the knowledge distillation process. To this end, our study introduces the Adaptive Modular Response Evolution (AMR-Evol) framework, which employs a two-stage process to refine response distillation. The first stage, modular decomposition, breaks down the direct response into more manageable sub-modules. The second stage, adaptive response evolution, automatically evolves the response with the related function modules. Our experiments with three popular code benchmarks (HumanEval, MBPP, and EvalPlus) attest to the superiority of the AMR-Evol framework over baseline response distillation methods. By comparing with the open-source Code LLMs trained on a similar scale of data, we observed performance enhancements: more than +3.0 points on HumanEval-Plus and +1.0 points on MBPP-Plus, which underscores the effectiveness of our framework. Our codes are available at https://github.com/ChiYeungLaw/AMR-Evol.

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

↑