Multi-Modal Imitation Learning from Unstructured Demonstrations using Generative Adversarial Nets

Karol Hausman, Yevgen Chebotar, Stefan Schaal, Gaurav S. Sukhatme, Joseph J. Lim

Introduction

Imitation learning has traditionally been applied to teach robots a single task from a curated set of demonstrations. However, this requirement for structured and isolated demonstrations limits the scalability of imitation learning in real-world scenarios, where robots must execute a multitude of tasks. This paper introduces a framework for Multi-Modal Imitation Learning, enabling robots to learn several different skills simultaneously from a single, unstructured pile of unlabeled demonstrations. By combining Generative Adversarial Imitation Learning (GAIL) with latent "intention" variables, the proposed method allows a robot to autonomously segment a complex dataset into distinct behaviors and master them all using a single policy.

The Challenge of Unstructured Data

Traditional imitation learning is often treated as a "clean room" technology. To teach a robot to reach for an object, one typically provides isolated demonstrations of just that reaching task.

However, real-world data is inherently unstructured. A human recorded in a kitchen isn't just "reaching"; they are reaching, grasping, cutting, and pouring in a continuous, unlabeled stream. To scale robot learning, systems must be able to process diverse datasets and autonomously determine:

  1. Segmentation: Where one skill ends and another begins.
  2. Imitation: How to successfully perform each individual skill.

When faced with unstructured data, existing methods often struggle with "mode collapse." In this scenario, the robot observes two different ways to achieve a goal and either learns a non-functional average of the two or ignores one behavior entirely.

Methodology: Intention-Conditioned GAIL

The authors build upon Generative Adversarial Imitation Learning (GAIL), where a "Generator" (the robot's policy) attempts to perform actions that a "Discriminator" cannot distinguish from expert demonstrations.

The key innovation in this paper is the introduction of a latent intention variable ($i$).

  • The Intention Variable: The policy is no longer solely a function of the state; it is conditioned on both the state and a latent code (which can be a categorical number or a continuous value).
  • Information Maximization: Drawing inspiration from InfoGAN, the researchers add a specific cost to the training objective. This rewards the system for making the latent intention easily "decodable" from the robot's resulting actions.
  • The Result: This information-theoretic constraint forces the policy to use different values of the latent code to represent distinct behaviors found in the data. For instance, a code of "0" might trigger running forward, while a "1" triggers jumping.

Crucially, this architecture allows the system to learn skill segmentation and imitation jointly, entirely bypassing the need for manual labels on the training data.

Experimental Environments

The researchers evaluated their method across several challenging simulated robotics environments using the MuJoCo physics engine:

  • Reacher: A 2-DoF arm tasked with reaching for 2 or 4 different targets.
  • Walker-2D: A bipedal robot learning to run forward, run backward, and jump.
  • Humanoid: A high-dimensional (17-DoF) robot learning to run forward, backward, and balance.
  • Gripper-pusher: A 4-DoF arm that must grasp a block and push it to a goal, specifically used to test hierarchical skill discovery.
Humanoid robot learning a running skill

In these experiments, the demonstrations were "shuffled" at the state-action level. The algorithm was deprived of temporal information (i.e., no sequential "video" context) to help it deduce which actions belonged together, making the segmentation task highly rigorous.

Key Results and Insights

The proposed framework yielded several significant insights into multi-task learning and skill discovery:

  • Preventing Mode Collapse: Standard GAIL almost always collapses to a single behavior when presented with multi-modal data. By rewarding the policy for making its "intentions" distinct, the authors effectively "un-collapsed" the GAN, allowing it to capture the full diversity of the dataset.
  • Multi-Task Success: On the Walker-2D and Humanoid tasks, the multi-modal policy successfully learned all three expert behaviors. By comparison, standard GAIL ignored two of the three skills and only learned one.
Humanoid robot executing a distinct jumping or balancing behavior
  • High-Dimensional Scaling: The method proved robust even on the complex 17-dimensional action space of the Humanoid. While performance on "running backward" was slightly suboptimal compared to the expert, it remained a functional and distinct skill.
  • Autonomous Discovery & Interpolation: When using a continuous latent variable, the system could sometimes autonomously discover the number of skills in the data (e.g., naturally splitting into two modes for the 2-target Reacher). Furthermore, continuous variables allowed for interpolation between skills, though this grew difficult as target complexity increased.
  • Hierarchical Learning: The method successfully identified "options" or sub-tasks within a single complex task. In the Gripper-pusher experiment, the robot learned that "grasping" and "pushing" were two distinct phases toggled by changing the intention variable.

Limitations and Future Directions

While promising, the framework has notable limitations. When using categorical variables, the user must still pre-define the number of skills ($k$) present in the data. Guessing too low results in lost skills, while guessing too high can create redundant modes.

Additionally, the current experiments were conducted entirely in simulation. Future work will focus on transferring these methods to real-world robots, where sensor noise and physical constraints introduce unpredictable challenges. Finally, because the current work assumes the robot has access to its true "state," a major next step is integrating computer vision so robots can learn multi-modal skills directly from raw video demonstrations.

Summary updated

BibTeX
@inproceedings{hausman2017multi,
  author = {Karol Hausman and Yevgen Chebotar and Stefan Schaal and Gaurav S. Sukhatme and Joseph J. Lim},
  title = {{Multi-Modal Imitation Learning from Unstructured Demonstrations using Generative Adversarial Nets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=H1Z-nu-uZS},
}
Figure