Controllability-Aware Unsupervised Skill Discovery

Seohong Park, Kimin Lee, Youngwoon Lee, Pieter Abbeel

TL;DR: Controllability-aware Skill Discovery (CSD) is a novel unsupervised reinforcement learning method that incentivizes agents to learn complex, hard-to-master skills—such as object manipulation—without human guidance. By dynamically rewarding agents for achieving "rare" state transitions, CSD creates an automated curriculum that naturally progresses from simple body movements to sophisticated environmental interactions.

The Problem: The "Lazy" Agent and the Euclidean Bias

In unsupervised skill discovery, the goal is for an agent to explore an environment and build a repertoire of useful behaviors before being assigned a specific task. Current state-of-the-art methods, such as Diversity is All You Need (DIAYN) or Lipschitz-constrained Skill Discovery (LSD), typically encourage the agent to maximize the diversity of states it reaches.

However, these approaches often result in "lazy" agents. In a complex environment—like a robotic arm tasked with interacting with a block on a table—moving the arm's joints is trivial, while successfully moving the block is difficult. Because existing algorithms usually rely on simple Euclidean distance to measure state changes, they treat all movements equally. Consequently, the agent maximizes its "diversity" reward by simply flailing its arm in different ways, completely ignoring the block. Previously, researchers had to bypass this issue by manually restricting the agent's focus to the object’s coordinates—a "cheat" that is impractical for open-ended, real-world environments.

The Solution: Controllability-Aware Skill Discovery (CSD)

To overcome this limitation, researchers introduce Controllability-aware Skill Discovery (CSD), built upon a broader framework called General Distance-Maximizing Skill Discovery (DSD).

The core innovation of CSD is its controllability-aware distance function. Instead of relying on standard physical (Euclidean) distance, CSD defines distance based on how "hard" a transition is to achieve under the agent's current policy. This is quantified using the negative log-likelihood of a transition: $-\log p(s'|s)$.

This approach introduces three key mechanics:

  1. Rare is Rewarding: If a transition from state $s$ to $s'$ is rare (low probability), the distance metric assigns it a high value.
  2. Constrained Maximization: The agent attempts to maximize the distance it travels in a direction dictated by a specific "skill code," constrained by this newly learned distance function.
  3. Dynamic Curriculum: As the agent practices and learns to reach a specific state (e.g., touching a block), that transition becomes "easy" (high probability). Consequently, its reward value drops. This decay naturally forces the agent to seek out progressively harder, more complex transitions to maintain high rewards.

Under the hood, the system trains the policy using Soft Actor-Critic (SAC) and employs dual gradient descent to manage the complex constraints of the learned distance metric.

Experimental Validation

The researchers evaluated CSD across six challenging robotic simulation environments without using "oracle" priors (manual hints about which state spaces matter):

  • Fetch Manipulation: FetchPush, FetchSlide, and FetchPickAndPlace.
  • Kitchen: A highly complex environment featuring 13 interactable objects (burners, oven, cabinets, kettle, etc.).
  • MuJoCo Locomotion: Ant, HalfCheetah, and a high-dimensional Humanoid.

Key Findings

  • Mastering Object Manipulation: CSD was the only method capable of learning object manipulation in the Fetch environments without human supervision. Baselines like LSD and DIAYN remained stuck on arm joint movements.
  • Emergent Task Sequencing: In the Kitchen environment, CSD discovered an average of 10 out of 13 possible tasks entirely on its own, compared to just 4 for the next best baseline. Observers noted a clear "aha moment" as the agent's focus shifted: it first learned to move its arm, then mastered opening a cabinet, and finally moved to the kettle, driven by the decaying rewards of mastered tasks.
  • Superior Downstream Performance: When these unsupervised skills were later fine-tuned for specific tasks (e.g., "move the block to coordinate X"), CSD-based agents reached the goal significantly faster and more reliably than those trained with prior methods.
  • Advanced Locomotion: In the Ant and HalfCheetah environments, CSD achieved much greater state coverage, discovering complex behaviors like flipping and rotating that other methods missed.

Limitations and Future Directions

While CSD represents a significant leap forward, it has a few limitations. First, it can fall into a "slow-moving trap"; because the underlying framework prefers skills with large state variations, CSD struggles to discover useful but "slow" skills, such as carefully balancing an object. Second, current experiments rely on state-based observations (coordinates). While the logic should theoretically apply to raw image data (pixels), this has yet to be demonstrated. Finally, the theoretical proof assumes a level of symmetry in the environment. In highly asymmetric environments with irreversible "one-way" transitions, the distance function may require further refinement.

Summary updated

BibTeX
@inproceedings{park2023controllability,
  author = {Seohong Park and Kimin Lee and Youngwoon Lee and Pieter Abbeel},
  title = {{Controllability-Aware Unsupervised Skill Discovery}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=Ct2N6RWZpQ},
}
Figure