Radar

← digest 2026-11-05

A Circuit for In-Context Learning

minor signal 16

Mechanistic study giving a circuit for in-context learning in three 3-4B-parameter transformers: each label token's residual stream encodes the label's identity, middle-layer attention heads write the preceding demonstration's class as its key, and upper-layer heads match the query's class against stored keys and copy out the matching label, gated by an early-layer signal for label repetition. Established causally by activation patching, head ablations and steering.

Action: Treat as background research; there is no API or library change to adopt.

Migration effort: none

Cited

A Circuit for In-Context Learning arxiv-ai · community · 2026-11-03

Report an error