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

面向大语言模型泛化能力的选择性自监督微调

Selective Self-to-Supervised Fine-Tuning for Generalization in Large Language Models

IBM Research(IBM研究院)

Sonam Gupta, Yatin Nandwani, Asaf Yehudai, Dinesh Khandelwal, Dinesh Raghu, Sachindra Joshi

AI总结:

针对大语言模型监督微调易过拟合、泛化能力下降的问题,提出选择性自监督微调方法S3FT,利用模型自身正确回复降低过拟合,在多任务上实现微调性能提升的同时,将泛化性能下降幅度减半。

摘要:

在特定数据集上微调大语言模型(LLM)是提升目标任务性能的常用做法,但这种性能提升往往会导致过拟合:模型会过度适配任务本身或训练数据的特征,进而丧失泛化能力。本文提出选择性自监督微调(Selective Self-to-Supervised Fine-Tuning,S3FT),这一微调方法在取得优于标准监督微调(SFT)性能的同时,还能提升模型泛化能力。\nS3FT利用了单个查询存在多个有效回复的特性,通过使用模型自身的正确回复,降低微调阶段的模型专业化程度。该方法首先通过部署合适的评判器,从训练集中识别出模型生成的正确回复;随后,使用这些模型正确回复,以及剩余样本的标准答案(或其释义)对模型进行微调。\n研究通过数学推理、Python编程和阅读理解任务的实验验证了S3FT的有效性。结果显示,标准SFT会导致模型在MMLU、TruthfulQA等多个基准上的平均性能下降最高达4.4分;相比之下,S3FT将这一下降幅度减少了一半,即2.2分,表明其泛化能力优于SFT,同时在微调任务上的性能也显著更优。

英文摘要:

Fine-tuning Large Language Models (LLMs) on specific datasets is a common practice to improve performance on target tasks. However, this performance gain often leads to overfitting, where the model becomes too specialized in either the task or the characteristics of the training data, resulting in a loss of generalization. This paper introduces Selective Self-to-Supervised Fine-Tuning (S3FT), a fine-tuning approach that achieves better performance than the standard supervised fine-tuning (SFT) while improving generalization. S3FT leverages the existence of multiple valid responses to a query. By utilizing the model's correct responses, S3FT reduces model specialization during the fine-tuning stage. S3FT first identifies the correct model responses from the training set by deploying an appropriate judge. Then, it fine-tunes the model using the correct model responses and the gold response (or its paraphrase) for the remaining samples. The effectiveness of S3FT is demonstrated through experiments on mathematical reasoning, Python programming and reading comprehension tasks. The results show that standard SFT can lead to an average performance drop of up to $4.4$ on multiple benchmarks, such as MMLU and TruthfulQA. In contrast, S3FT reduces this drop by half, i.e. $2.5$, indicating better generalization capabilities than SFT while performing significantly better on the fine-tuning tasks.

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

↑