Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Few-Shot Imitation with Skill Transition Models

Kourosh Hakhamaneshi, Ruihan Zhao|arXiv (Cornell University)|Jul 19, 2021
Reinforcement Learning in RoboticsComputer Science6 citations
TL;DR

FIST introduces a hierarchical few-shot imitation learning framework that leverages skill transition models to generalize to unseen long-horizon tasks. By learning an inverse skill dynamics model conditioned on both current and future states and using a contrastive distance function for semi-parametric state selection, FIST prevents policy drift and achieves state-of-the-art performance in unseen navigation and robotic manipulation tasks with minimal demonstrations.

ABSTRACT

A desirable property of autonomous agents is the ability to both solve long-horizon problems and generalize to unseen tasks. Recent advances in data-driven skill learning have shown that extracting behavioral priors from offline data can enable agents to solve challenging long-horizon tasks with reinforcement learning. However, generalization to tasks unseen during behavioral prior training remains an outstanding challenge. To this end, we present Few-shot Imitation with Skill Transition Models (FIST), an algorithm that extracts skills from offline data and utilizes them to generalize to unseen tasks given a few downstream demonstrations. FIST learns an inverse skill dynamics model, a distance function, and utilizes a semi-parametric approach for imitation. We show that FIST is capable of generalizing to new tasks and substantially outperforms prior baselines in navigation experiments requiring traversing unseen parts of a large maze and 7-DoF robotic arm experiments requiring manipulating previously unseen objects in a kitchen.

Motivation & Objective

  • To enable autonomous agents to generalize to unseen long-horizon tasks requiring complex sequences of subtasks.
  • To address the challenge of policy drift in few-shot imitation learning when only a small number of demonstrations are available.
  • To combine data-driven behavioral priors with few-shot imitation by learning uni-modal, future-conditioned skill policies.
  • To improve generalization by conditioning skill selection on both current and future states via an inverse skill dynamics model.
  • To enable effective adaptation to out-of-distribution (OOD) tasks through pre-training on diverse offline data and fine-tuning on few downstream demonstrations.

Proposed method

  • FIST learns an inverse skill dynamics model that predicts the skill required to transition from a current state to a desired future state, enabling uni-modal and goal-conditioned skill selection.
  • It introduces a contrastive distance function to identify the most relevant demonstration state for conditioning the inverse skill model during inference.
  • The method uses a semi-parametric approach to select the best-fitting skill from a set of demonstrations based on the closest state to the current observation.
  • The skill prior is pre-trained on a large offline dataset of diverse demonstrations, providing a strong behavioral prior for downstream adaptation.
  • Fine-tuning on a few downstream demonstrations enables adaptation to out-of-distribution tasks not seen during pre-training.
  • The framework combines the structured exploration of behavioral priors with the sample efficiency of few-shot imitation to achieve robust generalization.

Experimental results

Research questions

  • RQ1Can we learn a skill representation that enables few-shot imitation on long-horizon tasks unseen during pre-training?
  • RQ2How can we prevent policy drift in few-shot imitation when only a handful of demonstrations are available?
  • RQ3Can conditioning the skill policy on both current and future states improve generalization and reduce mode collapse in multi-modal skill spaces?
  • RQ4What is the impact of pre-training on a diverse offline dataset versus direct fine-tuning on downstream data for OOD task generalization?
  • RQ5How do different distance metrics (e.g., contrastive vs. Euclidean) affect the performance of the semi-parametric state selection in FIST?

Key findings

  • FIST achieves state-of-the-art performance on unseen long-horizon navigation tasks, with a mean success rate of 4.0 ± 0.0 in the most complex scenario, significantly outperforming baselines.
  • In 7-DoF robotic manipulation tasks, FIST achieves a success rate of 3.5 ± 0.3 on unseen tasks involving objects like the kettle and slide cabinet, outperforming SPiRL and other baselines.
  • Ablation studies show that fine-tuning on downstream demonstrations is critical: FIST-no-FT achieves only 2.0 ± 0.0 mean success rate, indicating failure to generalize without fine-tuning.
  • Pre-training on a diverse offline dataset is essential for generalization; FIST-no-pretrain achieves only 0.5 ± 0.16 mean success rate, highlighting the importance of behavioral priors.
  • The contrastive distance function outperforms Euclidean distance, with FIST (Euc.) showing slightly worse performance in 3 out of 4 tasks, suggesting contrastive metrics are more robust in complex state spaces.
  • FIST successfully generalizes to OOD tasks such as manipulating the kettle or opening the bottom cabinet, which were excluded from the skill pre-training dataset, demonstrating strong zero-shot transfer capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.