Learning Multi-Stage Tasks with One Demonstration via Self-Replay

Norman Di Palo, Edward Johns

Abstract

In this work, we introduce a novel method to learn everyday-like multi-stage tasks from a single human demonstration, without requiring any prior object knowledge. Inspired by recent Coarse-to-Fine Imitation Learning, we model imitation learning as a learned object reaching phase followed by an open-loop replay of the operator's actions. We build upon this for multi-stage tasks where, following the human demonstration, the robot can autonomously collect image data for the entire multi-stage task, by reaching the next object in the sequence and then replaying the demonstration, repeating in a loop for all stages of the task. We evaluate with real-world experiments on a set of everyday multi-stage tasks, which we show that our method can solve from a single demonstration.

Introduction

Teaching robots new skills usually requires a significant trade-off: either providing hundreds of demonstrations for Behavioral Cloning or spending weeks engineering reward functions for Reinforcement Learning. Multi-stage tasks—where one action depends on the success of the previous one—exacerbate this problem because errors compound at every step.

This research addresses the "data hunger" of imitation learning. The goal is to enable a non-expert human to guide a robot through a task once, after which the robot autonomously learns to perform that task from various starting positions and orientations without further human intervention.

Methodology

Coarse-to-Fine Decomposition

The core philosophy is a Coarse-to-Fine decomposition. Most manipulation tasks consist of two alternating phases:

  1. Coarse (Reaching): Moving the gripper to a specific "bottleneck pose" relative to an object.
  2. Fine (Interaction): The precise movements required to manipulate the object (e.g., closing the gripper, twisting a cap).

The Self-Replay Mechanism

After a single human demonstration, the robot identifies the "bottleneck pose"—the exact state where the human began the interaction. The robot then enters an autonomous Self-Replay phase to master the reaching component.

Overview of the Self-Replay mechanism: The robot uses a single human demonstration to identify bottleneck poses and then autonomously samples workspace poses to learn the reaching phase.

During this phase, the robot moves its arm to random positions in the workspace and records how to return to the bottleneck pose. Using a wrist-mounted camera, the robot learns a mapping from visual observations to the necessary movements. To improve efficiency, an active learning strategy is employed, where the robot specifically samples starting positions where its neural networks exhibit the highest uncertainty.

Neural Architecture

The system relies on three specialized networks to manage the transition between stages and phases:

  1. Stage-Recognition Network ($n(o_t)$): Identifies which part of the multi-stage task the robot is currently in.
  2. Bottleneck Reaching Network ($\pi_j(o_t)$): Predicts velocity commands to move the gripper toward the current stage's bottleneck.
  3. Bottleneck Classification Network ($r_j(o_t)$): Acts as a trigger, signaling that the robot has reached the bottleneck and should begin replaying the recorded human actions.
The inference process during Stage N: The robot uses specialized networks to recognize the stage, predict reaching actions, and trigger the interaction replay.

Experimental Results

The method was evaluated on 8 real-world manipulation tasks using a 6-DOF TinkerKit Braccio robot arm, including tasks like cup pick-and-place, stacking cubes, and cutting toy food.

  • Data Efficiency: On the "Cup Pick & Place" task, Self-Replay achieved an 88% success rate with just one demonstration. In contrast, traditional Behavioral Cloning (BC) achieved only 30% success even when provided with 20 demonstrations.
  • Scalability: In cube-stacking experiments, performance remained robust as complexity increased. While baseline methods like Relay Imitation Learning saw success rates drop to 15-35% for 4-stage tasks, Self-Replay maintained an 80% success rate.
  • Robustness: Because the stage-recognition network runs continuously, the robot can recover from failures. If an object is dropped, the system recognizes the regression to an earlier stage and automatically attempts to restart that stage.

Discussion and Key Insights

A primary insight of this work is that if a robot can reach a bottleneck pose with high precision, replaying human actions in an open-loop fashion is remarkably effective for the interaction phase. By utilizing a wrist-mounted camera and learning relative displacements, the system avoids the need for absolute object coordinates, making it highly adaptable to new environments.

Limitations

Currently, the autonomous practice phase requires a relatively uncluttered environment to avoid accidental collisions during random pose sampling. Additionally, the open-loop interaction assumption may not hold for tasks requiring high-frequency haptic feedback or reactive adjustments. Future work will look toward scaling these capabilities to larger, more complex workspaces.

Summary updated

BibTeX
@inproceedings{palo2021learning,
  author = {Norman Di Palo and Edward Johns},
  title = {{Learning Multi-Stage Tasks with One Demonstration via Self-Replay}},
  booktitle = {CoRL},
  year = {2021},
  url = {https://openreview.net/forum?id=p-TBwVowXRH},
}
Figure