将微调更新迁移至新模型,无需重新训练即可显著提效。
Efficient Model Development through Fine-tuning Transfer
- 从源模型提取微调权重差值向量,直接应用于目标基模型。
- 迁移后模型在IFEval上提升46.9%,超越原版指令模型。
- 适合需要快速迭代的多语言、垂直领域应用开发。
现代大模型在更新时面临效率瓶颈,每次新版本发布都需重复昂贵的对齐训练。本文探索将微调更新从一个模型版本迁移到另一个版本的方法:从源模型提取微调产生的权重差值向量(diff vector),并将其应用于目标基模型。在多个开源模型版本上的实证表明,该方法能显著提升目标模型性能。例如,将Llama 3.0 8B的微调更新迁移至Llama 3.1 8B,使其在IFEval上提升46.9%,在LiveCodeBench上提升15.7%,且无需额外训练,甚至超过原生Llama 3.1 8B Instruct。在多语言任务中,马达加斯加语和土耳其语的Global MMLU分别提升4.7%和15.5%。实验还发现,融合后的模型为后续微调提供了更优初始化。控制实验表明,当源与目标模型在参数空间中处于线性可连接区域时,迁移效果最佳,并给出了理论分析。该方法为持续高效的模型开发提供了一种实用策略。代码已开源。
原文摘要 · Abstract (English)
Modern LLMs struggle with efficient updates, as each new pretrained model version requires repeating expensive alignment processes. This challenge also applies to domain- or languagespecific models, where fine-tuning on specialized data must be redone for every new base model release. In this paper, we explore the transfer of fine-tuning updates between model versions. Specifically, we derive the diff vector (representing the weight changes from finetuning) from one source model version and apply it to the base model of a different target version. Through empirical evaluations on various open-weight model versions, we show that transferring diff vectors can significantly improve the performance of the target base model. For example, transferring the fine-tuning updates from Llama 3.0 8B improves Llama 3.1 8B by 46.9% on IFEval and 15.7% on LiveCodeBench without additional training, even surpassing Llama 3.1 8B Instruct. Furthermore, we demonstrate performance gains on multilingual tasks, with 4.7% and 15.5% improvements on Global MMLU for Malagasy and Turkish, respectively. We observe that these merged models provide stronger initializations for further fine-tuning. Lastly, our controlled experiments suggest that fine-tuning transfer is most effective when source and target models lie in a linearly connected region of parameter space, and we provide a theoretical analysis of our method. Taken together, fine-tuning transfer offers a cost-efficient and practical strategy for continuous LLM development. Our code is available at github.com/pjlintw/finetuning-transfer.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。