Stanford paper traces the exact circuit behind in-context learning: an ad-hoc key-value store in the residual stream

CatAstro_Piyush · x · 2026-11-07

A Stanford preprint, A Circuit for In-Context Learning, causally dissects few-shot classification in three 3–4B parameter Transformers using activation patching and head ablations.

Key findings:

The takeaway: ICL is a gated associative lookup circuit built from a few identifiable, causally verified components—not a mysterious black-box emergence.

Original post →

More from Research

Research channel →