mlsanityData to 14 Oct 2026

Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds

arXiv 2502.02869 ↗First posted 5 Feb 2025cs.LG cs.AIcited by 4

On the map: Deep reinforcement learning methods → Deep RL algorithms and representations

Abstract (arXiv)

In-Context Reinforcement Learning (ICRL) enables agents to learn automatically and on-the-fly from their interactive experiences. However, a major challenge in scaling up ICRL is the lack of scalable task collections. To address this, we propose the procedurally generated tabular Markov Decision Processes, named AnyMDP. Through a carefully designed randomization process, AnyMDP is capable of generating high-quality tasks on a large scale while maintaining relatively low structural biases. To facilitate efficient meta-training at scale, we further introduce decoupled policy distillation and induce prior information in the ICRL framework. Our results demonstrate that, with a sufficiently large scale of AnyMDP tasks, the proposed model can generalize to tasks that were not considered in the training set through versatile in-context learning paradigms. The scalable task set provided by AnyMDP also enables a more thorough empirical investigation of the relationship between data distribution and ICRL performance. We further show that the generalization of ICRL potentially comes at the cost of increased task diversity and longer adaptation periods. This finding carries critical implications for scaling robust ICRL capabilities, highlighting the necessity of diverse and extensive task design, and prioritizing asymptotic performance over few-shot adaptation.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Deep RL algorithms and representations, one of 15 directions in Deep reinforcement learning methods. Builds on 57 of its 77 references that are in the map. First posted on arXiv 5 Feb 2025.

Builds on

57 of 77 references.

References · 57

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2017Proximal Policy Optimization Algorithmscited by 15,215
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  8. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  9. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  10. 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
  11. 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,809
  12. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
38 more
  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  2. 2019Meta-World: A Benchmark and Evaluation for Multi-Task and Meta Reinforcement Learningcited by 1,204
  3. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  4. 2022A Generalist Agentcited by 808
  5. 2019Solving Rubik's Cube with a Robot Handcited by 734
  6. 2022Transformers learn in-context by gradient descentcited by 732
  7. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  8. 2017Sim-to-Real Transfer of Robotic Control with Dynamics Randomizationcited by 672
  9. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  10. 2017Minimax Regret Bounds for Reinforcement Learningcited by 503
  11. 2018Is Q-learning Provably Efficient?cited by 487
  12. 2019Leveraging Procedural Generation to Benchmark Reinforcement Learningcited by 483
  13. 2016Learning to reinforcement learncited by 377
  14. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  15. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
  16. 2021End-to-End Urban Driving by Imitating a Reinforcement Learning Coachcited by 194
  17. 2021Open-Ended Learning Leads to Generally Capable Agentscited by 182
  18. 2021Meta-learning via Language Model In-context Tuningcited by 164
  19. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
  20. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
  21. 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 139
  22. 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 138
  23. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
  24. 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 105
  25. 2020Error Bounds of Imitating Policies and Environmentscited by 90
  26. 2024In-Context Language Learning: Architectures and Algorithmscited by 89
  27. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
  28. 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 76
  29. 2024In-Context Imitation Learning via Next-Token Predictioncited by 70
  30. 2023POPGym: Benchmarking Partially Observable Reinforcement Learningcited by 62
  31. 2023Meta-in-context learning in large language modelscited by 59
  32. 2023XLand-MiniGrid: Scalable Meta-Reinforcement Learning Environments in JAXcited by 55
  33. 2022Transformers generalize differently from information stored in context vs in weightscited by 49
  34. 2020Meta-Learning through Hebbian Plasticity in Random Networkscited by 47
  35. 2023Generalization to New Sequential Decision Making Tasks with In-Context Learningcited by 39
  36. 2024LLMs learn governing principles of dynamical systems, revealing an in-context neural scaling lawcited by 32
  37. 2023Emergence of In-Context Reinforcement Learning from Noise Distillationcited by 27
  38. 2024Analysing The Impact of Sequence Composition on Language Model Pre-Trainingcited by 25

50 most cited of 57 All 57 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
  2. 2025Scalable In-Context Q-Learning
  3. 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learning
  4. 2025Vintix: Action Model via In-Context Reinforcement Learning
  5. 2024AMAGO-2: Breaking the Multi-Task Barrier in Meta-Reinforcement Learning with Transformers
  6. 2024Random Policy Enables In-Context Reinforcement Learning within Trust Horizons
  7. 2024Towards an Information Theoretic Framework of Context-Based Offline Meta-Reinforcement Learning
  8. 2024In-context Exploration-Exploitation for Reinforcement Learning