mlsanityData to 7 Oct 2026

An evolutionary perspective on modes of learning in Transformers

arXiv 2505.09855 ↗First posted 14 May 2025cs.LG cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

The success of Transformers lies in their ability to improve inference through two complementary strategies: the permanent refinement of model parameters via in-weight learning (IWL), and the ephemeral modulation of inferences via in-context learning (ICL), which leverages contextual information maintained in the model's activations. Evolutionary biology tells us that the predictability of the environment across timescales predicts the extent to which analogous strategies should be preferred. Genetic evolution adapts to stable environmental features by gradually modifying the genotype over generations. Conversely, environmental volatility favors plasticity, which enables a single genotype to express different traits within a lifetime, provided there are reliable cues to guide the adaptation. We operationalize these dimensions (environmental stability and cue reliability) in controlled task settings (sinusoid regression and Omniglot classification) to characterize their influence on learning in Transformers. We find that stable environments favor IWL, often exhibiting a sharp transition when conditions are static. Conversely, reliable cues favor ICL, particularly when the environment is volatile. Furthermore, an analysis of learning dynamics reveals task-dependent transitions between strategies (ICL to IWL and vice versa). We demonstrate that these transitions are governed by (1) the asymptotic optimality of the strategy with respect to the environment, and (2) the optimization cost of acquiring that strategy, which depends on the task structure and the learner's inductive bias.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 23 of its 44 references that are in the map. First posted on arXiv 14 May 2025.

Builds on

23 of 44 references.

References · 23

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  5. 2017A Closer Look at Memorization in Deep Networkscited by 936
  6. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  7. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  8. 2022Transformers learn in-context by gradient descentcited by 714
  9. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  10. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  11. 2023Function Vectors in Large Language Modelscited by 292
  12. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
11 more
  1. 2023Explaining grokking through circuit efficiencycited by 105
  2. 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 90
  3. 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 86
  4. 2023In-Context Learning through the Bayesian Prismcited by 78
  5. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
  6. 2018The Description Length of Deep Learning Modelscited by 71
  7. 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
  8. 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 52
  9. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
  10. 2013Reasoning About Beliefs and Actions Under Computational Resource Constraintscited by 18
  11. 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.