PromptKD:通过提示调优为生成式语言模型蒸馏对学生友好的知识
PromptKD: Distilling Student-Friendly Knowledge for Generative Language Models via Prompt Tuning
AI总结:
本文提出PromptKD方法,首次在知识蒸馏中利用提示调优,使生成式语言模型能传递对学生友好的知识,在仅添加教师模型0.0007%参数的情况下实现最先进性能,并有效缓解暴露偏差。
摘要:
大型语言模型(LLMs)的最新进展引发了对推理成本的担忧,增加了对模型压缩研究的需求。虽然知识蒸馏(KD)是这方面的一种重要方法,但针对像LLMs这样的生成式语言模型的KD研究相对较少,而且蒸馏对学生友好的知识这一方法(在分类模型的KD中已显示出有前景的性能)在生成式语言模型中仍未被探索。为了探索这一方法,我们提出了PromptKD,这是一种简单而有效的方法,首次在KD中利用提示调优,使生成式语言模型能够传递对学生友好的知识。与以前分类工作中需要微调整个教师模型以提取对学生友好的知识不同,PromptKD通过添加少量提示词并仅在有学生指导的情况下调整提示来实现类似的效果。在指令遵循数据集上的大量实验表明,PromptKD实现了最先进的性能,同时仅添加了教师模型0.0007%的参数作为提示。进一步的分析表明,蒸馏对学生友好的知识在整个训练过程中有效缓解了暴露偏差,从而带来了性能提升。
英文摘要:
Recent advancements in large language models (LLMs) have raised concerns about inference costs, increasing the need for research into model compression. While knowledge distillation (KD) is a prominent method for this, research on KD for generative language models like LLMs is relatively sparse, and the approach of distilling student-friendly knowledge, which has shown promising performance in KD for classification models, remains unexplored in generative language models. To explore this approach, we propose PromptKD, a simple yet effective method that utilizes prompt tuning - for the first time in KD - to enable generative language models to transfer student-friendly knowledge. Unlike previous works in classification that require fine-tuning the entire teacher model for extracting student-friendly knowledge, PromptKD achieves similar effects by adding a small number of prompt tokens and tuning only the prompt with student guidance. Extensive experiments on instruction-following datasets show that PromptKD achieves state-of-the-art performance while adding only 0.0007% of the teacher's parameters as prompts. Further analysis suggests that distilling student-friendly knowledge alleviates exposure bias effectively throughout the entire training process, leading to performance enhancements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。