Journal article · 2026 · Open access
Distinct mechanisms underlying in-context learning in transformers
Physical Review X · Published 24 November 2026 · DOI 10.1103/p3qs-d91v
In brief
“Distinct mechanisms underlying in-context learning in transformers” is a 2026 journal article by Cole Gibson and 2 co-authors, published in Physical Review X. OpenAlex counts 5 citations as of 2 December 2026, which puts it in the top 2% of works published in 2026 by citations. It is open access under a CC BY licence: the full text is free to read at Physical Review X.
- Citations
- 5
- Most cited in
- 2026 (5)
- Field-weighted impact
- 4.88
- References
- 52
- Authors
- 3
Abstract
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 𝒮 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 context-adaptive computations. Minimal models isolate the key features of both motifs. Memorization and generalization phases are delineated by two boundaries that depend on data diversity, K = | 𝒮 | . The first ( K 1 * ) is set by a kinetic competition between subcircuits and the second ( K 2 * ) is set by a representational bottleneck. A symmetry-constrained theory of a transformer's training dynamics explains the sharp transition from 1-point to 2-point generalization and identifies key features of the loss landscape that allow the network to generalize. Put together, we show that transformers develop distinct subcircuits to implement in-context learning and identify conditions that favor certain mechanisms over others.
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Gibson, C., Cui, W., & Reddy, G. (2026). Distinct mechanisms underlying in-context learning in transformers. Physical Review X. https://doi.org/10.1103/p3qs-d91v
MLA 9
Gibson, Cole, et al. “Distinct mechanisms underlying in-context learning in transformers.” Physical Review X, 2026. https://doi.org/10.1103/p3qs-d91v.
Chicago
Gibson, Cole, Wenping Cui, and Gautam Reddy. 2026. “Distinct mechanisms underlying in-context learning in transformers.” Physical Review X. https://doi.org/10.1103/p3qs-d91v.
Harvard
Gibson, C., Cui, W. and Reddy, G. (2026) ‘Distinct mechanisms underlying in-context learning in transformers’, Physical Review X. doi:10.1103/p3qs-d91v.
IEEE
C. Gibson, W. Cui, and G. Reddy, “Distinct mechanisms underlying in-context learning in transformers,” Physical Review X, 2026, doi: 10.1103/p3qs-d91v.
BibTeX
@article{gibson2026distinct,
title = {{Distinct mechanisms underlying in-context learning in transformers}},
author = {Gibson, Cole and Cui, Wenping and Reddy, Gautam},
journal = {Physical Review X},
year = {2026},
doi = {10.1103/p3qs-d91v},
url = {https://doi.org/10.1103/p3qs-d91v}
}
Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)
Topic and keywords
Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
- in-context learning
- transformer models
- memorization
- generalization
- subcircuits
- Markov chains
- data diversity
- loss landscape
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Gibson, C., Cui, W., & Reddy, G. (2026). Distinct mechanisms underlying in-context learning in transformers. Physical Review X. https://doi.org/10.1103/p3qs-d91v
How many times has this paper been cited?
5 times, according to OpenAlex on 2 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.
Is this paper free to read?
Yes. It is open access at Physical Review X: sign in and open the full text from this page.
Who wrote this paper?
Cole Gibson, Wenping Cui, Gautam Reddy.
What is the DOI of this paper?
10.1103/p3qs-d91v, permanently at https://doi.org/10.1103/p3qs-d91v. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 2 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.