General-Purpose In-Context Learning by Meta-Learning Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2016HyperNetworkscited by 1,003
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
38 more
- 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2016Learning to learn by gradient descent by gradient descentcited by 616
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
- 2018Conditional Neural Processescited by 421
- 2016Learning to reinforcement learncited by 369
- 2019Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAMLcited by 359
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022Evolving Curricula with Regret-Based Environment Designcited by 166
- 2018Meta-Gradient Reinforcement Learningcited by 156
- 2020AutoML-Zero: Evolving Machine Learning Algorithms From Scratchcited by 137
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2019Generative Teaching Networks: Accelerating Neural Architecture Search by Learning to Generate Synthetic Training Datacited by 103
- 2018Understanding and correcting pathologies in the training of learned optimizerscited by 97
- 2018Evolved Policy Gradientscited by 86
- 2019AI-GAs: AI-generating algorithms, an alternate paradigm for producing general artificial intelligencecited by 84
- 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
- 2022Towards Learning Universal Hyperparameter Optimizers with Transformerscited by 81
- 2020Discovering Reinforcement Learning Algorithmscited by 75
- 2019Meta-learning of Sequential Strategiescited by 68
- 2019Improving Generalization in Meta Reinforcement Learning using Learned Objectivescited by 68
- 2019Meta-Learning via Learned Losscited by 60
- 2020Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselvescited by 57
- 2022HyperTransformer: Model Generation for Supervised and Semi-Supervised Few-Shot Learningcited by 55
- 2021The Sensory Neuron as a Transformer: Permutation-Invariant Neural Networks for Reinforcement Learningcited by 50
- 2020Meta Learning Backpropagation And Improving Itcited by 49
- 2021Evolving Reinforcement Learning Algorithmscited by 48
- 2022Discovering Evolution Strategies via Meta-Black-Box Optimizationcited by 44
- 2020Meta-trained agents implement Bayes-optimal agentscited by 37
- 2020Using a thousand optimization tasks to learn hyperparameter search strategiescited by 29
- 2016Capacity and Trainability in Recurrent Neural Networkscited by 26
- 2021Introducing Symmetries to Black Box Meta Reinforcement Learningcited by 25
- 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
Citing papers per year: 2022: 2; 2023: 32; 2024: 24; 2025: 26; 2026: 18.
102 papers.
Sort:
By area:
- 2022Transformers learn in-context by gradient descentcited by 714
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023Large Language Models as General Pattern Machinescited by 196
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 138
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
38 more
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
- 2023Structured State Space Models for In-Context Reinforcement Learningcited by 109
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2025Model Organisms for Emergent Misalignmentcited by 84
- 2024Language Agents as Optimizable Graphscited by 81
- 2024Can large language models explore in-context?cited by 75
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2023Advances and Challenges in Meta-Learning: A Technical Reviewcited by 65
- 2023Statistical Foundations of Prior-Data Fitted Networkscited by 59
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Reason for Future, Act for Now: A Principled Framework for Autonomous LLM Agents with Provable Sample Efficiencycited by 46
- 2023Generalization to New Sequential Decision Making Tasks with In-Context Learningcited by 39
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilitiescited by 36
- 2023AutoML in the Age of Large Language Models: Current Challenges, Future Opportunities and Riskscited by 34
- 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
- 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
- 2024On the Out-Of-Distribution Generalization of Multimodal Large Language Modelscited by 30
- 2023Brain-inspired learning in artificial neural networks: a reviewcited by 26
- 2023Emergence of In-Context Reinforcement Learning from Noise Distillationcited by 26
- 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
- 2023A Closer Look at In-Context Learning under Distribution Shiftscited by 25
- 2023Context-Aware Meta-Learningcited by 20
- 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RLcited by 20
- 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
- 2025In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-Learningcited by 17
- 2026Training Language Models via Neural Cellular Automatacited by 15
- 2023Memory-Based Meta-Learning on Non-Stationary Distributionscited by 14
- 2024AMAGO-2: Breaking the Multi-Task Barrier in Meta-Reinforcement Learning with Transformerscited by 14
- 2023From system models to class models: An in-context learning paradigmcited by 13
- 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learningcited by 13
- 2024On the Role of Depth and Looping for In-Context Learning with Task Diversitycited by 11
- 2023The Languini Kitchen: Enabling Language Modelling Research at Different Scales of Computecited by 10
- 2024MAML-en-LLM: Model Agnostic Meta-Training of LLMs for Improved In-Context Learningcited by 10
- 2023Breaking through the learning plateaus of in-context learning in Transformercited by 8
- 2025ContextPilot: Fast Long-Context Inference via Context Reusecited by 8
- 2024In-context learning and Occam's razorcited by 7
- 2024Understanding In-Context Learning of Linear Models in Transformers Through an Adversarial Lenscited by 7
50 most cited of 102 All 102 (JSON)
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Training AI Scientists to Replicate Research13 Aug 2026
- 2026Grounding latent algorithm routing in transformer reasoning27 Jul 2026
- 2026Sequential Correlations Change In-Context Learning: Effective Context Length and Architectural Mismatch4 Jul 2026
- 2026Multi-Task Bayesian In-Context Learning18 Jun 2026
- 2026Pretraining Recurrent Networks without Recurrence4 Jun 2026
- 2026Task diversity produces systematic transfer but inhibits continual reinforcement learning30 May 2026
- 2026Parallax: Parameterized Local Linear Attention for Language Modeling27 May 2026
- 2026Advancing Graph Few-Shot Learning via In-Context Learning23 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Self-Organising Digital Circuits7 May 2026
- 2026Diffusion Sequence Models for Generative In-Context Meta-Learning of Robot Dynamics15 Apr 2026
38 more
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026When Do We Need LLMs? A Diagnostic for Language-Driven Bandits7 Apr 2026
- 2026Training Language Models via Neural Cellular Automata9 Mar 2026
- 2026Universal Algorithm-Implicit Learning16 Feb 2026
- 2026Large Language Models Can Take False First Steps at Inference-time Planning3 Feb 2026
- 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weights1 Feb 2026
- 2025In-Context Algebra18 Dec 2025
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025TabDistill: Distilling Transformers into Neural Nets for Few-Shot Tabular Classification7 Nov 2025
- 2025ContextPilot: Fast Long-Context Inference via Context Reuse5 Nov 2025
- 2025LLMs as In-Context Meta-Learners for Model and Hyperparameter Selection30 Oct 2025
- 2025Optimal In-context Adaptivity and Distributional Robustness of Transformers27 Oct 2025
- 2025In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-Learning13 Oct 2025
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regression1 Oct 2025
- 2025Context and Diversity Matter: The Emergence of In-Context Learning in World Models26 Sep 2025
- 2025Can Transformers Break Encryption Schemes via In-Context Learning?13 Aug 2025
- 2025Mockingbird: How does LLM perform in general machine learning tasks?6 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025Flows and Diffusions on the Neural Manifold14 Jul 2025
- 2025Meta-Learning Transformers to Improve In-Context Generalization7 Jul 2025
- 2025Distributionally robust minimization in meta-learning for system identification22 Jun 2025
- 2025Don't throw the baby out with the bathwater: How and why deep learning for ARC17 Jun 2025
- 2025Model Organisms for Emergent Misalignment13 Jun 2025
- 2025RoNFA: Robust Neural Field-based Approach for Few-Shot Image Classification with Noisy Labels3 Jun 2025
- 2025Understanding Prompt Tuning and In-Context Learning via Meta-Learning22 May 2025
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilities22 Apr 2025
- 2025How Private is Your Attention? Bridging Privacy with In-Context Learning22 Apr 2025
- 2025Free Random Projection for In-Context Reinforcement Learning9 Apr 2025
- 2025Flow to Learn: Flow Matching on Neural Network Parameters25 Mar 2025
- 2025Measuring In-Context Computation Complexity via Hidden State Prediction17 Mar 2025
- 2025Can We Optimize Deep RL Policy Weights as Trajectory Modeling?6 Mar 2025
- 2025Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds5 Feb 2025
- 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learning27 Nov 2024
- 2024AMAGO-2: Breaking the Multi-Task Barrier in Meta-Reinforcement Learning with Transformers17 Nov 2024
- 2024Understanding In-Context Learning of Linear Models in Transformers Through an Adversarial Lens7 Nov 2024
- 2024On the Role of Depth and Looping for In-Context Learning with Task Diversity29 Oct 2024
- 2024In-context learning and Occam's razor17 Oct 2024
- 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RL9 Oct 2024
50 newest of 102 All 102 (JSON)
- 2024Language Agents as Optimizable Graphscited by 81
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilitiescited by 36
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilities22 Apr 2025
- 2024Language Agents as Optimizable Graphs26 Feb 2024
- 2026Grounding latent algorithm routing in transformer reasoning27 Jul 2026
- 2023Accelerating Neural Self-Improvement via Bootstrappingcited by 1
- 2023Accelerating Neural Self-Improvement via Bootstrapping2 May 2023
- 2022Transformers learn in-context by gradient descentcited by 714
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023Large Language Models as General Pattern Machinescited by 196
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
12 most cited of 88 All 88 (JSON)
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Training AI Scientists to Replicate Research13 Aug 2026
- 2026Sequential Correlations Change In-Context Learning: Effective Context Length and Architectural Mismatch4 Jul 2026
- 2026Multi-Task Bayesian In-Context Learning18 Jun 2026
- 2026Pretraining Recurrent Networks without Recurrence4 Jun 2026
- 2026Task diversity produces systematic transfer but inhibits continual reinforcement learning30 May 2026
- 2026Parallax: Parameterized Local Linear Attention for Language Modeling27 May 2026
- 2026Advancing Graph Few-Shot Learning via In-Context Learning23 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Self-Organising Digital Circuits7 May 2026
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026When Do We Need LLMs? A Diagnostic for Language-Driven Bandits7 Apr 2026
12 newest of 88 All 88 (JSON)