TL;DR
The paper introduces XIPER (Cross-domain Video Prediction Reward), a novel framework that allows reinforcement learning agents to learn directly from expert videos recorded in a visually distinct domain. By combining unpaired image translation with a video prediction model, XIPER uses the likelihood of future frame predictions as a dense reward signal, bypassing the need for unstable adversarial training or manual reward engineering.
What Problem Does This Paper Address?
Imagine trying to learn how to fly a plane by watching an animated video, or a robot trying to mimic a human hand from a YouTube clip. Humans do this effortlessly because we can map underlying behaviors across different appearances. For reinforcement learning (RL) agents, however, this "cross-domain" imitation is incredibly difficult.
When an agent learns purely from expert videos, it faces two major hurdles: the absence of explicit reward/action labels, and the domain gap (differences in color, body shape, or the sim-to-real gap between the expert and the learner). Prior approaches typically rely on adversarial imitation learning to learn domain-invariant features. Unfortunately, these methods are notoriously unstable, data-inefficient, and prone to mode collapse.
Methods
XIPER avoids adversarial training altogether by framing cross-domain imitation as a video prediction problem. The core idea is simple: if an agent is behaving like an expert, its future actions should be highly predictable by a model trained on expert behavior.
The framework consists of two main components, both pretrained offline and frozen during RL training:
- Domain Translation Model ($T_\phi$): Since the video prediction model only understands the expert's domain, XIPER uses Neural Optimal Transport (NOT) to map the agent's raw pixel observations into the expert's visual domain. Crucially, this translation model is trained entirely on unpaired, randomly collected data from both domains.
- Expert Domain Video Prediction Model ($p_\theta$): A VideoGPT model is trained exclusively on expert trajectories within the expert domain to capture the true distribution of the desired behavior.
During RL training, the agent's recent observations are translated into the expert domain and fed into the VideoGPT model. The log-likelihood of the predicted next expert frame serves as the reward signal ($r_t^{\text{xiper}}$). To prevent the agent from getting stuck, this reward is augmented with an uncertainty-based exploration bonus from Plan2Explore. The underlying RL agent is powered by DreamerV3.
Datasets
The authors evaluated XIPER on two simulated suites built from the DeepMind Control (DMC) Suite, alongside a real-world dataset:
- DMC Color Suite (8 tasks): Introduces a purely visual domain gap where the expert agent is orange and the learning agent is gray.
- DMC Body Suite (3 tasks): Introduces both visual and structural domain gaps; the learning agent has a significantly thicker body morphology than the standard-shaped expert.
- Sim2Real LynxReach Dataset: A dataset featuring a physical Lynx robot arm. Here, expert videos are only available in simulation, and the model must evaluate real-robot observations.
Key Insights and Ideas
- The Power of Random Data: Remarkably, the domain translation model generalizes incredibly well to expert trajectories (which are out-of-distribution) despite being trained solely on random exploration data. This is likely because random actions provide broad coverage of the pixel space.
- Morphology vs. Color Gaps: While standard video prediction models without translation (like VIPER) can occasionally generalize across simple color shifts, their performance completely collapses when faced with morphological changes (like a thicker body). XIPER's explicit translation step bridges this structural gap.
- Bypassing the Adversarial Trap: By replacing discriminators with generative video prediction, XIPER provides a much more stable and monotonic reward signal, avoiding the training curves and data inefficiencies typical of adversarial imitation methods.
Key Results
- DMC Benchmarks: XIPER consistently outperformed competitive baselines (including VIPER, XAIL, and TPIL-Dv3) in 9 out of 12 tasks across the DMC Color and Body Suites.
- Sim-to-Real Reward Validation: In the LynxReach robot arm experiments, the authors demonstrated that XIPER's learned rewards on real-robot observations correlated tightly with ground-truth task rewards, even though the video prediction model had only ever seen simulated expert videos.
Limitations and Future Work
While XIPER marks a significant step forward, the authors note two primary limitations:
- Data Coverage Bottleneck: Relying entirely on randomly collected data to train the translation model can fail for highly precise, long-horizon tasks where random exploration cannot sufficiently cover the necessary state space.
- Physical Deployment: Although the reward signal was validated on real-robot data, the authors have not yet closed the loop by training an online RL policy directly on a physical robot platform using XIPER. Turning this into an end-to-end physical training pipeline is a key direction for future work.
Summary updated