arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.01901cs.AI
收藏

理解监督微调中的过度适应现象:集成方法的作用

Understanding Overadaptation in Supervised Fine-Tuning: The Role of Ensemble Methods

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Yifan Hao, Xingyuan Pan, Hanning Zhang, Chenlu Ye, Rui Pan, Tong Zhang

AI总结:

本文研究监督微调中的过度适应现象,提出集成预训练与微调模型可同时保留通用知识并提升微调域性能,并通过过参数化线性分析给出理论解释。

摘要:

在领域特定数据上进行监督微调(SFT)是将基础模型适配到专门任务的主要方法。然而,已有观察表明,SFT模型往往会遗忘在预训练阶段获得的知识。在视觉模型中,将预训练模型与其微调后的对应模型进行集成已被证明可以缓解这一问题。在本工作中,我们证明同样的结论也适用于语言模型,并且更引人注目的是,我们观察到一个过度适应现象:集成模型不仅保留了基础模型中的通用知识,甚至在微调领域本身也优于微调模型。尽管集成方法在经验上取得了成功,但对其益处的理论理解仍然未被充分探索。我们对过度适应现象进行了形式化的理论分析。集成通过平衡两个主要误差来源来缓解这一问题:由微调不充分引起的偏差,以及由对微调数据过拟合引入的方差。虽然正则化技术旨在处理这一权衡,但我们表明集成提供了一种更有效的解决方案。我们在过参数化线性设置中分析了这一现象,并证明在预训练权重和微调权重之间进行插值能够显著提升性能。这些发现为模型集成所观察到的优势提供了理论依据,并得到了与我们的分析一致的经验实验的支持。

英文摘要:

Supervised fine-tuning (SFT) on domain-specific data is the dominant approach for adapting foundation models to specialized tasks. However, it has been observed that SFT models tend to forget knowledge acquired during pretraining. In vision models, ensembling a pretrained model with its fine-tuned counterpart has been shown to mitigate this issue. In this work, we demonstrate that the same holds for language models, and, more strikingly, we observe an overadaptation phenomenon: the ensemble model not only retains general knowledge from the foundation model but also outperforms the fine-tuned model even on the fine-tuning domain itself. Despite the empirical success of ensembling, a theoretical understanding of its benefits remains underexplored. We develop a formal theoretical analysis of the overadaptation phenomenon. Ensembling mitigates this by balancing two primary sources of error: bias, caused by insufficient fine-tuning, and variance, introduced by overfitting to fine-tuning data. While regularization techniques aim to address this trade-off, we show that ensembling provides a more effective solution. We analyze this phenomenon in over-parameterized linear settings and demonstrate that interpolating between pretrained and fine-tuned weights significantly improves performance. These findings offer theoretical justification for the observed advantages of model ensembling, supported by empirical experiments consistent with our analysis.

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

↑