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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Li, Jiaoda, Hou, Yifan, Sachan, Mrinmaya, Cotterell, Ryan
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916345698844672
author Li, Jiaoda
Hou, Yifan
Sachan, Mrinmaya
Cotterell, Ryan
author_facet Li, Jiaoda
Hou, Yifan
Sachan, Mrinmaya
Cotterell, Ryan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_04216
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle What Do Language Models Learn in Context? The Structured Task Hypothesis
Li, Jiaoda
Hou, Yifan
Sachan, Mrinmaya
Cotterell, Ryan
Computation and Language
Machine Learning
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.
title What Do Language Models Learn in Context? The Structured Task Hypothesis
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2406.04216