arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.16938cs.CL
收藏

少样本微调与上下文学习:公平比较与评估

Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluation

Saarland University(萨尔兰大学);University of Cambridge(剑桥大学);Bar-Ilan University(巴伊兰大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学)

Marius Mosbach, Tiago Pimentel, Shauli Ravfogel, Dietrich Klakow, Yanai Elazar

AI总结:

本文在控制模型规模、示例数量和参数量的条件下公平比较少样本微调与上下文学习,发现微调模型同样具备良好的域外泛化能力,两种方法表现相似且均受模型规模和示例数量影响。

摘要:

少样本微调和上下文学习是预训练语言模型进行任务适配的两种替代策略。近年来,上下文学习因其简单性和更好的域外泛化能力而比微调更受欢迎,同时大量证据表明微调模型会学习到虚假相关性。遗憾的是,此前对这两种方法的比较使用的是不同规模的模型。这引发了一个问题:所观察到的微调模型域外泛化能力较弱,究竟是微调本身的固有属性,还是实验设置的局限。在本文中,我们在控制所用模型、示例数量和参数规模(从125M到30B)的条件下,比较少样本微调和上下文学习在挑战数据集上的泛化表现。我们的结果表明,微调后的语言模型实际上能够很好地实现域外泛化。我们发现两种方法的泛化表现相似;它们都表现出较大的波动,并依赖于模型规模和示例数量等属性,这凸显出稳健的任务适配仍然是一个挑战。

英文摘要:

Few-shot fine-tuning and in-context learning are two alternative strategies for task adaptation of pre-trained language models. Recently, in-context learning has gained popularity over fine-tuning due to its simplicity and improved out-of-domain generalization, and because extensive evidence shows that fine-tuned models pick up on spurious correlations. Unfortunately, previous comparisons of the two approaches were done using models of different sizes. This raises the question of whether the observed weaker out-of-domain generalization of fine-tuned models is an inherent property of fine-tuning or a limitation of the experimental setup. In this paper, we compare the generalization of few-shot fine-tuning and in-context learning to challenge datasets, while controlling for the models used, the number of examples, and the number of parameters, ranging from 125M to 30B. Our results show that fine-tuned language models can in fact generalize well out-of-domain. We find that both approaches generalize similarly; they exhibit large variation and depend on properties such as model size and the number of examples, highlighting that robust task adaptation remains a challenge.

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

↑