Abstract
Using massive datasets to train large-scale models has emerged as a dominant approach for broad generalization in natural language and vision applications. In reinforcement learning (RL), however, a key challenge is that available data of sequential decision making is often not annotated with actions. We propose to circumvent this challenge by combining large but sparsely-annotated datasets from a target environment with fully-annotated datasets from various source environments. Our method, Action Limited PreTraining (ALPT), leverages the generalization capabilities of inverse dynamics modelling (IDM) to label missing action data. We show that utilizing even one additional environment dataset during IDM pretraining gives rise to substantial improvements, enabling high-performance agents to be trained using as little as 12 minutes of labeled target data.
Introduction
In fields like Natural Language Processing, nearly infinite raw text is available for training. In RL, we have plenty of "state" data (such as videos of gameplay), but we rarely have the corresponding "action" data (the specific control signals). These are called action-limited datasets. Acquiring these labels is expensive and time-consuming. While previous work has shown that an IDM can label raw video, it typically requires thousands of hours of manually labeled data for a single task. ALPT asks: Can we leverage existing labeled datasets from different environments to help label a new, action-limited environment?
The ALPT Framework
ALPT introduces a two-stage pipeline designed for extreme data efficiency:
- Pretraining the IDM: A non-causal (bidirectional) transformer is trained to predict the action $a_t$ taken between two states $s_t$ and $s_{t+1}$. This IDM is trained on a massive pool of labeled data from various source environments plus a minimal amount of labeled data from the target environment.
- Training the Sequence Model: Simultaneously, a standard Decision Transformer (a causal model that predicts actions based on states and desired returns) is trained on all available data. The pretrained IDM provides "pseudo-labels" for any unlabeled sequences in the target environment.
The "secret sauce" is the non-causal IDM. Because it can look at both past and future frames to infer what happened in the middle, it is much more data-efficient at learning the "physics" of an environment than a standard agent policy.
Experimental Evaluation
We evaluated ALPT on the Atari Learning Environment (ALE) using the "RL Unplugged" datasets (100M steps per game). In our experiments, one game is held out as the target, provided with only 10,000 labeled transitions (roughly 12 minutes of play), while the rest of its 100M steps remain unlabeled. We also tested the method on Maze Navigation tasks to verify generalization across different layouts.
Results and Discussion
ALPT demonstrates a significant performance boost over standard baselines. On games like Breakout and Seaquest, ALPT achieved up to a 500% improvement in episodic return compared to training on the target game alone. The model produces strong agents using only 0.01% of the original action labels.
Key Insights
- Generalist IDMs: IDMs generalize across environments much better than policies. An IDM trained on multiple games learns a fundamental representation of "change" that transfers to new tasks.
- Disjoint Action Spaces: Surprisingly, ALPT works even when the source and target games have no actions in common. For example, pretraining on Freeway (Up, Down) helps performance on Breakout (Left, Right), suggesting the model learns structural symmetries of movement.
- Scaling Laws: Performance on the target game consistently improves as the number of source games increases, highlighting the benefits of large-scale multi-environment pretraining.
Conclusion
ALPT offers a scalable solution to the action-label bottleneck in reinforcement learning. By leveraging the power of generalist inverse dynamics models, we can unlock the potential of vast unlabeled video datasets to train high-performing agents with minimal human supervision. Future work will explore how these benefits transfer to high-dimensional continuous control and complex real-world robotics.
Summary updated