[Paper Review] XIRL: Cross-embodiment Inverse Reinforcement Learning
XIRL proposes a self-supervised inverse reinforcement learning method that learns embodiment-invariant visual representations from third-person demonstration videos using temporal cycle-consistency, enabling robust, dense reward functions for training policies across diverse robot embodiments. It achieves superior sample efficiency and zero-shot generalization to unseen agents, outperforming prior methods on both simulated and real-world benchmarks.
We investigate the visual cross-embodiment imitation setting, in which agents learn policies from videos of other agents (such as humans) demonstrating the same task, but with stark differences in their embodiments -- shape, actions, end-effector dynamics, etc. In this work, we demonstrate that it is possible to automatically discover and learn vision-based reward functions from cross-embodiment demonstration videos that are robust to these differences. Specifically, we present a self-supervised method for Cross-embodiment Inverse Reinforcement Learning (XIRL) that leverages temporal cycle-consistency constraints to learn deep visual embeddings that capture task progression from offline videos of demonstrations across multiple expert agents, each performing the same task differently due to embodiment differences. Prior to our work, producing rewards from self-supervised embeddings typically required alignment with a reference trajectory, which may be difficult to acquire under stark embodiment differences. We show empirically that if the embeddings are aware of task progress, simply taking the negative distance between the current state and goal state in the learned embedding space is useful as a reward for training policies with reinforcement learning. We find our learned reward function not only works for embodiments seen during training, but also generalizes to entirely new embodiments. Additionally, when transferring real-world human demonstrations to a simulated robot, we find that XIRL is more sample efficient than current best methods. Qualitative results, code, and datasets are available at https://x-irl.github.io
Motivation & Objective
- Address the challenge of learning policies from third-person videos of experts with different embodiments, where action labels are unavailable.
- Overcome the difficulty of aligning trajectories across diverse agents due to embodiment gaps (e.g., human hands vs. robotic grippers).
- Develop a label-free, self-supervised method to learn dense, task-progress-aware reward functions from unpaired demonstration videos.
- Enable zero-shot transfer of policies to new, unseen robot embodiments using only pre-trained visual embeddings.
- Establish a benchmark and real-world dataset for evaluating cross-embodiment imitation learning methods.
Proposed method
- Leverage temporal cycle-consistency (TCC) to train a vision encoder that learns visual embeddings invariant to embodiment differences.
- Use the trained encoder to map video frames into a shared embedding space where task progress is preserved.
- Define a dense reward as the negative L2 distance between current state and goal state in the learned embedding space.
- Train downstream reinforcement learning policies using the self-supervised reward, without requiring ground-truth actions or trajectory alignment.
- Apply the method to both simulated agents with varying morphologies and real human demonstrations transferred to simulated robots.
- Use data augmentation (color jitter, random crop, grayscale, blur) and a contrastive learning objective to improve embedding quality.
Experimental results
Research questions
- RQ1Can self-supervised visual representations learned from diverse expert demonstrations capture task progress in a way invariant to embodiment differences?
- RQ2Can such representations be used to define dense, generalizable reward functions for downstream reinforcement learning across unseen robot embodiments?
- RQ3How does XIRL compare in sample efficiency and final performance to prior imitation learning and inverse reinforcement learning methods on cross-embodiment settings?
- RQ4To what extent can a reward function trained on real human demonstrations be transferred to a simulated robot with a different embodiment?
- RQ5What role do inductive biases from the TCC loss and multi-embodiment pretraining play in enabling zero-shot generalization?
Key findings
- XIRL learns visual embeddings that preserve task progress and enable effective dense reward shaping, even without ground-truth action annotations.
- The negative L2 distance in the embedding space between current and goal states serves as a highly effective, generalizable reward for RL.
- XIRL achieves superior sample efficiency compared to baseline methods, with some agents learning faster than with ground-truth sparse rewards.
- The method generalizes zero-shot to new robot embodiments not seen during training, including in real-world transfer from human videos to a Sawyer robot.
- On the X-MAGICAL benchmark, XIRL significantly outperforms both baseline imitation and inverse RL methods across four distinct simulated embodiments.
- Qualitative t-SNE visualizations confirm that XIRL embeddings align trajectories from different experts and correlate distance to goal with actual task progress.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.