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

微调语言模型中的任务特定技能定位

Task-Specific Skill Localization in Fine-tuned Language Models

Princeton University(普林斯顿大学)

Abhishek Panigrahi, Nikunj Saunshi, Haoyu Zhao, Sanjeev Arora

AI总结:

本文提出“技能定位”方法,通过优化识别微调模型中极小参数子集并嫁接至预训练模型,在保持性能的同时提升预测校准与OOD质量,并辅助持续学习。

摘要:

预训练语言模型可以通过微调来解决各种NLP任务,包括在少样本设置中。因此,微调允许模型快速掌握任务特定的“技能”,但对于这些新学到的技能究竟驻留在庞大模型中的哪个位置,目前的研究还很有限。本文针对该问题引入了“技能定位”这一术语,并提出了一种解决方案。给定下游任务和在该任务上微调过的模型,使用一种简单的优化方法来识别一个极小的参数子集(约占模型参数的0.01%),该子集负责了模型性能的95%以上,其含义是,仅将这个微小子集的微调值嫁接到预训练模型上,就能获得几乎与微调模型一样好的性能。虽然这让人联想到最近关于参数高效微调的研究,但这里的新颖之处在于:(i) 该子集不需要进一步的重新训练(例如,与彩票假设不同)。(ii) 在预测的分布内校准(误差减少40%-90%)以及分布外(OOD)预测质量方面,相较于普通微调看到了显著改进。在多任务训练的模型中,观察到了更强的技能定位概念,其中对应不同任务的稀疏区域几乎是完全不相交的,并且它们的重叠(当发生时)是任务相似性的代理指标。实验表明,通过嫁接进行定位可以辅助某些形式的持续学习。

英文摘要:

Pre-trained language models can be fine-tuned to solve diverse NLP tasks, including in few-shot settings. Thus fine-tuning allows the model to quickly pick up task-specific ``skills,'' but there has been limited study of where these newly-learnt skills reside inside the massive model. This paper introduces the term skill localization for this problem and proposes a solution. Given the downstream task and a model fine-tuned on that task, a simple optimization is used to identify a very small subset of parameters ($\sim0.01$% of model parameters) responsible for ($>95$%) of the model's performance, in the sense that grafting the fine-tuned values for just this tiny subset onto the pre-trained model gives performance almost as well as the fine-tuned model. While reminiscent of recent works on parameter-efficient fine-tuning, the novel aspects here are that: (i) No further re-training is needed on the subset (unlike, say, with lottery tickets). (ii) Notable improvements are seen over vanilla fine-tuning with respect to calibration of predictions in-distribution ($40$-$90$% error reduction) as well as the quality of predictions out-of-distribution (OOD). In models trained on multiple tasks, a stronger notion of skill localization is observed, where the sparse regions corresponding to different tasks are almost disjoint, and their overlap (when it happens) is a proxy for task similarity. Experiments suggest that localization via grafting can assist certain forms of continual learning.

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

↑