Efficient Skill Discovery via Regret-Aware Optimization

He Zhang, Ming Zhou, Shaopeng Zhai, Ying Sun, Hui Xiong

Introduction

Unsupervised Skill Discovery (USD) is a cornerstone of open-ended Reinforcement Learning (RL), enabling agents to acquire a diverse repertoire of behaviors without the need for human-engineered reward functions. Traditionally, USD methods maximize the mutual information between states and skills, assuming that skills should be sampled uniformly during training. However, this uniform sampling strategy is inherently inefficient. Agents often waste significant computational resources practicing skills they have already mastered or attempting to learn skills that are currently beyond their reach. This bottleneck is particularly pronounced in high-dimensional or "skill-asymmetric" environments, such as complex mazes where obstacles make certain directions fundamentally harder to explore than others.

This paper introduces Regret-aware Skill Discovery (RSD), a framework designed to intelligently select which skills an agent should practice. By focusing on the frontier of an agent's current capabilities, RSD maximizes learning efficiency and diversity, leading to superior performance in downstream tasks.

Methodology

RSD frames skill discovery as a min-max adversarial game between two primary components, drawing inspiration from auto-curriculum learning:

  1. The Agent Policy ($\pi_{\theta_1}$): This component learns to map states and latent skill vectors to specific actions. Its objective is to master the proposed skills, effectively minimizing "regret"—the gap between its current proficiency and its maximum potential proficiency.
  2. The Skill Generator ($\pi_{\theta_2}$): Operating within the latent skill space, the generator proposes new skill vectors. Its goal is to maximize regret by identifying the most challenging skills that the agent has not yet mastered.

Technical Innovations

To implement this adversarial framework effectively, the authors introduce several key technical contributions:

  • Regret Estimation via TD-Error: Because true regret is unobservable without knowing the optimal policy, RSD uses $n$-step Temporal Difference (TD) error as a proxy. This metric tracks how much a skill's policy strength is improving, signaling where the agent's learning potential is highest.
  • Bounded Temporal Representation: To ensure skills remain distinguishable, states are projected into a bounded representation space using a $tanh(\cdot)$ function. Unlike previous methods that normalize skill vectors to unit length, RSD allows skill vectors to retain magnitude. This allows the agent to differentiate between moving toward an open space versus moving into a physical barrier.
  • Population of Skill Generators: To prevent catastrophic forgetting—where an agent loses old skills while focusing on new ones—RSD maintains an updatable population of generators modeled as a Gaussian Mixture Model (GMM). This ensures a diverse and non-redundant curriculum.
  • Proximity Regularization: To stabilize training, a regularizer ensures that the generator does not propose impossible skills. It forces new skills to remain near the frontier of states the agent has previously encountered.

Experimental Evaluation

The authors evaluated RSD across several continuous control and navigation benchmarks with varying complexity:

  • dm_control (Ant): A skill-symmetric open map used for baseline comparison.
  • D4RL (Maze2d, Antmaze): Complex, asymmetric mazes (Medium and Large) that test the agent's ability to navigate around obstacles.
  • Kitchen: A high-dimensional, pixel-based robotic manipulation environment requiring the completion of multiple interacting tasks.

Key Results

  • Enhanced State Coverage: RSD significantly outperformed existing baselines—including DIAYN, DADS, LSD, and METRA—in state coverage across all maze environments. This confirms that the regret-aware curriculum successfully drives the agent to explore more diverse regions of the environment.
  • Zero-Shot Success: In zero-shot goal-reaching tasks, RSD demonstrated remarkable transferability. In the challenging Antmaze-large environment, RSD achieved a 16% improvement in success rate over the strongest baseline (METRA).
  • Scalability to Manipulation: In the Kitchen environment (skill dimension = 24), RSD successfully completed 5.08 ± 0.45 tasks after 400k steps, compared to 3.94 ± 0.36 tasks for METRA, showcasing its efficacy in complex, high-dimensional domains.

Discussion and Future Work

While RSD offers a significant leap in efficiency, the authors note that using TD-error as a proxy for regret introduces inherent bias, particularly for entirely unseen skills. This bias can occasionally lead the generator to propose overly ambitious skills, necessitating the use of proximity regularization to maintain stability.

Future research directions include integrating the RSD framework with hierarchical RL architectures. Chaining the discovered skills together could allow agents to solve long-horizon, complex downstream tasks that require navigating highly asymmetric skill requirements more effectively.

Summary updated

BibTeX
@inproceedings{zhang2025efficient,
  author = {He Zhang and Ming Zhou and Shaopeng Zhai and Ying Sun and Hui Xiong},
  title = {{Efficient Skill Discovery via Regret-Aware Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=4qMJ8Ignmp},
}
Figure