A Circuit for In-Context Learning
Provides mechanistic understanding of how transformers perform few-shot learning without weight updates, relevant for model interpretability and architecture design.
AI Summary
Researchers identify and validate a specific neural circuit mechanism that enables in-context learning in models through causal analysis.
Excerpt
In-context learning (ICL) lets a pretrained language model perform a task specified by demonstrations in its prompt, with no parameter updates. With arbitrary labels the model must acquire a mapping it cannot have memorized, so the learning happens within a single forward pass. Prior work found candidate parts but not how they compose. We give the composition for few-shot sentence classification with arbitrary labels in three 3-4B-parameter transformers. The model implements a key-value memory o
