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.
翻译:分层模仿学习是从演示中获取复杂机器人行为的有力范式。然而,其核心挑战在于如何从长时域、多任务的离线数据中发现可复用的技能,尤其是在数据缺乏显式奖励或子任务标注的情况下。本文提出了LOKI,一个为离线技能发现与分层模仿设计的三阶段端到端学习框架。该框架始于一个两阶段的弱监督技能发现过程:第一阶段通过采用由弱任务标签引导的、对齐强化的向量量化变分自编码器,执行粗粒度的、任务感知的宏观分割;第二阶段则利用自监督序列模型在微观层面细化这些片段,随后通过迭代聚类过程来巩固技能边界。第三阶段则利用这些精确的边界,在一个基于选项的框架内构建分层策略——该策略包含一个用于显式技能切换的学习终止条件β。LOKI在具有挑战性的D4RL Kitchen基准测试中取得了高成功率,并优于标准的分层模仿学习基线。此外,我们证明了所发现的技能具有语义意义,符合人类直觉,并且通过成功地对它们进行序列化以解决一个新颖的、未见过的任务,展现了组合性。