To Follow or not to Follow: Selective Imitation Learning from Observations

Youngwoon Lee, Edward S. Hu, Zhengyu Yang, Joseph J. Lim

Abstract

Learning from demonstrations is a useful way to transfer a skill from one agent to another. While most imitation learning methods aim to mimic an expert skill by following the demonstration step-by-step, imitating every step in the demonstration often becomes infeasible when the learner and its environment are different from the demonstration. In this paper, we propose a method that can imitate a demonstration composed solely of observations, which may not be reproducible with the current agent. Our method, dubbed selective imitation learning from observations (SILO), selects reachable states in the demonstration and learns how to reach the selected states. Our experiments on both simulated and real robot environments show that our method reliably performs a new task by following a demonstration.

Introduction

Most imitation learning (IL) methods operate on a "monkey see, monkey do" principle: the agent tries to replicate every single step of an expert's demonstration. This works fine in a vacuum, but real-world deployment hits two major snags: action inaccessibility (video-only demonstrations) and domain mismatch (physical or environmental differences). If a robot tries to strictly follow a demonstration that passes through a now-present obstacle, it will get stuck.

SILO selectively skips infeasible frames in a demonstration to navigate around obstacles.

An intelligent agent should be selective—deciding which parts of a demonstration are useful to follow and which should be ignored to reach the ultimate goal. By treating the demonstration as a flexible guide rather than a rigid script, the agent becomes more robust to environmental changes.

Methodology: Selective Imitation Learning from Observations (SILO)

The proposed SILO framework is a hierarchical reinforcement learning system consisting of two layers:

  1. The Meta-Policy: This high-level planner examines a window of future frames in the demonstration and selects a specific frame as a sub-goal. It learns to skip frames that are unreachable or blocked by obstacles, receiving rewards for successfully reached sub-goals.
  2. The Low-Level Policy: A goal-conditioned policy trained using Soft Actor-Critic (SAC) and Hindsight Experience Replay (HER). It takes the current state and the chosen sub-goal to determine the motor actions required.
The SILO hierarchical framework: a meta-policy selects sub-goals from a demonstration window for a low-level policy to execute.

By constraining the meta-policy to a small "meta-window" of future frames, the agent is encouraged to follow the demonstration's guidance without skipping directly to the end, which would lose the benefits of the demonstration. This structure naturally handles temporal misalignment, allowing the robot to move at its own pace relative to the demonstrator.

Experimental Setup

SILO was evaluated across four environments designed to test selective capabilities:

  • Obstacle Push (Sim): A Sawyer robot must push a block while avoiding a new obstacle in the expert's path.
  • Pick-and-Place (Sim): The robot has a shorter reach than the demonstrator, requiring it to skip out-of-reach trajectory segments.
  • Furniture Assembly (Sim): Complex 3D alignment tasks based on the IKEA furniture assembly environment.
  • Obstacle Push (Real World): A physical Sawyer robot using human demonstrations to navigate around real-world obstacles.

Results and Discussion

SILO significantly outperformed sequential baselines that attempt to follow every frame. In the Pick-and-Place task, SILO achieved a 95% success rate, whereas sequential baselines failed completely (0%) due to reach limitations. In the Obstacle Push simulation, SILO reached a 70% success rate, successfully deviating from and then rejoining the expert's path.

On a physical Sawyer robot, SILO achieved a 25% success rate in scenarios where 100% of human demonstrations were physically blocked—a task where traditional IL is guaranteed to fail. While this highlights the difficulty of transferring policies to noisy physical environments, it proves the viability of selective imitation.

Conclusion

SILO demonstrates that selective imitation is a powerful tool for handling domain mismatch and environmental constraints. Future work will focus on improving real-world performance, moving toward end-to-end visual imitation without explicit object tracking, and developing viewpoint-agnostic embeddings to handle varying camera perspectives.

Summary updated

BibTeX
@inproceedings{lee2019follow,
  author = {Youngwoon Lee and Edward S. Hu and Zhengyu Yang and Joseph J. Lim},
  title = {{To Follow or not to Follow: Selective Imitation Learning from Observations}},
  booktitle = {Conference on Robot Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=mBT8Aat-cs8},
}
Figure