过度微调专家模型会破坏模型融合效果,因记忆了少数难例导致参数干扰。
From Memorization to Parameter Interference: How Overtraining Experts Harms Model Merging
- 通过分析微调阶段的参数变化,发现模型融合性能下降源于对难例的过度记忆。
- 在视觉与语言任务中,长周期微调使融合后模型性能降低15%以上。
- 采用任务相关的早期停止策略可显著提升融合效果,适合多模型集成场景。
现代深度学习广泛使用可公开权重的基础模型,这些模型可在特定数据集上进行微调,形成大量专家模型与适配器,常见于HuggingFace和AdapterHub等平台。模型融合成为有效利用现有资源的新方法,能组合不同检查点的能力。当前流程通常为:通用预训练 → 任务微调 → 多检查点融合,普遍假设各阶段提升可传递至后续。本文挑战该假设,揭示长期微调虽提升单个模型性能,却显著降低融合效果,涉及视觉与语言模态、多种模型规模及全量微调与LoRA适配模型。问题根源在于后期微调阶段对少数难例的过度记忆,造成负向参数干扰,并在融合中丢失关键知识。我们进一步证明,采用任务依赖的激进早期停止策略可大幅改善融合性能。
原文摘要 · Abstract (English)
Modern deep learning is increasingly characterized by the use of open-weight foundation models that can be fine-tuned on specialized datasets. This has led to a proliferation of expert models and adapters, often shared via platforms like HuggingFace and AdapterHub. Model merging has recently emerged as an effective way to leverage these existing resources, enabling the composition of capabilities from different model checkpoints. A natural pipeline has thus formed to harness the benefits of transfer learning and amortize sunk training costs: models are pre-trained on general data, fine-tuned on specific tasks, and then multiple checkpoints are merged to obtain a more capable model. A prevailing assumption is that improvements at one stage of this pipeline propagate downstream, leading to gains at subsequent steps. In this work, we challenge that assumption by examining how expert fine-tuning affects model merging. We show that long fine-tuning of experts that optimizes for their individual performance leads to degraded merging performance across vision and language modalities, multiple model scales, and both fully fine-tuned and LoRA-adapted models. We trace this degradation to the memorization of a small set of difficult examples that dominate late fine-tuning steps. This causes negative parameter interference and encodes knowledge that is forgotten during merging. Finally, we demonstrate that task-dependent aggressive early stopping strategies can significantly improve model merging performance.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。