2025-02-17 · 进阶 · 自然语言处理 · 机器学习

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

本文提出了一种名为Selective Self-to-Supervised Fine-Tuning (S3FT)的微调方法,旨在提高大型语言模型在特定任务上的性能同时增强其泛化能力。

更新于 2025-02-17。作者:Sonam Gupta、Yatin Nandwani、Asaf Yehudai、Dinesh Khandelwal、Dinesh Raghu、Sachindra Joshi。

中文摘要

在特定数据集上微调大型语言模型(LLMs)是提高目标任务性能的常见做法。然而,这种性能提升往往会导致过拟合,即模型在任务或训练数据特征上变得过于专业化,从而导致泛化能力的下降。本文介绍了选择性自监督微调(S3FT),这是一种在保持泛化能力的同时,比标准监督微调(SFT)取得更好性能的微调方法。S3FT利用了针对查询存在多个有效响应的事实。通过利用模型的正确响应,S3FT在微调阶段减少了模型的专业化。S3FT首先通过部署适当的评判器从训练集中识别正确的模型响应。然后,它使用正确的模型响应和剩余样本的金标准响应(或其释义)来微调模型。S3FT的有效性通过在数学推理、Python 编程和阅读理解任务上的实验得到证明。结果显示,标准SFT可能导致多个基准测试上的平均性能下降高达4.4,例如MMLU和TruthfulQA。相比之下,S3FT将这种下降减少了一半,即2.5,表明它在微调任务上表现显著更好,同时具有比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.

解读

一句话总结

本文提出了一种名为Selective Self-to-Supervised Fine-Tuning (S3FT)的微调方法,旨在提高大型语言模型在特定任务上的性能同时增强其泛化能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源