Offline Discovery of Interpretable Skills from Multi-Task Trajectories
Chongyu Zhu, Mithun Vanniasinghe, Jiayu Chen, Chi-Guhn Lee
TL;DR
This work tackles offline, multi-task hierarchical imitation learning by learning reusable skills from unannotated demonstrations. It introduces LOKI, a three-stage framework that combines Stage 1 macro segmentation via an alignment-enforced VQ-VAE (EVQ-VAE), Stage 2 micro segmentation with a sequential VAE and iterative clustering, and Stage 3 a hierarchical policy built on canonical skill sequences with a learned termination function $\beta$ and a conditioned low-level policy. Key technical contributions include a task-conditioned EVQ-VAE with a codebook divergence term and a KL-regularized micro-segmentation objective using a prior $p(z|s_i,c)$, plus a canonical skill sequencing strategy that aligns across tasks. Experiments on the D4RL Kitchen benchmark demonstrate high success rates, interpretability and compositionality of the discovered skills, and superior robustness over baselines, indicating strong practical potential for scalable offline skill discovery in robotics.
Abstract
Hierarchical Imitation Learning is a powerful paradigm for acquiring complex robot behaviors from demonstrations. A central challenge, however, lies in discovering reusable skills from long-horizon, multi-task offline data, especially when the data lacks explicit rewards or subtask annotations. In this work, we introduce LOKI, a three-stage end-to-end learning framework designed for offline skill discovery and hierarchical imitation. The framework commences with a two-stage, weakly supervised skill discovery process: Stage one performs coarse, task-aware macro-segmentation by employing an alignment-enforced Vector Quantized VAE guided by weak task labels. Stage two then refines these segments at a micro-level using a self-supervised sequential model, followed by an iterative clustering process to consolidate skill boundaries. The third stage then leverages these precise boundaries to construct a hierarchical policy within an option-based framework-complete with a learned termination condition beta for explicit skill switching. LOKI achieves high success rates on the challenging D4RL Kitchen benchmark and outperforms standard HIL baselines. Furthermore, we demonstrate that the discovered skills are semantically meaningful, aligning with human intuition, and exhibit compositionality by successfully sequencing them to solve a novel, unseen task.
