XSkill: Cross Embodiment Skill Discovery

Mengda Xu, Zhenjia Xu, Cheng Chi, Manuela Veloso, Shuran Song

TL;DR

XSkill is a novel imitation learning framework that allows robots to discover reusable manipulation skills by watching unlabeled videos of both humans and robots. By bridging the "embodiment gap" through shared skill prototypes, XSkill enables a robot to perform complex, unseen tasks after viewing just a single human demonstration video, even when the human and robot have vastly different physical forms and execution speeds.

What Problem Does This Paper Address?

Human demonstration videos are a goldmine for robot learning—they are abundant, intuitive, and capture complex behaviors. However, using them directly is incredibly difficult due to the embodiment gap. A human hand has different degrees of freedom than a robotic gripper, and a human might perform a task twice as fast as a robot. Furthermore, videos don't show the underlying forces or "action parameters" the robot needs to replicate the motion.

Existing methods often struggle to generalize to new tasks or require perfectly aligned data. The authors of XSkill aim to decompose long-horizon tasks into a set of common, reusable "skills" that are invariant to who is performing them, allowing for one-shot imitation of entirely new task sequences.

Methods

The XSkill framework operates in three distinct phases:

  1. Discover: The system learns a shared embedding space (XSkill Space) from unlabeled human and robot videos. It uses a Temporal Skill Encoder to extract features and maps them to a set of learnable skill prototypes. By using Sinkhorn-Knopp clustering, the model is forced to categorize similar actions (like "opening a drawer") into the same prototype, regardless of whether a human hand or a robot arm is doing the work. The discovery process uses temporal encoders and Sinkhorn clustering to align human and robot actions in a shared space.
The discovery process uses temporal encoders and Sinkhorn clustering to align human and robot actions in a shared space.
  1. Transfer: Once skills are discovered, the robot learns how to execute them. XSkill trains a skill-conditioned diffusion policy. Diffusion policies are particularly good at handling the "multimodal" nature of robot actions (i.e., there are many ways to successfully grab a cloth).
  2. Compose: For a new task, the robot watches a "human prompt video." It identifies the sequence of skills needed and uses a Skill Alignment Transformer (SAT) to synchronize its own actions with the plan. The SAT is crucial because it allows the robot to track its progress and adapt if it moves slower than the human or encounters an execution failure. The inference pipeline identifies skills from a human prompt and aligns them to the robot's current state for execution.
Figure 1: Cross Embodiment Skill Discovery. XSkill first learns a cross-embodiment skill representation space (XSkill Space on the left). During inference, given a human demonstration of unseen tasks, XSkill first identifies the human skills by projecting the video demonstration onto the learned cross-embodiment skill representation space. The identified skills are then executed by the skill-conditioned visuomotor policy.

Datasets

The authors evaluated XSkill on two main benchmarks:

  • Franka Kitchen (Simulation): A simulated environment with 7 sub-tasks. To test cross-embodiment, they created a "sphere agent" that looks and moves differently than the standard Franka arm.
  • Realworld Kitchen: A new benchmark introduced in this paper featuring a UR5 robot. It includes four sub-tasks: opening an oven, grasping a cloth, closing a drawer, and turning on a light. The dataset consists of 175 human demonstrations and 175 robot teleoperation demonstrations. The real-world evaluation environment featuring a UR5 robot arm in a kitchen setup.
The real-world evaluation environment featuring a UR5 robot arm in a kitchen setup.

Key Insights and Ideas

  • Prototypes as Anchors: By forcing the model to map diverse visual inputs to a discrete set of shared prototypes, the system naturally learns to ignore embodiment-specific details (like skin color or metal textures) and focus on the functional effect of the action.
  • Handling Speed Mismatches: One of the biggest hurdles in cross-embodiment learning is that humans are usually much faster. XSkill’s use of temporal contrastive loss and the Skill Alignment Transformer allows the robot to remain robust even when the human demonstration is 1.5x faster than the robot's capabilities.
  • Adaptive Re-planning: Because the SAT compares the robot's current visual state to the high-level skill plan, the robot can recognize if a skill failed (e.g., it missed the light switch) and retry the action instead of blindly moving to the next step in the sequence.

Key Results

XSkill significantly outperformed standard goal-conditioned policies (GCD) in both simulation and reality:

  • Simulation: On unseen tasks with cross-embodiment prompts, XSkill achieved a 70.2% success rate, while the baseline GCD policy failed completely (0.0%).
  • Real-World: XSkill maintained a high average success rate of 77.0% across various task compositions.
  • Generalization: The system successfully composed skills into new sequences that were never seen during the training of the robot's low-level policy.

Limitations and Future Work

While impressive, XSkill has a few areas for improvement:

  • Hyperparameter Sensitivity: The user must pre-specify the number of skill prototypes ($K$), which may require fine-tuning for different environments.
  • Visual Diversity: The current benchmarks use consistent laboratory camera setups. The authors suggest that future work should test the framework on "in-the-wild" data, such as uncurated YouTube videos.
  • Transition Dynamics: The robot still struggles with transitions between skills if those specific transitions weren't well-represented in the robot's teleoperation data. Expanding the diversity of the robot's initial training data remains a key challenge.

Summary updated

BibTeX
@inproceedings{xu2023xskill,
  author = {Mengda Xu and Zhenjia Xu and Cheng Chi and Manuela Veloso and Shuran Song},
  title = {{XSkill: Cross Embodiment Skill Discovery}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=8L6pHd9aS6w},
}
Figure