Circuit Analysis of In-Context Learning Mechanisms
November 4, 2026
This study identifies a key-value memory mechanism in 3-4B parameter transformers that enables in-context learning. The model uses label-token positions as memory, where middle-layer attention heads write class information into the residual stream for upper-layer readout.
HOW THIS AFFECTS YOU
●
researcherUnderstanding this circuit provides a mechanistic view of how models perform few-shot tasks.