Unsupervised reinforcement learning (RL) has emerged as a powerful paradigm for pre-training agents without explicit reward signals. By maximizing state visitation entropy (SVE), agents learn to explore their surroundings comprehensively, providing a robust initialization for downstream tasks. However, most existing methods assume a single, static environment during pre-training. This research addresses the limitation of this "single environment" assumption by introducing a framework for unsupervised RL across a whole class of environments with varying dynamics.
The Two-Phase Framework
The proposed approach leverages environment diversity through a two-phase pipeline. In Phase 1, the agent undergoes unsupervised pre-training across a distribution of environments $\mathcal{M} \sim p_{\mathcal{M}}$. The goal is to learn a single policy $\pi^*_{\mathcal{E}}$ that explores effectively regardless of the specific environment instance. In Phase 2, this pre-trained policy serves as an initialization for supervised fine-tuning on a specific task with a reward signal $R$.
Methodology: $\alpha$MEPOL
A significant challenge in multi-environment pre-training is the "average trap." Optimizing for expected entropy often leads to policies that perform well in "easy" environments but fail in "adverse" ones where exploration is difficult. To overcome this, the authors introduce $\alpha$MEPOL, which utilizes a risk-averse objective.
Instead of maximizing expected entropy, $\alpha$MEPOL maximizes the Conditional Value-at-Risk (CVaR) of the state visitation entropy at a confidence level $\alpha$. This objective focuses the optimization on the $\alpha$-percentile of the worst-performing trajectories. For instance, with $\alpha=0.2$, the algorithm prioritizes improving exploration in the bottom 20% of environment-trajectory pairs. To handle high-dimensional state spaces, the algorithm employs a non-parametric $k$-Nearest Neighbors ($k$-NN) entropy estimator.
Experimental Results and Robustness
The effectiveness of $\alpha$MEPOL was evaluated across several domains, including a GridWorld with varying slopes, high-dimensional Ant environments (e.g., "Stairs Up" vs. "Stairs Down"), and partially observable MiniGrid environments.
In the GridWorld with Slope domain, standard Maximum Entropy RL (MEPOL, equivalent to $\alpha=1.0$) exhibited a "heavy tail" of low-entropy outcomes, indicating failure in adverse configurations. In contrast, $\alpha$MEPOL maintained high entropy across the entire distribution, demonstrating its robustness.
The critical advantage of this approach is realized during fine-tuning. In the challenging "Stairs Up" Ant environment, agents initialized with $\alpha$MEPOL successfully discovered sparse rewards, whereas those pre-trained with standard methods or initialized randomly failed. This suggests that risk-averse pre-training prepares agents for the most difficult scenarios they might encounter in the real world.
Conclusion
By shifting the focus from average performance to worst-case robustness, $\alpha$MEPOL enables effective unsupervised pre-training across diverse environment classes. This approach ensures that agents are not just "fair-weather" explorers but are capable of navigating adverse conditions, leading to significantly faster adaptation in complex downstream tasks.
Summary updated