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

上下文学习的可学性

The Learnability of In-Context Learning

The Hebrew University of Jerusalem(希伯来大学)

Noam Wies, Yoav Levine, Amnon Shashua

摘要:

上下文学习是现代语言模型扩展到数十亿个学习参数时出现的一个令人惊讶的重要现象。在不修改大型语言模型的权重的情况下,它可以被调整为简单地通过在其输入中包括这些任务的级联训练样本来执行各种下游自然语言任务。虽然对大语言模型的许多实际应用具有破坏性,但从理论角度来看,这种涌现学习范式并没有得到很好的理解。在本文中,我们提出了一个第一个的PAC为基础的框架,在上下文学习能力,并使用它提供第一个有限样本复杂度的结果为上下文学习设置。我们的框架包括一个初始预训练阶段,它将函数拟合到预训练分布,然后是第二个上下文学习阶段,它保持该函数不变,并将下游任务的训练样本连接到其输入中。我们使用我们的框架来证明,在温和的假设下,当预训练分布是潜在任务的混合时(通常被认为是自然语言预训练的模型),这些任务可以通过上下文学习有效地学习,即使模型的权重不变,输入显着偏离预训练分布。我们的理论分析表明,在这种情况下,上下文学习更多的是识别任务,而不是学习它,这一结果是符合最近的一系列实证研究结果。我们希望本文提出的情境可学性框架将有助于进一步深入理解这一重要的新学习范式。

英文摘要:

In-context learning is a surprising and important phenomenon that emerged when modern language models were scaled to billions of learned parameters. Without modifying a large language model's weights, it can be tuned to perform various downstream natural language tasks simply by including concatenated training examples of these tasks in its input. Though disruptive for many practical applications of large language models, this emergent learning paradigm is not well understood from a theoretical perspective. In this paper, we propose a first-of-its-kind PAC based framework for in-context learnability, and use it to provide the first finite sample complexity results for the in-context learning setup. Our framework includes an initial pretraining phase, which fits a function to the pretraining distribution, and then a second in-context learning phase, which keeps this function constant and concatenates training examples of the downstream task in its input. We use our framework in order to prove that, under mild assumptions, when the pretraining distribution is a mixture of latent tasks (a model often considered for natural language pretraining), these tasks can be efficiently learned via in-context learning, even though the model's weights are unchanged and the input significantly diverges from the pretraining distribution. Our theoretical analysis reveals that in this setting, in-context learning is more about identifying the task than about learning it, a result which is in line with a series of recent empirical findings. We hope that the in-context learnability framework presented in this paper will facilitate future progress towards a deeper understanding of this important new learning paradigm.

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

↑