mlsanityData to 7 Oct 2026

General-Purpose In-Context Learning by Meta-Learning Transformers

arXiv 2212.04458 ↗First posted 8 Dec 2022cs.LG cs.AI cs.NEcited by 102

Not on the map. Why?

Abstract (arXiv)

Modern machine learning requires system designers to specify aspects of the learning pipeline, such as losses, architectures, and optimizers. Meta-learning, or learning-to-learn, instead aims to learn those aspects, and promises to unlock greater capabilities with less manual effort. One particularly ambitious goal of meta-learning is to train general-purpose in-context learning algorithms from scratch, using only black-box models with minimal inductive bias. Such a model takes in training data, and produces test-set predictions across a wide range of problems, without any explicit definition of an inference model, training loss, or optimization algorithm. In this paper we show that Transformers and other black-box models can be meta-trained to act as general-purpose in-context learners. We characterize transitions between algorithms that generalize, algorithms that memorize, and algorithms that fail to meta-train at all, induced by changes in model size, number of tasks, and meta-optimization. We further show that the capabilities of meta-trained algorithms are bottlenecked by the accessible state size (memory) determining the next prediction, unlike standard models which are thought to be bottlenecked by parameter count. Finally, we propose practical interventions such as biasing the training distribution that improve the meta-training and meta-generalization of general-purpose in-context learning algorithms.

Key facts. Cited by 102 papers in the map (data through 7 Oct 2026). Builds on 53 of its 68 references that are in the map. First posted on arXiv 8 Dec 2022.

Builds on

53 of 68 references.

References · 53

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  8. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  9. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  10. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  11. 2016HyperNetworkscited by 1,003
  12. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
38 more
  1. 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
  2. 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
  3. 2016Learning to learn by gradient descent by gradient descentcited by 616
  4. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  5. 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
  6. 2018Conditional Neural Processescited by 421
  7. 2016Learning to reinforcement learncited by 369
  8. 2019Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAMLcited by 359
  9. 2021Transformers Can Do Bayesian Inferencecited by 338
  10. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  11. 2022Neural Networks and the Chomsky Hierarchycited by 214
  12. 2022Exploring Length Generalization in Large Language Modelscited by 204
  13. 2022Evolving Curricula with Regret-Based Environment Designcited by 166
  14. 2018Meta-Gradient Reinforcement Learningcited by 156
  15. 2020AutoML-Zero: Evolving Machine Learning Algorithms From Scratchcited by 137
  16. 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
  17. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  18. 2019Generative Teaching Networks: Accelerating Neural Architecture Search by Learning to Generate Synthetic Training Datacited by 103
  19. 2018Understanding and correcting pathologies in the training of learned optimizerscited by 97
  20. 2018Evolved Policy Gradientscited by 86
  21. 2019AI-GAs: AI-generating algorithms, an alternate paradigm for producing general artificial intelligencecited by 84
  22. 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
  23. 2022Towards Learning Universal Hyperparameter Optimizers with Transformerscited by 81
  24. 2020Discovering Reinforcement Learning Algorithmscited by 75
  25. 2019Meta-learning of Sequential Strategiescited by 68
  26. 2019Improving Generalization in Meta Reinforcement Learning using Learned Objectivescited by 68
  27. 2019Meta-Learning via Learned Losscited by 60
  28. 2020Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselvescited by 57
  29. 2022HyperTransformer: Model Generation for Supervised and Semi-Supervised Few-Shot Learningcited by 55
  30. 2021The Sensory Neuron as a Transformer: Permutation-Invariant Neural Networks for Reinforcement Learningcited by 50
  31. 2020Meta Learning Backpropagation And Improving Itcited by 49
  32. 2021Evolving Reinforcement Learning Algorithmscited by 48
  33. 2022Discovering Evolution Strategies via Meta-Black-Box Optimizationcited by 44
  34. 2020Meta-trained agents implement Bayes-optimal agentscited by 37
  35. 2020Using a thousand optimization tasks to learn hyperparameter search strategiescited by 29
  36. 2016Capacity and Trainability in Recurrent Neural Networkscited by 26
  37. 2021Introducing Symmetries to Black Box Meta Reinforcement Learningcited by 25
  38. 2020Whitening and second order optimization both make information in the dataset unusable during training, and can reduce or prevent generalizationcited by 14

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 2; 2023: 32; 2024: 24; 2025: 26; 2026: 18.

102 papers.

Sort:

By area:

  1. 2022Transformers learn in-context by gradient descentcited by 714
  2. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  3. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  4. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  5. 2023Large Language Models as General Pattern Machinescited by 196
  6. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
  7. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
  8. 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 138
  9. 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
  10. 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
  11. 2025A Survey of Context Engineering for Large Language Modelscited by 120
  12. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
38 more
  1. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
  2. 2023Structured State Space Models for In-Context Reinforcement Learningcited by 109
  3. 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
  4. 2025Model Organisms for Emergent Misalignmentcited by 84
  5. 2024Language Agents as Optimizable Graphscited by 81
  6. 2024Can large language models explore in-context?cited by 75
  7. 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
  8. 2023Advances and Challenges in Meta-Learning: A Technical Reviewcited by 65
  9. 2023Statistical Foundations of Prior-Data Fitted Networkscited by 59
  10. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
  11. 2023Reason for Future, Act for Now: A Principled Framework for Autonomous LLM Agents with Provable Sample Efficiencycited by 46
  12. 2023Generalization to New Sequential Decision Making Tasks with In-Context Learningcited by 39
  13. 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
  14. 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilitiescited by 36
  15. 2023AutoML in the Age of Large Language Models: Current Challenges, Future Opportunities and Riskscited by 34
  16. 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
  17. 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
  18. 2024On the Out-Of-Distribution Generalization of Multimodal Large Language Modelscited by 30
  19. 2023Brain-inspired learning in artificial neural networks: a reviewcited by 26
  20. 2023Emergence of In-Context Reinforcement Learning from Noise Distillationcited by 26
  21. 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
  22. 2023A Closer Look at In-Context Learning under Distribution Shiftscited by 25
  23. 2023Context-Aware Meta-Learningcited by 20
  24. 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RLcited by 20
  25. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
  26. 2025In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-Learningcited by 17
  27. 2026Training Language Models via Neural Cellular Automatacited by 15
  28. 2023Memory-Based Meta-Learning on Non-Stationary Distributionscited by 14
  29. 2024AMAGO-2: Breaking the Multi-Task Barrier in Meta-Reinforcement Learning with Transformerscited by 14
  30. 2023From system models to class models: An in-context learning paradigmcited by 13
  31. 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learningcited by 13
  32. 2024On the Role of Depth and Looping for In-Context Learning with Task Diversitycited by 11
  33. 2023The Languini Kitchen: Enabling Language Modelling Research at Different Scales of Computecited by 10
  34. 2024MAML-en-LLM: Model Agnostic Meta-Training of LLMs for Improved In-Context Learningcited by 10
  35. 2023Breaking through the learning plateaus of in-context learning in Transformercited by 8
  36. 2025ContextPilot: Fast Long-Context Inference via Context Reusecited by 8
  37. 2024In-context learning and Occam's razorcited by 7
  38. 2024Understanding In-Context Learning of Linear Models in Transformers Through an Adversarial Lenscited by 7

50 most cited of 102 All 102 (JSON)