Constrained Ensemble Exploration for Unsupervised Skill Discovery

Chenjia Bai, Rushuai Yang, Qiaosheng Zhang, Kang Xu, Yi Chen, Ting Xiao, Xuelong Li

TL;DR

CeSD is a new framework for unsupervised reinforcement learning that learns diverse, dynamic skills by partitioning the environment into "territories" and assigning an ensemble of agents to explore them. By combining state-space clustering with a "stay-in-your-lane" constraint, it achieves state-of-the-art performance on complex benchmarks, learning behaviors like somersaults and rolling without any human-provided rewards.

What Problem Does This Paper Address?

In Unsupervised Reinforcement Learning (URL), an agent is dropped into an environment without a specific task or reward function. The goal is to "pre-train" a library of useful behaviors (skills) that can be quickly adapted to solve future tasks.

Current methods usually fall into two camps, both with flaws:

  1. Empowerment-driven methods: These try to make skills as distinguishable as possible (maximizing Mutual Information). This often results in "static" skills—the agent learns to strike different "yoga poses" but doesn't actually move or explore much.
  2. Entropy-based exploration: These agents try to visit as many states as possible. While they cover the map well, the "skills" they learn are often indistinguishable from one another or just look like random noise.

The challenge is: How do we learn skills that are both diverse (covering the whole environment) and distinguishable (doing clearly different things)?

Methods

The authors propose CeSD (Constrained Ensemble exploration for Skill Discovery). The core idea is to divide and conquer the state space.

The CeSD framework architecture showing state clustering and ensemble TD learning.
  • State Prototypes & Clustering: The agent learns "prototypes" (representative anchors in the environment) using self-supervised clustering (specifically the Sinkhorn-Knopp algorithm). This effectively partitions the environment into different regions or "territories."
  • Ensemble of Skills: Instead of one giant neural network trying to learn everything, CeSD uses an ensemble of $Q$-functions. Each skill in the ensemble is assigned to a specific territory.
Iterative process of CeSD: initialization, exploration, clustering, and applying distribution constraints to regularize skills.
  • Partition Exploration: Each skill is rewarded for exploring its assigned territory. It uses a particle-based entropy estimator to find "new" states within its cluster.
  • State Distribution Constraint: To ensure skills don't just overlap, the authors introduce a "stay-in-your-lane" heuristic reward. If a skill starts visiting states that belong to another skill's territory, its reward decreases. This forces the ensemble to spread out and remain distinct.

Datasets

The researchers evaluated CeSD on two main setups:

  1. 2D Continuous Maze: Used primarily for visualizing how skills partition the space.
  2. Unsupervised Reinforcement Learning Benchmark (URLB): A rigorous suite of tasks involving complex physics simulations:
  3. Walker: A bipedal figure learning to stand, walk, and flip.
  4. Quadruped: A four-legged robot learning to crawl, jump, and roll.
  5. Jaco Arm: A 6-DOF robotic arm learning to reach and manipulate objects.

Key Insights and Ideas

  • Local Maximization = Global Coverage: The authors provide a theoretical proof showing that if each skill perfectly explores its own partition, the ensemble as a whole will maximize the entropy (coverage) of the entire environment.
  • Breaking Interference: By using an ensemble of independent value functions, the model avoids "catastrophic interference," where learning a new behavior for one skill accidentally overwrites what the agent learned for another.
  • Dynamic vs. Static: Unlike previous "empowerment" methods that result in static poses, CeSD's partition exploration forces agents to move. To maximize entropy within a cluster, the agent must travel to the boundaries of its territory, leading to much more dynamic behaviors.

Key Results

CeSD significantly outperformed existing baselines across the URLB benchmark:

  • Superior Generalization: On the Interquartile Mean (IQM) metric—a robust measure of performance—CeSD achieved 91.05%, compared to the previous state-of-the-art (CIC) at 75.18%.
  • Efficiency: It achieved the lowest "Optimality Gap" (15.47%), meaning its unsupervised pre-training got it closer to expert-level performance than any other method.
  • Qualitative "Aha" Moments: In the Quadruped environment, CeSD was the only method to emerge with a "rolling" skill (where the robot tucks its legs and rolls sideways) and complex somersaults, which proved highly useful for downstream locomotion tasks.

Limitations and Future Work

The primary limitation acknowledged by the authors is the discrete skill space. Currently, the number of skills is fixed and tied to the number of clusters. In the real world, behaviors exist on a continuum.

The authors suggest that future work could involve randomized value functions or hyper-networks to extend this "partitioned exploration" logic to an infinite, continuous space of skills. Additionally, while the clustering is stable, it still relies on a fixed number of prototypes chosen at the start of training. An adaptive clustering mechanism that grows as the agent discovers more of the world could be a powerful next step.

Summary updated

BibTeX
@inproceedings{bai2024constrained,
  author = {Chenjia Bai and Rushuai Yang and Qiaosheng Zhang and Kang Xu and Yi Chen and Ting Xiao and Xuelong Li},
  title = {{Constrained Ensemble Exploration for Unsupervised Skill Discovery}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=AOJCCFTlfJ},
}
Figure