Abstract: Unsupervised reinforcement learning aims to train agents to learn a handful of policies or skills in environments without external reward. These pre-trained policies can accelerate learning when endowed with external reward, and can also be used as primitive options in hierarchical reinforcement learning. Conventional approaches of unsupervised skill discovery feed a latent variable to the agent and shed its empowerment on agent’s behavior by mutual information (MI) maximization. However, the policies learned by MI-based methods cannot sufficiently explore the state space, despite they can be successfully identified from each other. Therefore we propose a new framework Wasserstein unsupervised reinforcement learning (WURL) where we directly maximize the distance of state distributions induced by different policies. Additionally, we overcome difficulties in simultaneously training N(N>2) policies, and amortizing the overall reward to each step. Experiments show policies learned by our approach outperform MI-based methods on the metric of Wasserstein distance while keeping high discriminability. Furthermore, the agents trained by WURL can sufficiently explore the state space in mazes and MuJoCo tasks and the pre-trained policies can be applied to downstream tasks by hierarchical learning.
Introduction
In Unsupervised Reinforcement Learning (URL), agents must learn useful behaviors (skills) without any external reward signal. Traditionally, this has been achieved through Mutual Information (MI) maximization (e.g., DIAYN), where a discriminator attempts to identify a skill based on the agent's state. While this ensures skills are distinguishable, it does not guarantee exploration. Two policies can be perfectly identifiable while remaining confined to a small, overlapping region of the state space.
Researchers from Tsinghua University have introduced Wasserstein Unsupervised Reinforcement Learning (WURL) to address this "diversity ceiling." By moving beyond simple distinguishability and focusing on the geometric distance between state distributions, WURL incentivizes agents to explore the environment more extensively.
Methodology: From Information to Geometry
The core innovation of WURL is replacing Mutual Information with Wasserstein Distance (Earth Mover’s Distance). Unlike metrics like Jensen-Shannon Divergence (JSD) used in MI-based methods, Wasserstein distance provides a meaningful gradient even when distributions are entirely disjoint.
As illustrated above, JSD saturates at $\log 2$ once distributions no longer overlap, providing no further incentive for the agent to move further away. In contrast, the Wasserstein distance $W(q_0, q_1)$ continues to grow linearly with the distance between distributions, forcing agents to reach unexplored territory.
Implementation Strategies
To make Wasserstein distance practical for RL, the authors introduced several techniques:
- Amortized Projected Wasserstein Distance (APWD): Decomposes global distribution distances into per-step credits, providing the dense reward signals necessary for stable RL training.
- Dual and Primal Forms: The framework utilizes Test Functions (TF) in the dual form and Projected Wasserstein Distance (PWD) in the primal form to handle high-dimensional state spaces efficiently.
- Incremental Learning: WURL allows for training policies sequentially, where each new policy seeks to maximize its distance from the nearest existing neighbor, effectively "filling up" the state space.
Experimental Results
The authors evaluated WURL across several benchmarks, including FreeRun (2D particle), MuJoCo Locomotion (Ant, HalfCheetah, Humanoid), and TreeMaze.
Exploration and Discriminability
WURL agents covered significantly more area than MI-based baselines like DIAYN or DADS. Interestingly, although WURL does not explicitly maximize distinguishability, its policies achieved higher discriminator success rates because they occupied distinct, non-overlapping regions of the state space.
Downstream Performance
When used as primitives in hierarchical RL, WURL skills proved superior for navigation tasks. In the Ant navigation benchmark, WURL achieved a perfect reward of 100.00, significantly outperforming DIAYN-I, which only reached 35.00.
Conclusion and Future Work
WURL demonstrates that geometry-aware metrics are more effective for skill discovery than purely information-theoretic ones. Future research will focus on refining cost function selection for complex environments and extending the framework to handle raw visual observations, where calculating Wasserstein distance remains computationally challenging.
Summary updated