arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2211.00635cs.CLcs.LG
收藏

两阶段大语言模型微调:更少特化,更多泛化

Two-stage LLM Fine-tuning with Less Specialization and More Generalization

Google(谷歌)

Yihan Wang, Si Si, Daliang Li, Michal Lukasik, Felix Yu, Cho-Jui Hsieh, Inderjit S Dhillon, Sanjiv Kumar

AI总结:

本文提出ProMoT两阶段微调框架,通过先提示调优再模型调优,减少格式特化,保持微调性能同时提升上下文学习泛化能力。

摘要:

预训练的大语言模型(LLMs)是通用问题求解器,可通过提示应用于多种任务。通过在专门数据集上进行微调,可以进一步提升模型在特定任务上的性能。然而,微调通常会使模型在特定数据集上变得狭窄特化,并降低其通用上下文学习性能,这在微调模型需要处理没有微调数据的额外任务时是不利的。在本工作中,我们首先证明在单一任务上微调确实会降低LLMs的通用上下文学习性能。我们发现了这种遗忘的一个重要原因——格式特化,即模型过度拟合微调任务的格式。我们进一步表明,格式特化发生在微调的初期。为解决此问题,我们提出了提示调优与模型调优(ProMoT),这是一种简单而有效的两阶段微调框架,可减少格式特化并提高泛化能力。ProMoT通过先进行提示调优,然后在此软提示附加的情况下对模型本身进行微调,将任务特定的格式学习转移到额外且可移除的参数中。通过在几个微调任务和8个上下文学习评估任务上的实验,我们表明ProMoT在微调任务上实现了与标准微调相当的性能,但在广泛的域外评估任务上,上下文学习性能的损失要小得多。更重要的是,ProMoT甚至能增强与微调任务语义相关的上下文学习任务的泛化能力,例如,ProMoT在英法翻译上显著提高了其他语言对的性能,ProMoT在NLI上提高了摘要的性能。实验还表明,ProMoT可以提高多任务训练的泛化性能。

英文摘要:

Pretrained large language models (LLMs) are general purpose problem solvers applicable to a diverse set of tasks with prompts. They can be further improved towards a specific task by fine-tuning on a specialized dataset. However, fine-tuning usually makes the model narrowly specialized on this dataset with reduced general in-context learning performances, which is undesirable whenever the fine-tuned model needs to handle additional tasks where no fine-tuning data is available. In this work, we first demonstrate that fine-tuning on a single task indeed decreases LLMs' general in-context learning performance. We discover one important cause of such forgetting, format specialization, where the model overfits to the format of the fine-tuned task.We further show that format specialization happens at the very beginning of fine-tuning. To solve this problem, we propose Prompt Tuning with MOdel Tuning (ProMoT), a simple yet effective two-stage fine-tuning framework that reduces format specialization and improves generalization.ProMoT offloads task-specific format learning into additional and removable parameters by first doing prompt tuning and then fine-tuning the model itself with this soft prompt attached. With experiments on several fine-tuning tasks and 8 in-context evaluation tasks, we show that ProMoT achieves comparable performance on fine-tuned tasks to standard fine-tuning, but with much less loss of in-context learning performances across a board range of out-of-domain evaluation tasks. More importantly, ProMoT can even enhance generalization on in-context learning tasks that are semantically related to the fine-tuned task, e.g. ProMoT on En-Fr translation significantly improves performance on other language pairs, and ProMoT on NLI improves performance on summarization. Experiments also show that ProMoT can improve the generalization performance of multi-task training.

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

↑