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

上下文学习在上下文中“学习”了什么:解耦任务识别与任务学习

What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learning

Princeton University(普林斯顿大学)

Jane Pan, Tianyu Gao, Howard Chen, Danqi Chen

AI总结:

本文解耦上下文学习中的任务识别(TR)与任务学习(TL),通过受控实验发现TR不随模型规模或示例增多而提升,而TL随规模扩大和示例增多持续改善,倡导未来研究区分二者。

摘要:

大型语言模型(LLMs)利用上下文学习(ICL)仅需少量示例即可解决任务,但其机制尚未被充分理解。一些研究表明LLMs仅从预训练中回忆已学概念,而另一些则暗示ICL对示例进行隐式学习。我们刻画了ICL利用示例的两种方式。任务识别(TR)捕捉LLMs通过示例识别任务的程度——即使没有真实标签——并应用其预训练先验,而任务学习(TL)是捕捉预训练中未见的新输入-标签映射的能力。使用广泛的分类数据集和三个LLM家族(GPT-3、LLaMA和OPT),我们设计受控实验以解耦TR和TL在ICL中的作用。我们表明:(1)模型仅凭TR即可实现非平凡性能,且TR不随模型增大或示例增多而进一步提升;(2)LLMs随模型规模扩大获得TL,且TL性能随上下文中示例增多而持续改善。我们的发现揭示了ICL背后的两种不同力量,鉴于其本质差异,我们倡导在未来ICL研究中区分二者。

英文摘要:

Large language models (LLMs) exploit in-context learning (ICL) to solve tasks with only a few demonstrations, but its mechanisms are not yet well-understood. Some works suggest that LLMs only recall already learned concepts from pre-training, while others hint that ICL performs implicit learning over demonstrations. We characterize two ways through which ICL leverages demonstrations. Task recognition (TR) captures the extent to which LLMs can recognize a task through demonstrations -- even without ground-truth labels -- and apply their pre-trained priors, whereas task learning (TL) is the ability to capture new input-label mappings unseen in pre-training. Using a wide range of classification datasets and three LLM families (GPT-3, LLaMA and OPT), we design controlled experiments to disentangle the roles of TR and TL in ICL. We show that (1) models can achieve non-trivial performance with only TR, and TR does not further improve with larger models or more demonstrations; (2) LLMs acquire TL as the model scales, and TL's performance consistently improves with more demonstrations in context. Our findings unravel two different forces behind ICL and we advocate for discriminating them in future ICL research due to their distinct nature.

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

↑