In-context Learning and Induction Heads

By Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova Dassarma, T. Henighan, Benjamin Mann, Amanda Askell, Yuntao Bai, Anna Chen and 16 more. arXiv.org, 2022

942 citations recorded by the source corpus.

"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.

Subfields: Artificial Intelligence, Large Language Models, Prompting & Reasoning

View Paper: https://arxiv.org/abs/2209.11895

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Percy Liang
  2. Mohit Bansal
  3. Quoc V. Le
  4. Jianfeng Gao
  5. Yoshua Bengio
  6. Luke S. Zettlemoyer
  7. Sergey Levine
  8. Yejin Choi

In Large Language Models

  1. Noah D. Goodman
  2. Eric Zelikman
  3. Percy Liang
  4. David Lopez-Paz
  5. Michael R Douglas
  6. Denny Zhou
  7. Yacine Jernite
  8. Siva Reddy

In Prompting & Reasoning

  1. Noah D. Goodman
  2. Denny Zhou
  3. Eric Zelikman
  4. Tengyu Ma
  5. Percy Liang
  6. Michael R Douglas
  7. Zhifang Sui
  8. Damai Dai

Citations in the corpus