AVID: Learning Multi-Stage Tasks via Pixel-Level Translation of Human Videos

Laura M. Smith, Nikita Dhawan, Marvin Zhang, Pieter Abbeel, Sergey Levine

Abstract

Robotic reinforcement learning (RL) holds the promise of enabling robots to learn complex behaviors through experience. However, realizing this promise for long-horizon tasks in the real world requires mechanisms to reduce human burden in terms of defining the task and scaffolding the learning process. In this paper, we study how these challenges can be alleviated with an automated robotic learning framework, in which multi-stage tasks are defined simply by providing videos of a human demonstrator and then learned autonomously by the robot from raw image observations. A central challenge in imitating human videos is the difference in appearance between the human and robot, which typically requires manual correspondence. We instead take an automated approach and perform pixel-level image translation via CycleGAN to convert the human demonstration into a video of a robot, which can then be used to construct a reward function for a model-based RL algorithm. The robot then learns the task one stage at a time, automatically learning how to reset each stage to retry it multiple times without human-provided resets. This makes the learning process largely automatic, from intuitive task specification via a video to automated training with minimal human intervention. We demonstrate that our approach is capable of learning complex tasks, such as operating a coffee machine, directly from raw image observations, requiring only 20 minutes to provide human demonstrations and about 180 minutes of robot interaction.

Introduction

Teaching robots to perform "long-horizon" tasks—such as making coffee or tidying a room—is notoriously difficult. Standard Reinforcement Learning (RL) struggles with these tasks because the reward function is difficult to define mathematically, and the probability of a robot completing a multi-step process through random exploration is negligible.

Imitation Learning (IL) offers a solution by providing demonstrations, but traditional methods often require kinesthetic teaching or expensive teleoperation rigs. While humans can learn by observation, robots face the "embodiment gap": the physical difference between a human hand and a robotic gripper makes direct mapping difficult. AVID (Automated Visual Instruction-following with Demonstrations) addresses these challenges by enabling robots to learn directly from human videos with minimal intervention.

Methodology

The AVID framework decomposes the learning process into three distinct phases designed to bridge the embodiment gap and manage long-horizon complexity.

Pixel-Level Translation

To address the embodiment gap, AVID utilizes CycleGAN, an unsupervised image-to-image translation tool. This component takes frames of a human performing a task and translates them into the robot's visual domain. By "re-skinning" the human as the robot at the pixel level, the system creates a visual instruction that the robot can directly compare against its own observations without manual labeling of joints or coordinates.

Figure 1: Pixel-level translation of human demonstrations into robot-centric videos using CycleGAN.

Representation Learning

The robot learns a compact "mental map" of its environment using a Structured Latent Variable Model. Rather than processing high-dimensional raw pixels during active learning, the system compresses images into a lower-dimensional latent space. This space captures the essential physics and dynamics required for the task, making the subsequent reinforcement learning computationally efficient.

Stage-wise Reinforcement Learning and Automated Resets

Tasks are broken into sequential stages (e.g., grasping a cup, then placing it). For each stage, the translated human video provides a subgoal or "instruction image." The robot employs Model Predictive Control (MPC) to plan movements in the latent space to reach these subgoals.

Crucially, AVID incorporates an automated reset mechanism. If the robot fails a stage, it attempts to "undo" the action to try again. This significantly reduces human burden, as the operator only needs to intervene (via a simple keypress) when the robot is completely stuck or to confirm a successful stage transition.

Figure 2: The stage-wise reinforcement learning process with automated resets and minimal human queries.

Experimental Evaluation

The researchers evaluated AVID on two complex real-world tasks using a Sawyer robot arm:

  • Coffee Making: A 3-stage task involving picking up a cup, placing it in a machine, and pressing a button.
  • Cup Retrieval: A 5-stage task involving opening a drawer, lifting the arm, picking up a cup, and placing it on top of the drawer.

The training data consisted of 20-30 short human videos (approximately 20 minutes of filming) and 180 minutes of robot "play" data, where the robot moved randomly to learn its own dynamics and appearance.

Results and Discussion

AVID outperformed several state-of-the-art baselines, including Time-Contrastive Networks (TCN) and Behavioral Cloning from Observation (BCO). In the coffee-making task, AVID achieved an 80% success rate, while most baseline methods failed by the third stage. In the more complex cup retrieval task, AVID maintained a 70% success rate, even outperforming behavioral cloning methods that used actual robot teleoperation data.

Key insights from the study include:

  • Pixels over Poses: Working directly with pixels via CycleGAN is more robust than tracking human joints, which often fails in cluttered real-world scenes.
  • Subgoal Robustness: Treating the end of each human video segment as a checkpoint prevents errors from compounding over long horizons.
  • Efficiency: By automating resets, the researchers reduced human effort to just 20 minutes of demonstration and occasional monitoring during a 3-hour practice session.

Conclusion and Future Work

AVID represents a significant step toward autonomous robotic learning from intuitive human demonstrations. While successful, the framework currently requires manual segmentation of video stages. Future research will focus on automatically detecting stage boundaries and improving the visual fidelity of the CycleGAN translations to avoid artifacts that can occasionally confuse the reward function. Ultimately, the goal is a "universal" human-to-robot translator that allows robots to learn new tasks almost instantly from observation.

Summary updated

BibTeX
@inproceedings{smith2020avid,
  author = {Laura M. Smith and Nikita Dhawan and Marvin Zhang and Pieter Abbeel and Sergey Levine},
  title = {{AVID: Learning Multi-Stage Tasks via Pixel-Level Translation of Human Videos}},
  booktitle = {Robotics: Science and Systems},
  year = {2020},
  doi = {10.15607/rss.2020.xvi.024},
}
Figure