XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learning

Alexander Nikulin, Ilya Zisman, Alexey Zemtsov, Vladislav Kurenkov

TL;DR

XLand-100B is a massive new open-source dataset designed to jumpstart research in In-Context Reinforcement Learning (ICRL). By providing 100 billion transitions and 2.5 billion episodes across nearly 30,000 diverse tasks, it offers the scale necessary for transformers to learn how to solve new RL problems purely through their context window, without any weight updates.

The Data Bottleneck in In-Context RL

In-context learning (ICL) has revolutionized Natural Language Processing, allowing models to tackle new tasks simply by looking at a few examples in their prompt. Researchers want to bring this same "zero-shot adaptation" to Reinforcement Learning, creating agents that can enter a brand-new environment and figure out the rules on the fly.

However, ICRL faces a severe data bottleneck. To learn how to learn, a model needs to see thousands of different tasks and, crucially, the learning histories (the progression from "clueless" to "expert") of agents solving them. Existing RL datasets are either too small (only a few dozen tasks) or only contain "expert" trajectories, which fail to show the model the process of improvement. Collecting this data is prohibitively expensive for most academic labs; the authors spent 50,000 GPU hours to bridge this gap.

Methods and Data Collection

The authors built their dataset using XLand-MiniGrid, a highly efficient, JAX-based grid-world environment capable of procedurally generating a vast array of tasks.

XLand-MiniGrid environment example

The collection process involved a sophisticated three-stage pipeline:

  1. Multi-task Pre-training: They trained a "base" agent using Proximal Policy Optimization (PPO) on 65,000 tasks. During this phase, the agent was given the specific rules and goals of the task as input to help it converge faster.
  2. Single-task Fine-tuning: They took this pre-trained agent and fine-tuned it on ~30,000 individual tasks without giving it the rules. They recorded every single transition as the agent "re-learned" each specific task. This captured the essential "learning history" required for ICRL.
  3. Post-processing & Relabeling: To support different training architectures, they relabeled the recorded data with "expert actions"—what the final, fully-trained policy would have done at each step.

To make the resulting 320GB dataset manageable, they used HDF5 storage with tuned gzip compression and custom chunking, achieving a 15x reduction in size while maintaining high data-loading throughput.

The Datasets

The paper introduces two primary versions of the dataset:

  • XLand-100B (Main): 28,876 tasks, 100 billion transitions, and 2.5 billion episodes. It features tasks with up to 9 complex rules.
  • XLand-Trivial-20B: A smaller, "easier" version with 10,000 tasks and 20 billion transitions, intended for faster debugging and iteration.

Compared to existing datasets like GATO and JAT, XLand-100B uniquely provides the multi-task learning histories essential for true ICRL.

Key Insights

  • The Necessity of the "Struggle": ICRL models cannot be trained on expert data alone. They must see the agent's transition from low to high reward to understand the underlying logic of policy improvement.
  • Scaling the Task Space: The number of unique tasks is a critical scaling law for ICRL. Training on 3,000 tasks yields significantly better in-context adaptation than training on 100 tasks.
  • The POMDP Hurdle: The paper highlights a major weakness in current "Decision-Pretrained Transformer" (DPT) methods: they struggle with Partially Observable Markov Decision Processes (POMDPs). Because DPT relies on random context rather than ordered history, it fails when the agent needs to remember past observations (e.g., if it has already found a key that is no longer in view).

Key Results

  • Emergent ICRL: Using Algorithm Distillation (AD), the authors successfully trained models that show clear policy improvement within their context window on unseen tasks.
  • Complexity Gap: While AD works well on simple tasks, its performance degrades significantly as tasks become more complex (e.g., moving from 3 rules to 9 rules). This suggests that current architectures are not yet efficient enough to "distill" complex RL algorithms.
Performance degradation on tasks with higher rule complexity
  • Democratization: By releasing the data and absorbing the 50,000 GPU-hour "heavy lifting," the authors provide a foundation for labs with modest resources to contribute to high-level RL research.

Limitations and Future Work

The authors acknowledge several areas for future growth:

  • Domain Diversity: All tasks currently share the same observation (grid-world) and action spaces.
  • Structural Similarity: The tasks all share a latent "binary tree" structure for their rules.
  • Environment Layouts: Most data was collected in single-room layouts; moving to multi-room environments with doors remains a challenge for future versions.
  • Baseline Performance: Current baselines (AD and DPT) are still far from "solving" the dataset, leaving a massive open challenge for the community to develop more sample-efficient ICRL architectures.

Summary updated

BibTeX
@inproceedings{nikulin2025xland,
  author = {Alexander Nikulin and Ilya Zisman and Alexey Zemtsov and Vladislav Kurenkov},
  title = {{XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=p9OsTj0nMP},
}
Figure