One-Shot Imitation from Observing Humans via Domain-Adaptive Meta-Learning

Tianhe Yu, Chelsea Finn, Annie Xie, Sudeep Dasari, Tianhao Zhang, Pieter Abbeel, Sergey Levine

This paper, presented at ICLR 2018, represents a significant step toward robots that can learn as intuitively as humans do: by simply watching. Researchers at UC Berkeley developed a "domain-adaptive" meta-learning framework that allows a robot to learn a new manipulation task from a single video of a human demonstrator. By pre-training on a variety of tasks where both human and robot demonstrations are available, the robot learns to bridge the "domain gap" between human and robotic morphology, enabling one-shot imitation in novel environments.

The Challenge of Imitation Learning

Traditionally, teaching a robot a new skill requires kinesthetic teaching (physically moving the robot's arm) or teleoperation. These methods are time-consuming and require the teacher to have direct access to the robot. Humans, conversely, can watch a peer perform a task and immediately grasp the "gist," even if the peer has a different body shape or is in a different setting.

The authors tackle two primary hurdles to achieve this in robotics:

  1. The Correspondence Problem (Domain Shift): A human hand looks and moves differently than a PR2 robot gripper. Mapping human motions to robot actions is mathematically complex to specify manually.
  2. Data Efficiency: Deep learning typically requires thousands of examples. Learning a robust policy from a single video (one-shot learning) is an "underdetermined" problem without a strong prior.

Domain-Adaptive Meta-Learning (DAML)

The core of the paper is the Domain-Adaptive Meta-Learning (DAML) framework, which builds upon the Model-Agnostic Meta-Learning (MAML) algorithm.

DAML Architecture

The Two-Phase Approach

  • Meta-Training: The robot is shown pairs of demonstrations for many different tasks (e.g., pushing various objects). Each pair consists of a video of a human performing the task and a video of a robot performing the same task. The goal here isn't to learn these specific tasks, but to learn how to learn from humans.
  • One-Shot Adaptation: When faced with a brand-new task (with novel objects), the robot watches one human video. It uses the "prior" learned during meta-training to update its internal policy parameters via a single gradient descent step.

The Learned Adaptation Objective

Standard imitation learning uses a fixed loss function. However, because a human video doesn't contain the robot's specific "actions" (joint torques/velocities), the authors meta-learn a temporal convolutional loss function ($L_\psi$). This learned loss function looks at multiple frames of the human video to identify the demonstrator's intent and the relevant objects, then provides the "gradient signals" necessary to update the robot's policy.

The policy uses a convolutional neural network (CNN) followed by a spatial soft-argmax layer. This specific layer is crucial because it forces the network to represent the scene as a set of 2D feature points (coordinates of objects), which is more efficient for manipulation tasks than raw pixel grids.

Experiments and Datasets

The researchers evaluated their method using a PR2 power-base robot across several task categories, including placing an object in a container, pushing an object, and pick-and-place.

Human Demonstrations and Robot Executions
  • Meta-Training Data: A large collection of human and robot demonstrations across various objects.
  • Validation: All evaluations were performed on held-out objects that the robot had never seen during the meta-training phase.
  • Domain Shift Test: They also tested a "large domain shift" scenario using a mounted cell-phone camera in a different room with ten different table textures to see if the robot could generalize across different environments.

Key Insights and Results

  • Meta-Learning as a Bridge: The most profound insight is that meta-learning can solve the "correspondence problem." Instead of manually coding how a human finger relates to a robot claw, the model learns this mapping by seeing many examples of both species performing similar tasks.
  • Temporal Context Matters: The authors found that a "linear" loss (looking at one frame at a time) performed poorly. Using 1D temporal convolutions allows the robot to understand motion and intent, which are necessary to distinguish between, for example, "picking up" vs. "touching" an object.
  • High Success Rates: The authors compared DAML against several baselines, including "Contextual" policies and "DA-LSTM". On the "Placing" task, DAML achieved a 93.8% success rate, vastly outperforming the DA-LSTM baseline (33.3%). Even in the complex pick-and-place task using RGB-D data, DAML achieved 80% success from one human video.
  • Robustness to Domain Shift: In the "large domain shift" experiment (different room, different camera), the robot still achieved a ~70% success rate on novel backgrounds, proving the system isn't just memorizing pixels but is actually "understanding" the demonstration.

Limitations and Future Work

While impressive, the tasks (pushing, placing) are relatively simple "primitives." Scaling this to long-horizon tasks (like folding laundry or cooking) remains a challenge. Furthermore, the method still requires a significant amount of paired human/robot data for the initial meta-training phase. Performance also dropped from ~82% to ~67% when moving to completely novel backgrounds, suggesting that the vision system still has some reliance on environmental context. The authors suggest that incorporating more diverse meta-training data could further improve the robot's ability to generalize to even more extreme domain shifts.

Summary updated

BibTeX
@inproceedings{yu2018one,
  author = {Tianhe Yu and Chelsea Finn and Annie Xie and Sudeep Dasari and Tianhao Zhang and Pieter Abbeel and Sergey Levine},
  title = {{One-Shot Imitation from Observing Humans via Domain-Adaptive Meta-Learning}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
  url = {https://openreview.net/forum?id=EWgWUorPSad},
}
Figure