arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.04787cs.CLcs.AIcs.LG
收藏

选择性自我演练:一种提升大语言模型泛化能力的微调方法

Selective Self-Rehearsal: A Fine-Tuning Approach to Improve Generalization in Large Language Models

IBM Research(IBM研究院)

Sonam Gupta, Yatin Nandwani, Asaf Yehudai, Mayank Mishra, Gaurav Pandey, Dinesh Raghu, Sachindra Joshi

AI总结:

本文提出选择性自我演练SSR微调方法,利用LLM评判筛选模型自身正确回答并结合金标准回答训练,以缓解SFT过拟合;在不可回答查询识别任务中显著降低MMLU、TruthfulQA等基准的泛化性能损失。

摘要:

在特定数据集上微调大语言模型(LLM)是提高目标任务性能的常见做法。然而,这种性能提升往往会导致过拟合,即模型过度专精于任务或训练数据的特征,从而丧失泛化能力。本文提出选择性自我演练(Selective Self-Rehearsal,SSR),这是一种微调方法,可在取得与标准监督微调(SFT)相当性能的同时改善泛化。SSR利用了一个查询可以存在多个有效回答这一事实。通过使用模型自身的正确回答,SSR降低了微调阶段的模型专精化程度。SSR首先部署合适的LLM作为评判器,从训练集中识别模型的正确回答。随后,对于这些样本使用模型的正确回答,对于其余样本则使用金标准回答来微调模型。通过在多个数据集上执行不可回答查询识别任务,实验证明了SSR的有效性。结果表明,标准SFT会在MMLU和TruthfulQA等多个基准上导致最高达16.7%的平均性能下降。相比之下,SSR造成的平均下降接近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-Rehearsal (SSR), a fine-tuning approach that achieves performance comparable to the standard supervised fine-tuning (SFT) while improving generalization. SSR leverages the fact that there can be multiple valid responses to a query. By utilizing the model's correct responses, SSR reduces model specialization during the fine-tuning stage. SSR first identifies the correct model responses from the training set by deploying an appropriate LLM as a judge. Then, it fine-tunes the model using the correct model responses and the gold response for the remaining samples. The effectiveness of SSR is demonstrated through experiments on the task of identifying unanswerable queries across various datasets. The results show that standard SFT can lead to an average performance drop of up to $16.7\%$ on multiple benchmarks, such as MMLU and TruthfulQA. In contrast, SSR results in close to $2\%$ drop on average, indicating better generalization capabilities compared to standard SFT.

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

↑