One-shot Imitation in a Non-Stationary Environment via Multi-Modal Skill

Sangwoo Shin, Daehee Lee, Minjong Yoo, Woo Kyung Kim, Honguk Woo

TL;DR

OnIS (One-shot Imitation with semantic Skills) is a novel framework that allows robots to learn complex, multi-stage tasks from a single video or text demonstration, even when the environment's physical dynamics change over time. By disentangling high-level "semantic skills" from low-level "environment dynamics," the system achieves state-of-the-art performance in non-stationary settings where traditional imitation learning fails.

The Challenge of One-Shot Imitation in Non-Stationary Environments

Imitation learning—teaching a robot by showing it what to do—is a cornerstone of modern robotics. However, two major hurdles remain for real-world deployment:

  1. The "One-Shot" Challenge: Collecting expert demonstrations is expensive and time-consuming. Ideally, we want robots to learn a complex task after seeing it just once.
  2. Non-Stationarity: Real-world environments are rarely consistent. Friction, motor torque, or object mass can change over time. Most imitation models "entangle" the task (what to do) with the dynamics (how the world reacts). Consequently, a model trained to open a "heavy" door might fail completely when presented with a "light" door.

The authors tackle these challenges by asking a fundamental question: Can we separate the high-level intent of a task from the low-level physics of the environment?

Methods: The OnIS Framework

To address these hurdles, the authors introduce OnIS, which treats a complex task as a composition of discrete "semantic skills." The architecture is split into two main phases: training and deployment.

OnIS Framework Overview
  • Semantic Skill Encoder: Leveraging the power of large-scale vision-language models (like CLIP), the framework maps video demonstrations and language instructions into a shared embedding space. This allows the robot to understand a concept like "pushing a button" regardless of whether it watched a video or read a text command.
  • Dynamics-Aware Skill Transfer: To handle changing physics, the model uses a Dynamics Encoder. This module uses contrastive learning on short sub-trajectories to infer "hidden" physical parameters (like friction) without needing explicit labels.

During the deployment phase, the robot watches a single one-shot demonstration, translates it into a sequence of high-level skills, and then uses its inferred knowledge of the target environment's time-varying dynamics to execute the precise actions needed to succeed.

Datasets and Evaluation

The researchers evaluated OnIS using a custom-built benchmark designed to test long-horizon planning and physical adaptation.

Multi-stage Meta-world Environment
  • Multi-stage Meta-world: An extension of the popular Meta-world environment. It involves complex, multi-stage tasks such as "slide puck $\rightarrow$ push button $\rightarrow$ close drawer $\rightarrow$ open door."
  • Scale: The dataset includes 3,120 trajectories across 13 different physical configurations.
  • Efficiency: Notably, the model only required language annotations for 0.76% of the data to learn the semantic skill mapping effectively.

Key Insights

  • Disentanglement is the Secret Sauce: By separating "what to do" (semantic skills) from "how to do it" (dynamics-aware actions), the model can reuse high-level logic across vastly different physical settings.
  • Multi-Modal Flexibility: Because the skill space is aligned with CLIP, the model is inherently multi-modal. It can take a video demo and a language instruction interchangeably, showing high consistency between the two.
  • Temporal Contrast for Physics: To learn environment dynamics without labels, the authors used a "temporal contrast" strategy. By comparing different segments of the same trajectory, the model learns to ignore transient state changes and focus on persistent physical properties (the "hidden dynamics").

Key Results

OnIS significantly outperformed state-of-the-art baselines like BC-Z and Decision Transformer, especially as tasks became more complex:

  • Success Rates: In 4-stage tasks with high non-stationarity, OnIS outperformed the strongest baseline (SPiRL) by an average margin of 38% to 54%.
  • Robustness to Noise: While baselines collapsed when faced with "noisy" videos (e.g., color jitter or cutouts), OnIS remained robust because it focuses on the underlying semantic intent rather than pixel-perfect imitation.
  • Zero-Shot Adaptation: The model successfully adapted to physical parameters it had never seen during training, demonstrating true "zero-shot" adaptation to new environment dynamics.

Limitations and Future Work

While OnIS is a major step forward, the authors note a few areas for growth:

  • Expert Data Dependency: The framework still relies on a diverse offline expert dataset to build its initial library of semantic skills.
  • Scaling Skill Diversity: Future work will look at how to expand the skill library when expert data is scarce or when tasks involve even more complex object interactions.
  • Real-to-Sim Gap: Although the authors tested the vision encoder on real-world video clips (showing it could correctly identify skills), the actual control was performed in simulation. Moving the full control loop to physical hardware is the next logical frontier.

Summary updated

BibTeX
@inproceedings{shin2023one,
  author = {Sangwoo Shin and Daehee Lee and Minjong Yoo and Woo Kyung Kim and Honguk Woo},
  title = {{One-shot Imitation in a Non-Stationary Environment via Multi-Modal Skill}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=KMDuqydChK},
}
Figure