SkiLD: Unsupervised Skill Discovery Guided by Factor Interactions

Zizhao Wang, Jiaheng Hu, Caleb Chuck, Stephen Chen, Roberto Martín-Martín, Amy Zhang, Scott Niekum, Peter Stone

Introduction

The ultimate goal of unsupervised reinforcement learning (RL) is to create agents that can explore an environment without external rewards and emerge with a robust library of reusable skills. Traditionally, this has been approached through "state coverage"—encouraging an agent to visit as many unique states as possible. However, in complex, "factor-rich" environments like a kitchen or a workshop, the number of possible states is astronomically high.

In these settings, simple exploration often fails because meaningful behaviors require mastering specific interactions between objects—such as picking up a knife to cut a peach. These interactions act as "bottlenecks"; an agent cannot explore the state space of a "cut peach" until it has first mastered the "robot-knife" interaction. SkiLD (Skill Discovery from Local Dependencies) is a novel framework designed to overcome this by explicitly guiding agents to discover and master these causal dependencies.

Methodology

SkiLD introduces a hierarchical approach to skill discovery that shifts the focus from where the agent is to what the agent is interacting with. The method relies on three core components:

1. Factored State Space and Local Dependencies

The environment is treated as a collection of distinct factors (e.g., robot position, tool pose, appliance status). To identify interactions, SkiLD uses pointwise Conditional Mutual Information (pCMI). This metric detects when one factor influences another during a specific transition. For instance, if the robot moves and a knife’s position changes simultaneously, a "local dependency" is recorded between the robot and the knife.

2. Dependency Graphs ($G$)

These detected interactions are compiled into a binary matrix, or dependency graph, representing the current causal structure of the environment. These graphs serve as the target for the agent's exploration, moving beyond simple coordinate-based goals to interaction-based goals.

3. Hierarchical Skill Discovery

SkiLD employs a two-tier policy structure:

  • High-Level Policy: This policy selects a "target" interaction graph to achieve (e.g., "make the rag depend on the sink"). It is intrinsically rewarded for choosing novel graphs that the agent has not yet mastered.
  • Low-Level Skill Policy: This policy learns the primitive actions required to induce the target interaction. It incorporates a diversity indicator to ensure the agent learns multiple ways to achieve the same interaction (e.g., soaking a rag from different angles).

Experimental Evaluation

The researchers evaluated SkiLD across three challenging, object-rich domains designed to test complex logic and long-horizon tasks:

  • Mini-behavior: A gridworld environment requiring multi-step logic for tasks like "Installing a Printer" or "Thawing Fish" (which involves opening a fridge and using a sink).
  • Interactive Gibson (iGibson): A high-fidelity physics simulator where a Fetch robot operates in a realistic kitchen, performing tasks like washing and cutting fruit.
  • 2D Minecraft: A scalable environment with 15 state factors used to test resource gathering and crafting.

Key Results

SkiLD demonstrated a superior ability to discover "bottleneck" interactions that traditional methods like DIAYN and CSD missed entirely. In the "Cleaning Car" domain—a long sequence involving soap, buckets, and rags—SkiLD was the only method to consistently induce the necessary "sink + rag" and "car + rag" dependencies.

When these discovered skills were applied to downstream tasks with actual rewards, SkiLD outperformed baselines on 9 out of 10 tasks. Most notably, on the most difficult tasks such as "Clean Rag" or "Cut Peach," all baseline methods achieved a 0% success rate, while SkiLD achieved non-zero success, proving it had successfully learned the prerequisite behaviors during its unsupervised phase.

Discussion and Future Work

SkiLD demonstrates that using the environment's structure (factorization) as an inductive bias is a powerful way to guide exploration. By rewarding the discovery of new interaction graphs, the agent naturally follows a curriculum: first learning to move itself, then to manipulate objects, and finally to facilitate object-object interactions.

Currently, SkiLD requires a pre-factored state space (e.g., object coordinates), which is common in simulators but less so in raw pixel-based robotics. Future research may involve integrating SkiLD with disentangled representation learning to automatically extract these factors from visual data. Additionally, as the number of possible interaction graphs can grow significantly, developing more sophisticated methods to prune "impossible" or "useless" targets remains a key area for improvement.

Summary updated

BibTeX
@inproceedings{wang2024skild,
  author = {Zizhao Wang and Jiaheng Hu and Caleb Chuck and Stephen Chen and Roberto Martín-Martín and Amy Zhang and Scott Niekum and Peter Stone},
  title = {{SkiLD: Unsupervised Skill Discovery Guided by Factor Interactions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=i816TeqgVh},
}
Figure