EXTRACT: Efficient Policy Learning by Extracting Transferable Robot Skills from Offline Data

Jesse Zhang, Minho Heo, Zuxin Liu, Erdem Biyik, Joseph J Lim, Yao Liu, Rasool Fakoor

TL;DR

Robots struggle to learn new tasks efficiently because they typically learn low-level actions. This paper introduces EXTRACT, a method that uses vision-language models to automatically discover and extract reusable, high-level robot skills from offline data. These skills, parameterized by arguments, enable robots to learn new tasks much faster and with significantly less data.

What Problem Does This Paper Address?

Traditional reinforcement learning (RL) agents learn by trial and error using low-level motor commands. While this can lead to mastery in a specific environment, it makes transferring that knowledge to new, even slightly different, tasks incredibly difficult. Imagine learning to play a new sport from scratch every time – it's inefficient! Existing "skill-based" RL approaches try to solve this by equipping agents with pre-defined or heuristically learned skills. However, these methods often require costly human supervision to define skills or use simplistic skill representations that hinder adaptability and transfer. The core challenge is enabling robots to learn a versatile set of skills from readily available offline data without human intervention, allowing them to quickly adapt to new tasks.

Methods

EXTRACT tackles this by breaking down the process into three main stages:

  1. Offline Skill Extraction: This is the core innovation. EXTRACT leverages pre-trained Vision-Language Models (VLMs) – models that understand images and text – to process offline image-action data. Instead of using raw image embeddings, it uses differences in VLM embeddings across a trajectory. These differences capture high-level behavioral changes. These embeddings are then clustered (using K-means) to identify discrete, semantically meaningful skills without any human labels.
  2. Offline Skill Learning: Once skills are identified, EXTRACT trains a "skill decoder." This decoder takes a discrete skill ID and a continuous argument (e.g., how forcefully to grasp) and outputs a sequence of low-level actions. This creates a functional API-like interface for skills. Crucially, it also learns "skill priors" that predict which skills and arguments are likely to be useful in a given state.
  3. Online Skill-Based Reinforcement Learning: For a new task, the robot uses a policy that learns when to select a skill and what arguments to use, guided by the pre-trained skill priors. This policy operates on a simplified, high-level action space (skills and arguments) rather than raw motor commands, leading to much faster learning.

Datasets

The paper evaluates EXTRACT on several challenging robotic manipulation benchmarks:

  • Franka Kitchen: A simulated and real-world environment requiring the robot to perform a sequence of kitchen-related tasks.
  • LIBERO: A suite of simulated long-horizon, unseen tasks with language instructions, designed for evaluating knowledge transfer.
  • FurnitureBench: A real-world benchmark for assembling furniture, focusing on adaptation to variations in object and end-effector poses.

The training data for skill extraction is "offline data" – trajectories from tasks different from the target tasks.

Key Insights and Ideas

  • VLM Embeddings for Skill Discovery: Using the differences in VLM embeddings across a trajectory, rather than static embeddings, is key to capturing dynamic, high-level behaviors that define skills.
  • Unsupervised Skill Clustering: K-means clustering on these VLM embedding differences allows for the discovery of a discrete set of skills without any human annotation, making the process scalable.
  • Skill Parameterization as a Functional API: Treating skills as parameterized functions (skill ID + continuous arguments) provides a structured and adaptable interface for downstream learning.
  • Skill Priors for Guided Exploration: Learning priors that predict useful skills and arguments for a given state significantly guides the RL agent, improving sample efficiency.
  • Hierarchical Action Space: Operating on a skill-based action space dramatically simplifies the learning problem for new tasks compared to low-level control.

Key Results

  • Sample Efficiency: EXTRACT significantly outperforms prior skill-based RL methods (like SPiRL) and standard RL (SAC, BC) in terms of sample efficiency, learning new tasks up to 10x faster. For example, in the Kitchen environment, EXTRACT reached performance levels in 300k timesteps that SPiRL took 3M timesteps to achieve.
  • Performance: EXTRACT achieves comparable or superior performance to baselines across various challenging, long-horizon, sparse-reward manipulation tasks in both simulation and on real robots.
  • Transferability: The method demonstrates strong transfer capabilities across different tasks and domains, including unseen tasks in LIBERO and real-world adaptation in FurnitureBench.
  • Skill Quality: Visualizations show that the extracted skills are semantically aligned and distinguishable, indicating meaningful representations.
  • Robustness: EXTRACT is shown to be robust to the choice of VLM for feature extraction and the number of clusters used.

Limitations and Future Work

  • Initial Dataset Requirement: EXTRACT still requires an initial dataset from environments similar to the target tasks for skill extraction. Future work aims to extend this to more diverse or even sim-to-real scenarios.
  • Offline RL Integration: The authors plan to combine EXTRACT with offline RL techniques to learn skills from suboptimal data, further improving sample efficiency.
  • Online Sample Needs: While more efficient, EXTRACT still requires online interaction to learn new tasks. Future work will explore combining offline and online learning for even greater efficiency.
  • Image Modality: The current method relies on image observations. Exploring other input modalities (e.g., tactile, proprioceptive) for skill learning is a promising future direction.

Summary updated

BibTeX
@inproceedings{zhang2024extract,
  author = {Jesse Zhang and Minho Heo and Zuxin Liu and Erdem Biyik and Joseph J Lim and Yao Liu and Rasool Fakoor},
  title = {{EXTRACT: Efficient Policy Learning by Extracting Transferable Robot Skills from Offline Data}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=uEbJXWobif},
}
Figure