This paper, presented at ICRA 2023, introduces a framework for teaching robots a diverse "library" of skills from a single, unlabeled, and messy dataset of motions.
TL;DR
The authors present CASSI (Cooperative Adversarial Self-supervised Skill Imitation), a method that allows a robot to extract and learn multiple distinct behaviors (like walking, leaping, or waving) from a single unlabeled dataset of mixed motions. By combining adversarial imitation with unsupervised skill discovery, the system creates a versatile policy capable of executing specific skills on command without ever being told which motion was which during training.
What Problem Does This Paper Address?
Imitation Learning (IL) is a powerful way to teach robots complex movements by mimicking experts. However, standard IL has a "data bottleneck": it usually requires either a dataset containing only one specific skill or a large dataset where every motion is meticulously labeled (e.g., "this clip is a trot," "this clip is a jump").
In the real world, motion data—like animal motion capture or uncurated expert logs—is often a "mixed bag" of unlabeled behaviors. If you train a standard imitation algorithm on this mixed data, the robot often suffers from skill collapse, where it learns a single, "averaged-out" behavior that doesn't perform any specific skill well. The challenge is: how can a robot learn to distinguish, extract, and then selectively perform these individual skills using only raw, unlabeled state-transition data?
Methods
The authors propose CASSI, which treats skill learning as a cooperative game between three main components:
- The Policy ($\pi_\theta$): The "brain" of the robot, which takes a state and a latent skill variable ($z$) as input and decides on an action.
- The Imitation Discriminator ($d_\psi$): Based on the Adversarial Motion Prior (AMP) framework, this component tries to distinguish between the robot's movements and the reference dataset. It rewards the policy for looking "natural" and similar to the expert data.
- The Skill Discriminator ($q_\phi$): This is the core of the "self-supervised" part. It looks at the robot's current motion and tries to guess which latent skill ($z$) the policy was told to execute.
The "Cooperative" Twist: Unlike standard GANs where everything is adversarial, the Policy and the Skill Discriminator work together. The policy is rewarded when the Skill Discriminator can easily identify which skill it is performing. This pressure forces the policy to make the behaviors associated with different $z$ values as distinct as possible.
To prevent the robot from getting stuck in "pessimistic exploration" (where it just repeats one easy-to-classify motion), they incorporate DISDAIN, an ensemble-based reward that encourages the robot to explore new, uncertain state transitions.
Datasets
The researchers evaluated their method using the Solo 8 quadruped, an open-source research robot.
- Reference Dataset: A mixed collection of six distinct motions: crawl, walk, trot, leap, wave, and stilt.
- Data Structure: These were generated by expert policies in simulation. To simulate "unlabeled" data, the trajectories were sliced into short, 8-frame clips and shuffled, removing all temporal consistency and labels.
- Evaluation: They used an "Oracle Classifier" (a separate model trained on the ground-truth labels) to measure how well the learned policy's behaviors matched the original expert skills.
Key Insights and Ideas
- Short-Horizon Discrimination: One of the most impressive findings is that CASSI can distinguish skills using a horizon of only 8 frames. Traditional methods like Spectral Clustering fail miserably at this short timescale (70% error vs. CASSI’s 0.016% error), showing that CASSI learns much more robust feature representations.
- Emergent "Mixed" Skills: When the authors gave the model more latent "slots" ($N_z$) than there were actual skills in the data ($N_c$), the robot didn't just fail. Instead, it discovered "novel" skills that were interpolations of the existing ones—essentially finding the "in-between" motions that weren't explicitly in the dataset.
- Active Control: Because the policy is conditioned on a latent variable $z$, a user can switch the robot's behavior in real-time simply by changing the input $z$, as demonstrated in their obstacle avoidance tests.
Key Results
- Fidelity and Diversity: CASSI significantly outperformed standard AMP. While AMP collapsed into a single behavior, CASSI maintained high fidelity (matching the expert style) and high diversity (keeping the skills distinct).
- Real-World Transfer: The policy trained entirely in simulation (using Isaac Gym) was deployed directly onto a physical Solo 8 robot. The robot successfully performed all six skills and could switch between them smoothly without further fine-tuning.
- Task Integration: The authors showed that you can add a specific task reward (like "move at 1 m/s") on top of the skill discovery. The robot learned to satisfy the speed requirement while still maintaining the distinct "style" of the chosen latent skill.
Limitations and Future Work
- Fixed Latent Cardinality: The user must pre-define the number of latent skills ($N_z$). If $N_z$ is too small, skills get merged; if it's too large, you get many similar or interpolated skills. Automating the discovery of the "correct" number of skills remains an open challenge.
- Dataset Quality: The method assumes the unlabeled data contains "sensible" high-level skills. If the reference data is purely random noise, the skill discovery might not yield physically useful behaviors.
- Future Directions: The authors suggest moving toward continuous skill spaces (rather than discrete slots) and applying this to even more complex, high-dimensional "in-the-wild" datasets like human motion capture.
Summary updated