Disentangled Unsupervised Skill Discovery for Efficient Hierarchical Reinforcement Learning

Jiaheng Hu, Zizhao Wang, Peter Stone, Roberto Martín-Martín

TL;DR

Disentangled Unsupervised Skill Discovery (DUSDi) is a new framework that enables agents to learn a library of "clean" skills, where each skill component controls exactly one independent factor of the environment. By enforcing this one-to-one mapping through a novel mutual-information objective and value factorization, DUSDi allows agents to solve complex, multi-factor downstream tasks much more efficiently than traditional methods that learn "entangled" behaviors.

What Problem Does This Paper Address?

A major goal in Reinforcement Learning (RL) is to create agents that learn reusable skills through unsupervised interaction, which can then be "chained" together to solve new tasks quickly. However, current methods often produce entangled skills.

Imagine an agent learning to drive: an entangled skill might change the car's speed, steering angle, and headlights all at once. For a high-level controller trying to solve a specific task—like "turn on the lights while maintaining speed"—these messy, overlapping skills are a nightmare to coordinate. DUSDi addresses this by leveraging the fact that many environments are naturally factored (composed of separate entities like different objects or agents). The goal is to learn skills that are as independent as the environment factors they control.

Figure 1: Consider an agent practicing driving skills by learning to control a car’s speed (length of orange arrow), steering (curvature of orange arrow), and headlights (blue symbol), (Left) previous unsupervised skill discovery methods learn entangled skills, where a change in the skill variable can cause all three environment factors to change (Right) DUSDi learns disentangled skills with concurrent components, where each skill component only affects one factor of the state space, enabling efficient downstream task learning with hierarchical RL.

Methods

DUSDi operates in two stages: unsupervised skill discovery followed by hierarchical task learning.

  1. Factored Skill Space: The authors decompose the latent skill variable $z$ into $N$ components, matching the $N$ factors of the state space.
  2. Disentangled Objective: DUSDi uses a novel intrinsic reward based on Mutual Information (MI). It rewards a skill component $z^i$ for having a high influence on its assigned state factor $s^i$, while simultaneously penalizing it for influencing any other factors ($s^{\neg i}$). This "entanglement penalty" is the secret sauce that prevents one skill from causing "collateral damage" across the state space.
  3. Q-Decomposition: To handle the high variance of training many skills at once, DUSDi decomposes the global Q-function into $N$ separate disentangled Q-functions. This allows for much more stable credit assignment, as each critic only needs to worry about the relationship between one skill component and one state factor.
  4. Hierarchical RL (HRL): Once skills are learned, they are frozen. A high-level policy then learns to select these disentangled skills to maximize rewards on specific downstream tasks.
Figure 2: Two learning stages of DUSDi: (a) in disentangled skill learning stage, DUSDi creates a one-to-one mapping between state factors and skill components — each disentangled skill component zi only influences state factor si. DUSDi designs a novel mutual-information-based intrinsic reward to enforce disentanglement and utilizes Q-value decomposition to learn the skill policy πθ efficiently. (b) in the task learning stage, the skill policy is used as a frozen low-level policy and a high-level policy πhigh is learned to select skill z for every L steps, by maximizing the task reward rtask.

Datasets

The authors evaluated DUSDi across four diverse domains designed to test concurrent control:

  • 2D Gunner: A navigation task involving moving, collecting ammo, and shooting.
  • Multi-Particle: A high-dimensional environment where a controller must manage 10 different agents interacting with 10 different stations simultaneously.
  • iGibson: A realistic 3D robotics simulator where a mobile manipulator performs household tasks like inspecting appliances.
  • DMC Walker: A standard benchmark used to show that DUSDi remains competitive even in simpler, less factored environments.

Key Insights and Ideas

  • Inductive Bias Matters: By assuming the world is factored, DUSDi introduces a powerful inductive bias. Humans don't learn "driving" as a single atomic action; we learn to steer and accelerate independently. DUSDi brings this modularity to artificial agents.
  • The Power of the Penalty: Most skill discovery methods only focus on what a skill can do. DUSDi is unique in focusing on what a skill shouldn't do. The entanglement penalty is crucial for creating a clean, interpretable action space for the high-level controller.
  • Scalability through Factorization: The Q-decomposition (Figure 3) proves essential for complex environments. By breaking one massive learning problem into $N$ smaller ones, the agent converges faster and more reliably.
Figure 3: Q-decomposition significantly improves prediction accuracy (and thus skill quality) in complex domains like iGibson and Multi-Particle.

Key Results

  • Superior Disentanglement: Using the DCI (Disentanglement, Completeness, Informativeness) metric, DUSDi achieved scores (e.g., ~0.86 in 2D Gunner) that dwarfed baselines like DIAYN-MC, which hovered near zero.
  • Downstream Performance: In the challenging Multi-Particle and iGibson tasks, DUSDi significantly outperformed state-of-the-art baselines (DIAYN, METRA, CIC). While baselines often failed to learn at all in high-dimensional settings, DUSDi's structured skill space allowed for efficient exploration and task completion.
  • Image-to-Skill: The authors demonstrated that DUSDi can work directly from pixels by using an object-centric encoder to extract factors, showing the method isn't limited to hand-engineered state vectors.

Limitations and Future Work

  • Dependency on Factorization: DUSDi currently requires the state space to be factored beforehand. While the authors showed this can be done with object-centric representation learning, the quality of the skills is inherently tied to the quality of that initial factorization.
  • Exploration Strategy: The current implementation relies on a DIAYN-style exploration objective. The authors suggest that DUSDi's disentanglement framework could be integrated with other, more advanced exploration objectives (like those based on state entropy or reachability) to further improve performance.
  • Causal Dependencies: In environments with heavy physical coupling (where moving one thing must move another), the entanglement penalty might be too restrictive. Finding the right balance for $\lambda$ (the penalty weight) in these scenarios remains an open area for tuning.

Summary updated

BibTeX
@inproceedings{hu2024disentangled,
  author = {Jiaheng Hu and Zizhao Wang and Peter Stone and Roberto Martín-Martín},
  title = {{Disentangled Unsupervised Skill Discovery for Efficient Hierarchical Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ePOBcWfNFC},
}
Figure