What it is
Transformers and other modern networks acquire in-context learning, the ability to adapt their computation to the statistics of the input, so that one fixed network can serve data from many systems. The authors give a complete mechanistic account of this behaviour in transformers trained on a finite set of discrete Markov chains, sequences in which each symbol's probabilities depend on the symbol before it. The network shows four algorithmic phases, set by whether it memorizes the training chains or generalizes beyond them and whether it uses single-symbol (1-point) or pairwise (2-point) statistics, and the phases are implemented by multi-layer subcircuits that exemplify two qualitatively distinct mechanisms, whose key features minimal models isolate. Two boundaries in the number of training chains delineate memorization from generalization: the first is set by a kinetic competition between subcircuits, the second by a representational bottleneck, and a symmetry-constrained theory of the training dynamics explains the sharp transition from 1-point to 2-point generalization. Put together, transformers develop distinct subcircuits to implement in-context learning, and the work identifies the conditions that favour one mechanism over another.
Why it matters
It gives a complete mechanistic account of in-context learning in transformers trained on Markov chains: two distinct kinds of subcircuit, and when each is favoured.
Underlined numbers link to their source. Every metric and quoted figure is listed under Sources and data below.
Filed underNeural Networks and Applications, Topic Modeling, Domain Adaptation and Few-Shot Learning
AI & Computing, every Monday. The top new AI & Computing papers of the week, scored and explained, by email. What you get