arXiv:2603.24518cs.LG2026-03被引 1

用少量样本将微调模型的知识自动迁移到新模型,无需原始数据。

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

  • 通过困惑度差异识别微调模型的专有知识,生成合成训练数据。
  • 仅需少数代表性提示即可实现知识迁移,效果优于现有方法。
  • 无需访问原始数据或训练判别器,适合隐私敏感场景。

为将领域特定或专业性知识嵌入预训练基础模型,通常采用参数高效微调(如LoRA)等技术。然而,随着新型大模型架构和预训练模型不断涌现,如何将此类专有知识迁移到新模型成为重要挑战。在许多情况下,原始专有数据因隐私或商业限制无法获取,因此需要从微调过的基模型中蒸馏并转移知识到目标模型。本文提出TuneShift-KD,一种新颖方法:仅使用少量代表性的专有信息示例,即可自动从微调模型中蒸馏知识并传递至目标模型。核心洞察是:在基模型困惑度高而微调模型困惑度低的提示中,往往蕴含着微调模型所学得的专有知识。TuneShift-KD利用此特性生成合成训练数据,并通过迭代过程生成更多类似提示。该方法不依赖判别器训练,也不需要原始训练数据,仅需初始微调模型、基模型及少量代表性提示。实验表明,采用TuneShift-KD微调后的模型在准确性上优于先前方法,实现更易部署、更高效的专有知识迁移。

原文摘要 · Abstract (English)

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.

知识蒸馏模型迁移微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。