arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.03846cs.CL
收藏

更大的语言模型以不同的方式进行上下文学习

Larger language models do in-context learning differently

Google Research(谷歌研究院);Stanford University(斯坦福大学);Brown University(布朗大学)

Jerry Wei, Jason Wei, Yi Tay, Dustin Tran, Albert Webson, Yifeng Lu, Xinyun Chen, Hanxiao Liu, Da Huang, Denny Zhou, Tengyu Ma

摘要:

我们研究了语言模型中的上下文学习(ICL)如何受到语义先验与输入标签映射的影响。我们调查了两个设置-ICL翻转标签和ICL语义无关的标签-在各种型号的家庭(GPT-3,指令GPT,法典,PaLM,和Flan-PaLM)。首先,在标签翻转的ICL上的实验表明,覆盖语义先验是模型尺度的一种涌现能力。虽然小的语言模型忽略在上下文中呈现的翻转标签,因此主要依赖于来自预训练的语义先验,但是当呈现与先验相矛盾的上下文范例时,大模型可以覆盖语义先验,尽管较大的模型可能具有更强的语义先验。接下来我们研究语义无关标签ICL(SUL-ICL),其中标签与其输入语义无关(例如,foo/bar而不是negative/positive),从而迫使语言模型学习在上下文范例中示出的输入-标签映射,以便执行任务。进行SUL-ICL的能力也主要随着规模而出现,并且足够大的语言模型甚至可以在SUL-ICL设置中执行线性分类。最后,我们评估了指令调整模型,发现指令微调加强了语义先验的使用和学习输入标签映射的能力,但前者更多。

英文摘要:

We study how in-context learning (ICL) in language models is affected by semantic priors versus input-label mappings. We investigate two setups-ICL with flipped labels and ICL with semantically-unrelated labels-across various model families (GPT-3, InstructGPT, Codex, PaLM, and Flan-PaLM). First, experiments on ICL with flipped labels show that overriding semantic priors is an emergent ability of model scale. While small language models ignore flipped labels presented in-context and thus rely primarily on semantic priors from pretraining, large models can override semantic priors when presented with in-context exemplars that contradict priors, despite the stronger semantic priors that larger models may hold. We next study semantically-unrelated label ICL (SUL-ICL), in which labels are semantically unrelated to their inputs (e.g., foo/bar instead of negative/positive), thereby forcing language models to learn the input-label mappings shown in in-context exemplars in order to perform the task. The ability to do SUL-ICL also emerges primarily with scale, and large-enough language models can even perform linear classification in a SUL-ICL setting. Finally, we evaluate instruction-tuned models and find that instruction tuning strengthens both the use of semantic priors and the capacity to learn input-label mappings, but more of the former.

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

↑