Skip to main content
QUICK REVIEW

[Paper Review] In-context Learning and Induction Heads

Catherine Olsson, Nelson Elhage|arXiv (Cornell University)|Sep 24, 2022
Domain Adaptation and Few-Shot LearningComputer Science84 citations
TL;DR

The paper proposes that induction heads are the mechanistic source of in-context learning in transformers, providing causal evidence in small models and correlational evidence in larger ones, across six complementary lines of evidence.

ABSTRACT

"Induction heads" are attention heads that implement a simple algorithm to complete token sequences like [A][B] ... [A] -> [B]. In this work, we present preliminary and indirect evidence for a hypothesis that induction heads might constitute the mechanism for the majority of all "in-context learning" in large transformer models (i.e. decreasing loss at increasing token indices). We find that induction heads develop at precisely the same point as a sudden sharp increase in in-context learning ability, visible as a bump in the training loss. We present six complementary lines of evidence, arguing that induction heads may be the mechanistic source of general in-context learning in transformer models of any size. For small attention-only models, we present strong, causal evidence; for larger models with MLPs, we present correlational evidence.

Motivation & Objective

  • Investigate whether induction heads implement a simple algorithm that completes token sequences like [A][B] ... [A] -> [B].
  • Examine whether induction heads are the primary mechanism underlying in-context learning in transformer models of various sizes.
  • Provide multiple lines of evidence to establish a causal or correlational link between induction heads and in-context learning performance.

Proposed method

  • Identify induction heads as candidate mechanisms for in-context learning.
  • Present six complementary lines of evidence linking induction heads to in-context learning.
  • For small attention-only models, provide causal evidence that induction heads drive learning phenomena.
  • For larger models with MLPs, present correlational evidence supporting the link.
  • Show that induction heads develop at the same point as a sharp increase in in-context learning ability seen as a loss bump.
  • Synthesize findings to argue for induction heads as a mechanistic source of general in-context learning.

Experimental results

Research questions

  • RQ1Do induction heads implement the core algorithm behind in-context learning in transformers?
  • RQ2Are induction heads causally responsible for observed in-context learning in small models and correlationally linked in larger models?
  • RQ3Do induction heads emerge at the same developmental stage as abrupt gains in in-context learning ability?
  • RQ4Do six lines of evidence coherently support a mechanistic role for induction heads across model scales?

Key findings

  • Induction heads are associated with a sudden improvement in in-context learning as training loss exhibits a bump.
  • In small attention-only models, induction heads provide strong causal evidence for driving in-context learning.
  • In larger models that include MLPs, evidence is correlational but consistently aligns with the induction head mechanism.
  • The timing of induction head development coincides with the emergence of enhanced in-context learning ability.
  • Six complementary evidence lines collectively support induction heads as a general mechanism for in-context learning across transformer sizes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.