Abstract
Pre-training world models on large-scale unlabeled video datasets is a promising direction for Model-Based Reinforcement Learning (MBRL). However, the absence of action labels in these videos creates a significant "modeling gap" between action-free pre-training and action-conditional fine-tuning. We present PreLAR (Pre-training with Learnable Action Representation), a framework that infers implicit actions from video sequences and employs a novel action-state consistency loss to bridge this gap. PreLAR demonstrates significant improvements in sample efficiency and performance across complex visual control tasks, effectively leveraging both simulated and real-world video data.
Introduction
Model-Based Reinforcement Learning (MBRL) enables agents to learn a "world model"—a simulator of their environment—to plan and make decisions. While powerful, learning these models from scratch requires extensive interaction with the real world, which is often costly or dangerous. To mitigate this, researchers have turned to unsupervised pre-training using large-scale video datasets like YouTube or RLBench.
The primary challenge is that these videos lack action labels (e.g., we see a door open, but the underlying motor torques are unknown). Existing methods often treat pre-training as a simple video prediction task. This creates a discrepancy: the model pre-trains to predict the next frame based only on history, but during fine-tuning, it must suddenly learn to predict the next frame based on a specific action. This gap prevents models from fully capturing the causal relationship between actions and environment changes.
The PreLAR Framework
PreLAR addresses the modeling gap by treating pre-training as an action-conditional task, even when explicit labels are missing. The architecture maintains consistency between the pre-training and fine-tuning phases.
1. Implicit Action Representation
Instead of ignoring actions during pre-training, PreLAR utilizes an Inverse Dynamics Encoder ($I$). This component analyzes two adjacent video frames ($o_t, o_{t+1}$) to infer an "implicit action" ($\tilde{a}_t$). The world model is then trained to predict the next state using this inferred action, ensuring the architecture remains consistent for later stages.
2. Action-State Consistency Loss
To ensure these inferred actions are physically meaningful, the authors introduce a novel self-supervised loss. It operates on the principle that if two actions are significantly different, the resulting states should also be significantly different. A differentiable ranking-based loss aligns the relative differences in the action space with the relative differences in the predicted state space.
3. Fine-tuning
When the agent begins interacting with the target environment, a small Action Encoder ($A$) is introduced. This encoder maps real-world actions ($a_t$) into the pre-trained implicit action space, allowing the model to leverage the dynamics learned during the pre-training phase.
Experimental Setup
The researchers evaluated PreLAR using a two-stage process:
- Pre-training Datasets:
- RLBench: A simulated dataset containing ~5,000 videos of 10 different manipulation tasks.
- Something-Something-V2 (SSv2): A massive real-world dataset of 220,000 video clips of humans performing basic actions with everyday objects.
- Evaluation Benchmark:
- Meta-world: A standard simulation environment for visual control. The model was fine-tuned and tested on six distinct tasks, including Drawer Open, Lever Pull, and Door Lock.
Key Insights and Results
PreLAR shifts the focus from simple dependency (what follows what) to causality (how a specific input leads to a specific output). By keeping the model architecture identical between pre-training and fine-tuning, the knowledge gained from watching videos transfers more effectively to the robot.
- Superior Sample Efficiency: PreLAR consistently outperformed DreamerV2 (trained from scratch) and previous pre-training methods like APV. In tasks such as Drawer Open, PreLAR reached high success rates significantly faster than competitors.
- Real-to-Sim Transfer: Even when pre-trained on real-world human videos (SSv2), PreLAR showed strong performance when transferred to a simulated robot, proving that the learned dynamics generalize across domains.
- Ablation Success: Removing the Action-State Consistency Loss led to a noticeable drop in performance, confirming that actions must be constrained to be physically meaningful rather than just being arbitrary latent variables.
Limitations and Future Work
While effective, PreLAR currently infers implicit actions from only two consecutive frames. In complex tasks, an "action" might span a longer duration or require more context. Additionally, the authors noted instances of "negative transfer" when pre-training video dynamics were too different from the target task (e.g., certain SSv2 to Meta-world transfers). Future work will explore learning more precise action representations from broader sequences of video frames and improving cross-domain generalization.
Summary updated