TL;DR
HiSD (Hierarchical Skill Discovery) is a new framework that extracts multi-level skill hierarchies from raw, unlabelled video observations without needing action labels or reward signals. By combining optimal transport for temporal segmentation with grammar-based sequence compression, it discovers structured subroutines that significantly accelerate learning in complex environments like Minecraft.
What Problem Does This Paper Address?
In Reinforcement Learning (RL), solving "long-horizon" tasks—tasks that require hundreds or thousands of individual steps—is notoriously difficult. Humans solve these by thinking hierarchically: we don't think about individual muscle movements to make a sandwich; we think about "getting bread," "applying jam," and "closing the sandwich."
While Hierarchical RL (HRL) aims to mimic this, most existing methods have a "supervision tax." They usually require:
- Action Labels: Knowing exactly which buttons were pressed.
- Rewards: A signal telling the agent it did something "good."
- Handcrafted Annotations: Humans manually defining what a "skill" looks like.
This limits their scalability. We have millions of hours of unlabelled video (like YouTube) that agents could learn from, but we don't have the corresponding action logs or reward metadata. The authors of this paper tackle the challenge of discovering these hierarchies using observations only.
Methods
The authors propose a two-stage pipeline called HiSD:
1. Unsupervised Skill Identification (The "Words")
First, the model must partition a continuous stream of video into discrete "skills." It uses a technique called ASOT (Action Segmentation via Optimal Transport).
- How it works: It treats segmentation as an assignment problem, mapping video frames to a set of $K$ latent skill prototypes.
- Why it’s better: Unlike simple clustering, ASOT enforces temporal consistency, ensuring the agent doesn't "flicker" between skills every other frame.
2. Grammar-Based Structure Induction (The "Sentences")
Once the video is turned into a sequence of skill symbols (e.g., A -> A -> B -> C -> C), HiSD collapses repeats (A -> B -> C) and applies a modified version of the Sequitur algorithm.
- The Innovation: Sequitur is a classic grammar compression algorithm that replaces repeating pairs of symbols with new "rules." For example, if the sequence
Get Wood -> Craft Tableappears frequently, Sequitur creates a new high-level rule:Workstation_Prep = Get Wood + Craft Table. - The Result: This process recursively builds a tree. The leaves are atomic skills, and the internal nodes are increasingly complex, high-level behaviors.
Datasets
The researchers evaluated HiSD on two challenging domains:
- Craftax: A 2D, top-down survival game designed to be a fast benchmark for RL. It requires complex sequences like mining, crafting, and building.
- Minecraft: The full, unmodified 3D game. This is a massive step up in complexity. The authors used trajectories from OpenAI’s VPT (Video PreTraining) models, which provide "noisy," human-like demonstrations. They used MineCLIP to turn raw pixels into meaningful feature embeddings.
Key Insights and Ideas
- Observation-Only is Sufficient: You don't need to know the specific motor commands (actions) to understand the logical structure of a task. Visual transitions alone provide enough signal to identify where one sub-task ends and another begins.
- Compression = Hierarchy: One of the most elegant "aha moments" here is that hierarchical discovery is essentially a data compression problem. By finding the most efficient "grammar" to describe a long sequence of actions, you naturally uncover the most reusable and meaningful sub-routines.
- Decoupling Discovery from Execution: HiSD discovers the structure offline from unlabelled data. This structure can then be "plugged into" an RL agent later, providing a massive head start (inductive bias) for learning new tasks.
Key Results
- Superior Segmentation: HiSD consistently outperformed baselines like CompILE and OMPN in segmentation accuracy (mIoU). In Minecraft, HiSD achieved a 38% mIoU compared to just 14% for OMPN.
- Cleaner Hierarchies: Qualitative results show that HiSD produces much more consistent trees. While baselines often generated a unique, messy tree for every single episode, HiSD found the "ground truth" structure of the tasks much more reliably.
- RL Speedup: As a proof of concept, the authors trained a high-level RL agent using the discovered skills. In the "Craft Wooden Pickaxe" task, the HiSD-equipped agent reached near-optimal rewards in 30,000 steps, whereas a standard PPO agent (using primitive actions) failed to learn anything at all.
- Computational Efficiency: HiSD is significantly lighter than its predecessors. It can be trained on a consumer-grade RTX 3050 (6GB VRAM), while baselines required high-end workstations with 24GB VRAM.
Limitations and Future Work
- Feature Dependence: The method relies on pre-extracted features (like PCA or MineCLIP). If the features don't capture the relevant task information, the segmentation will fail. Integrating representation learning directly into the pipeline is a logical next step.
- The "K" Parameter: The user still needs to provide a rough estimate of the maximum number of skills ($K$). The authors suggest that future versions could use non-parametric methods to infer the number of skills automatically from the data.
- Deterministic Grammar: Currently, the grammar induction is deterministic. In highly stochastic environments, a probabilistic grammar might be more robust to "noise" in the skill sequences.
Summary updated