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

从不良情况中学习:语言模型的稳健适应且不遗忘

Learning from the Undesirable: Robust Adaptation of Language Models without Forgetting

Yunhun Nam, Jaehyung Kim, Jongheon Jeong

AI总结:

本文针对语言模型监督微调(SFT)在数据有限时的过拟合问题,提出LfU正则化方案,通过对齐模型内部表示与不良更新后的表示促进泛化,在数学任务上比普通SFT平均提升16.8%,且对提示变化稳健性显著增强。

摘要:

语言模型(LMs)通常通过监督微调(SFT)进行适配,以使其能力专门化用于下游任务。然而,在微调数据有限的典型场景中(例如,与预训练相比),SFT会导致LMs过拟合,使其依赖目标任务中的虚假模式,或因狭窄专业化的副作用而损害其他广泛有用的能力。在本文中,我们提出了“从不良情况中学习”(LfU),这是一种简单但有效的SFT正则化方案,用于在微调数据有限的LMs时缓解过拟合问题。具体而言,我们旨在正则化微调过程,以偏好对“不良”模型更新具有弹性的解决方案,例如引导模型走向不良行为的梯度上升步骤。为此,我们提出了一种新颖的一致性正则化形式,将模型的内部表示与不良更新后的内部表示直接对齐。通过利用不良更新实现的表示级数据增强,LfU在有限数据下有效促进了泛化。我们在不同LM下游任务上的实验表明,LfU作为一种有效的先验,在保留预训练知识的同时增强了适应性。例如,我们基于LfU的LM在数学任务上比同一数据集上的普通SFT平均提高了16.8%,而后者甚至导致这些任务的性能下降。此外,LfU对提示变化表现出更强的稳健性,例如与SFT相比,输出性能的标准差降低了92.1%,突出了其多功能效果。

英文摘要:

Language models (LMs) are often adapted through supervised fine-tuning (SFT) to specialize their capabilities for downstream tasks. However, in typical scenarios where the fine-tuning data is limited, e.g., compared to pre-training, SFT can lead LMs to overfit, causing them to rely on spurious patterns within the target task or to compromise other broadly useful capabilities as a side effect of narrow specialization. In this paper, we propose Learning-from-the-Undesirable (LfU), a simple yet effective regularization scheme for SFT to mitigate overfitting issues when fine-tuning LMs with limited data. Specifically, we aim to regularize the fine-tuning process to favor solutions that are resilient to "undesirable" model updates, e.g., gradient ascent steps that steer the model toward undesirable behaviors. To this end, we propose a novel form of consistency regularization that directly aligns internal representations of the model with those after an undesirable update. By leveraging representation-level data augmentation through undesirable updates, LfU effectively promotes generalization under limited data. Our experiments on diverse LM downstream tasks show that LfU serves as an effective prior that enhances adaptability while preserving pretrained knowledge. For example, our LM from LfU achieves a 16.8% average improvement on math tasks compared to vanilla SFT on the same dataset, where the latter even leads to degraded performance on those tasks. Furthermore, LfU exhibits improved robustness to prompt variations, e.g., yielding a 92.1% lower standard deviation in output performances compared to SFT, highlighting its versatile effects.

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

↑