mlsanityData to 26 Nov 2026

In-Context Learning Before Specialisation: Theory of Learning in a Solvable Topic Model

arXiv 2610.21901 ↗Submitted 15 Oct 2026cs.LG cs.AI stat.MLcited by 0

Not on the map. Why?

Abstract (arXiv)

Sequence models can generalise in fundamentally distinct ways: extrapolating structures seen in training, or using their prompt to adapt to novel tasks. The prevailing strategy determines how the model behaves beyond its training distribution, controlling potential capabilities and risks. Recent work has characterised many different strategies theoretically, and empirically described the transition between them as the quality and quantity of pretraining data vary. However, there is no learning theory for this competition, hence no fundamental understanding of textitwhy one solution might be favoured over another. Here we provide such a theory in a solvable topic model---documents drawn from a finite mixture of latent topics, mirroring the heterogeneity of modern pretraining data. The dataset comes with two distinct solutions: a specialised predictor, that stores the finite topic mixture, and an in-context one, optimal for topics never seen during training. Our theory predicts their emergence at distinct sample complexities: the in-context predictor is available early, while the specialised one emerges only after the training tokens outnumber the parameters of the data-generating process. Trained transformers reproduce both scales and the separating crossover in remarkable agreement with the theory, with no fitted parameters.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 29 of its 40 references that are in the map. Submitted 15 Oct 2026.

Builds on

29 of 40 references.

References · 29

  1. 2020Language Models are Few-Shot Learnerscited by 33,113
  2. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 989
  3. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
  4. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
  5. 2023In-Context Learning Creates Task Vectorscited by 337
  6. 2023Role-Play with Large Language Modelscited by 308
  7. 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 218
  8. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 155
  9. 2024How Transformers Learn Causal Structure with Gradient Descentcited by 136
  10. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 130
  11. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 126
  12. 2019Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setupcited by 119
17 more
  1. 2024Transformers represent belief state geometry in their residual streamcited by 88
  2. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 87
  3. 2024Asymptotic theory of in-context learning by linear attentioncited by 68
  4. 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 59
  5. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 51
  6. 2025Bigger Isn't Always Memorizing: Early Stopping Overparameterized Diffusion Modelscited by 28
  7. 2026Deriving Neural Scaling Laws from the statistics of natural languagecited by 27
  8. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 24
  9. 2025In-Context Learning Strategies Emerge Rationallycited by 21
  10. 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Timecited by 21
  11. 2025Dynamics of Transient Structure in In-Context Linear Regression Transformerscited by 20
  12. 2025From Markov to Laplace: How Mamba In-Context Learns Markov Chainscited by 14
  13. 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learningcited by 12
  14. 2025Statistical mechanics of extensive-width Bayesian neural networks near interpolationcited by 10
  15. 2025Next-token pretraining implies in-context learningcited by 7
  16. 2026Distinct mechanisms underlying in-context learning in transformerscited by 5
  17. 2026Task Vector Geometry Underlies Dual Modes of Task Inference in Transformerscited by 2

Built on by

Not cited yet.