Skill Preferences: Learning to Extract and Execute Robotic Skills from Human Feedback

Xiaofei Wang, Kimin Lee, Kourosh Hakhamaneshi, Pieter Abbeel, Michael Laskin

Abstract

A promising approach to solving challenging long-horizon tasks has been to extract behavior priors (skills) by fitting generative models to large offline datasets of demonstrations. However, such generative models often fail when the offline data is uncurated and contains undesirable behaviors. We propose SkiP (Skill Preferences), a framework that leverages human preferences to both extract high-quality skills from noisy data and learn to execute them for complex tasks.

Introduction

Reinforcement Learning (RL) faces significant challenges in real-world robotics, primarily due to the difficulty of reward engineering and the computational complexity of long-horizon exploration. While learning skills from offline data can mitigate these issues, traditional methods assume high-quality, expert-only datasets. In practice, offline data is often "noisy," containing failures or irrelevant movements. Training on such data leads to poor behavioral priors. Furthermore, preference-based RL, which avoids manual reward design, struggles with long horizons when operating on atomic actions.

Methodology: The SkiP Framework

SkiP addresses these challenges through a two-phase process that integrates human feedback into both skill acquisition and task execution.

The SkiP framework consists of (a) Skill Extraction from noisy offline data and (b) Skill Execution using high-level RL guided by human preferences.

Phase 1: Preference-Aware Skill Extraction

To handle noisy offline data, SkiP learns a preference-weighted generative model. A small portion of the offline data (approximately 10%) is labeled by a human as preferred or not. A preference classifier $P_\psi$ is trained on these labels and used to weight the objective of a Variational Autoencoder (VAE). This ensures the latent skill space captures desirable behaviors while effectively filtering out the noise in the dataset.

Phase 2: Hierarchical Skill Execution

Once a library of "clean" skills is established, a high-level policy $\pi_{\theta_1}$ learns to sequence these skills. Instead of providing feedback on every millisecond-level motor command, humans provide preferences over sequences of skills. This temporal abstraction significantly reduces the number of labels required to guide the agent toward solving complex, multi-step goals, as each skill covers a longer time horizon.

Experimental Evaluation

The framework was evaluated in the D4RL Kitchen environment using a dataset intentionally corrupted with 50% non-expert, random trajectories to simulate real-world "messy" data.

Example of a multi-step task in the simulated kitchen environment, requiring the robot to sequence multiple sub-behaviors like opening cabinets and moving objects.

Key Results

  • Performance: SkiP was the only method capable of solving the majority of the kitchen tasks when starting from noisy data. It matched the performance of an "Oracle" (trained on perfect data with ground-truth rewards) in 5 out of 6 tasks.
  • Label Efficiency: The system is remarkably efficient, requiring only ~120 labels for the extraction phase and between 300–1,000 labels for the execution phase to solve complex tasks.
  • Robustness: Ablation studies showed that without human feedback during the extraction phase, the robot was completely unable to solve tasks, as the noise in the behavioral prior overwhelmed the learning process.

Conclusion

SkiP effectively bridges the gap between noisy offline data and complex task execution. By utilizing human preferences at both the skill-learning and task-learning stages, it enables robots to learn robust, high-level behaviors from imperfect data with minimal human supervision. Future work will focus on reducing offline data dependency and testing the framework on physical robotic hardware.

Summary updated

BibTeX
@inproceedings{wang2021skill,
  author = {Xiaofei Wang and Kimin Lee and Kourosh Hakhamaneshi and Pieter Abbeel and Michael Laskin},
  title = {{Skill Preferences: Learning to Extract and Execute Robotic Skills from Human Feedback}},
  booktitle = {Conference on Robot Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=BAzWvH0rzGq},
}
Figure