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

语言模型在上下文中学习到了什么?结构化任务假说

What Do Language Models Learn in Context? The Structured Task Hypothesis

Jiaoda Li, Yifan Hou, Mrinmaya Sachan, Ryan Cotterell

AI总结:

本文通过文本分类实验检验三种 ICL 假说,否定任务选择与元学习解释,证明 LLM 更可能组合预训练任务来完成上下文新任务。

摘要:

大型语言模型(LLM)展现出一种引人注目的能力:能够从演示中给出的上下文示例学习一项新任务,这被称为上下文学习(ICL)。可以理解,已有大量研究致力于揭示支撑 ICL 的理论。一种流行假说通过任务选择来解释 ICL:LLM 根据演示识别任务,并将其泛化到提示。另一种流行假说认为 ICL 是元学习的一种形式,即模型在预训练阶段学会一种学习算法,并将其应用于演示。最后,第三种假说主张 LLM 利用演示来选择预训练期间所学任务的组合,以执行 ICL。本文中,我们借助一系列源自常见文本分类任务的实验,对这三种解释 LLM 上下文学习能力的假说进行实证探究。我们通过反例否定了前两种假说,并提供证据支持最后一种假说。结果表明,LLM 可以通过组合预训练期间学到的任务,在上下文中学习一项新任务。

英文摘要:

Large language models (LLMs) exhibit an intriguing ability to learn a novel task from in-context examples presented in a demonstration, termed in-context learning (ICL). Understandably, a swath of research has been dedicated to uncovering the theories underpinning ICL. One popular hypothesis explains ICL by task selection. LLMs identify the task based on the demonstration and generalize it to the prompt. Another popular hypothesis is that ICL is a form of meta-learning, i.e., the models learn a learning algorithm at pre-training time and apply it to the demonstration. Finally, a third hypothesis argues that LLMs use the demonstration to select a composition of tasks learned during pre-training to perform ICL. In this paper, we empirically explore these three hypotheses that explain LLMs' ability to learn in context with a suite of experiments derived from common text classification tasks. We invalidate the first two hypotheses with counterexamples and provide evidence in support of the last hypothesis. Our results suggest an LLM could learn a novel task in context via composing tasks learned during pre-training.

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

↑