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

TuneShift-KD:用于微调模型的知识蒸馏与迁移

TuneShift-KD: Knowledge Distillation and Transfer for Fine-tuned Models

Department of Computer Science, University of Toronto(多伦多大学计算机科学系);Vector Institute, Toronto, Canada(多伦多大学向量研究所)

Yushi Guan, Jeanine Ohene-Agyei, Daniel Kwan, Jean Sebastien Dandurand, Yifei Zhang, Nandita Vijaykumar

AI总结:

本文提出TuneShift-KD方法,通过少量示例自动将微调模型的专业知识蒸馏并迁移到目标模型,利用困惑度差异识别专业领域知识,无需训练判别器或训练数据集。

摘要:

为了将领域特定或专业化的知识嵌入到预训练基础模型中,使用参数高效微调(如LoRA)等技术进行微调是一种常见做法。然而,随着新LLM架构和预训练模型的出现,将这种专业化知识转移到新模型成为重要任务。在许多场景中,原始专业化数据由于隐私或商业限制不可用,需要从微调的基础模型中蒸馏和转移到不同的预训练模型。我们提出了TuneShift-KD,一种新颖的方法,仅使用少量代表性示例,自动将微调模型的专业知识蒸馏到目标模型。我们的关键见解是通过基础模型和微调模型之间的困惑度差异来识别专业知识:提示中,微调模型自信回应(低困惑度),而基础模型挣扎(高困惑度),表明对应于微调模型学习的专业知识的查询。TuneShift-KD利用这一见解创建合成训练数据集来转移专业知识。通过迭代过程,TuneShift-KD生成更多与生成专业回复的提示相似的提示。TuneShift-KD不需要训练判别器或访问训练数据集。它是一种自动化的方法,仅需要初始微调和基础模型以及少量代表性提示。我们的实验表明,使用TuneShift-KD微调的模型比先前方法更准确,使部署更加容易,并更有效地转移专业知识。

英文摘要:

To embed domain-specific or specialized knowledge into pre-trained foundation models, fine-tuning using techniques such as parameter efficient fine-tuning (e.g. LoRA) is a common practice. However, as new LLM architectures and pre-trained models emerge, transferring this specialized knowledge to newer models becomes an important task. In many scenarios, the original specialized data may be unavailable due to privacy or commercial restrictions, necessitating distillation and transfer of this specialized knowledge from the fine-tuned base model to a different pre-trained model. We present TuneShift-KD, a novel approach that automatically distills specialized knowledge from a fine-tuned model to a target model using only a few examples representative of the specialized information. Our key insight is that specialized knowledge can be identified through perplexity differences between base and fine-tuned models: prompts where the fine-tuned model responds confidently (low perplexity), but the base model struggles (high perplexity), indicate queries corresponding to the specialized knowledge learned by the fine-tuned model. TuneShift-KD leverages this insight to create a synthetic training dataset to transfer the specialized knowledge. Using an iterative process, TuneShift-KD generates more prompts similar to those that generated responses with specialized knowledge. TuneShift-KD does not require training discriminators or access to training datasets. It is an automated approach that only requires the initial fine-tuned and base models and a few representative prompts. Our experiments demonstrate that models fine-tuned using TuneShift-KD achieve higher accuracy than prior approaches, enabling ease of deployment and more effective transfer of the specialized knowledge.

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

↑