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

Fan Wang, Peng-Tao Shao, Yi-Ming Zhang, Bo Yu, Shao-Shan Liu +4 more
2/1/2025
rl

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025towards,
  title  = {Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds},
  author = {Fan Wang and Peng-Tao Shao and Yi-Ming Zhang and Bo Yu and Shao-Shan Liu and Ning Ding and Yang Cao and Yu Kang and Haifeng Wang},
  year   = {2025},
  eprint = {2502.02869},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-5714},
  url    = {https://doi.org/10.52202/085713-5714},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.02869.svg)](https://codeofpaper.com/paper/2502.02869)

Discussion