Sign inGet started
Paper · arXiv

Distinct mechanisms underlying in-context learning in transformers

Modern distributed networks, notably transformers, acquire a remarkable ability (termed `in-context learning') to adapt their computation to input statistics, such that a fixed network can be applied to data from a broad range of systems. Here, we provide a complete mechanistic characterization of this behavior in transformers trained on a finite set $S$ of discrete Markov chains. The transformer displays four algorithmic phases, characterized by whether the network memorizes and generalizes, and whether it uses 1-point or 2-point statistics. We show that the four phases are implemented by multi-layer subcircuits that exemplify two qualitatively distinct mechanisms for implementing contex...

AuthorsCole Gibson, Wenping Cui, Gautam Reddy
Primary categorycs.LG
Published14 April 2026
Last updated at source14 April 2026
cs.LGcond-mat.dis-nncond-mat.stat-mech
Embed this entry
<iframe src="https://silytics.si/embed/item/fef31887-b1ba-4b32-aaee-f15579567b5f" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.