arXiv:2505.12716cs.CLcs.AI2025-05被引 8

用基础模型的微调更新来提升指令模型性能,效果显著且无需新增参数。

Shadow-FT: Tuning Instruct Model via Training on Paired Base Model

  • 通过微调基础模型并直接迁移权重更新到指令模型。
  • 在19个基准上优于全参数和高效微调方法,性能提升明显。
  • 适合希望低成本提升大模型表现的研究者和开发者。

大型语言模型(LLMs)在各类任务中持续受益于进一步微调。然而,我们发现直接对指令微调(Instruct)模型进行微调常导致收益微弱甚至性能下降。值得注意的是,作为指令模型基础的配对基础模型(Base model),其权重平均差异不足2%(以Llama 3.1 8B为例)。基础模型本身是良好学习者,但缺乏后训练时表现较弱。为此,我们提出一种新框架Shadow-FT,通过对应的基础模型来微调指令模型。核心思想是先微调基础模型,并将学习到的权重更新直接嫁接到指令模型。Shadow-FT不引入额外参数,实现简单,性能显著提升。我们在Qwen 3和Llama 3系列等主流模型上进行了广泛实验,覆盖编码、推理和数学任务的19个基准。结果表明,Shadow-FT始终优于传统全参数和参数高效微调方法。进一步分析显示,该方法可应用于多模态大模型(MLLMs),并可与直接偏好优化(DPO)结合。代码与权重已开源于GitHub。

原文摘要 · Abstract (English)

Large language models (LLMs) consistently benefit from further fine-tuning on various tasks. However, we observe that directly tuning the Instruct (i.e., instruction-tuned) models often leads to marginal improvements and even performance degeneration. Notably, paired Base models, the foundation for these Instruct variants, contain highly similar weight values (i.e., less than 2% on average for Llama 3.1 8B). The Base model tends to be a good learner yet a weak backbone without post-training. Therefore, we propose a novel Shadow-FT framework to tune the Instruct models by leveraging the corresponding Base models. The key insight is to fine-tune the Base model, and then \textit{directly} graft the learned weight updates to the Instruct model. Our proposed Shadow-FT introduces no additional parameters, is easy to implement, and significantly improves performance. We conduct extensive experiments on tuning mainstream LLMs, such as Qwen 3 and Llama 3 series, and evaluate them across 19 benchmarks covering coding, reasoning, and mathematical tasks. Experimental results demonstrate that Shadow-FT consistently outperforms conventional full-parameter and parameter-efficient tuning approaches. Further analyses indicate that Shadow-FT can be applied to multimodal large language models (MLLMs) and combined with direct preference optimization~(DPO). Codes and weights are available at \href{https://github.com/wutaiqiang/Shadow-FT}{Github}.

大模型微调指令模型权重迁移高效训练

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