Curiosity & Entropy Driven Unsupervised RL in Multiple Environments

Shaurya Dewan, Anisha Jain, Zoe LaLena, Lifan YuarXiv 2024 · DOI

Abstract

Unsupervised Reinforcement Learning (RL) enables agents to acquire general-purpose skills without explicit reward signals, facilitating rapid adaptation to downstream tasks. However, exploring diverse environment classes simultaneously remains a significant challenge. This paper presents an enhanced framework building upon $\alpha$MEPOL, incorporating curiosity-driven exploration, dynamic risk-parameter adjustment, and relaxed optimization constraints. Our results demonstrate that combining intrinsic curiosity with state-visitation entropy significantly improves exploration robustness in complex, high-dimensional environments like the Ant-Stairs task, leading to superior zero-shot coverage and faster fine-tuning on specific goals.

Introduction

In traditional Reinforcement Learning, agents are typically driven by a sparse or dense external reward signal. In many real-world scenarios, these labels are unavailable or expensive to define. Unsupervised RL addresses this by allowing agents to "play" or "practice" in an environment to learn a policy that maximizes coverage or entropy. A core difficulty arises when the agent must generalize across a class of environments (e.g., varying terrains). Standard methods often fail to balance exploration between easy and difficult instances. We investigate modifications to the risk-aware $\alpha$MEPOL baseline to ensure robust exploration across multiple environment configurations.

Methods

We propose five key enhancements to improve the robustness of unsupervised exploration:

  1. Curiosity-Driven Exploration: Integrating the Intrinsic Curiosity Module (ICM), we add a reward based on the agent's inability to predict the next state. This encourages the agent to visit novel states where its forward model is uncertain.
  2. Dynamic $\alpha$ Scheduling: The $\alpha$ parameter in $\alpha$MEPOL defines the percentile of worst-performing trajectories to optimize. By decreasing $\alpha$ over time, we gradually shift the agent's focus from broad exploration to the most challenging trajectories.
  3. Relaxed KL Divergence Constraints: We increase the trust-region threshold (KL divergence) during pre-training. While strict thresholds ensure stability in supervised RL, we argue that reward-free exploration benefits from larger policy shifts to escape local optima.
  4. Stochastic Trajectory Sampling: Instead of a hard cutoff for the worst trajectories, we use a Softmax distribution based on trajectory entropy to sample training data, introducing beneficial noise.
  5. $\alpha$-Percentile Curiosity Sampling: This strategy prioritizes trajectories with the highest curiosity scores for policy updates.

Experimental Setup

The framework was evaluated on two environment classes:

  • Grid World with Slopes: A 2D four-room environment featuring either a North-facing or South-facing slope, requiring the agent to navigate hallways while overcoming directional resistance.
  • Ant Environment (Stairs): A more complex 3D quadruped robot task involving navigating stairs. This high-dimensional space tests the scalability of curiosity-driven methods.

Results and Discussion

Our experiments reveal that curiosity acts as a "force multiplier" for complexity. While it provided marginal gains in simple Grid Worlds, it was essential for the Ant environment, preventing the agent from stagnating in repetitive movement patterns.

Heatmap coverage in the Grid World environment showing state visitation across North and South slopes.

Quantitatively, the combination of curiosity, a decreasing $\alpha$ schedule, and a higher KL threshold yielded the highest state visitation entropy. As shown in the entropy plots, these modifications allow the agent to maintain high exploration rates throughout the training process.

Biased Full Entropy plots comparing (d) Decreasing alpha + Higher KL and (e) Curiosity + Higher KL, showing improved exploration stability.

Furthermore, pre-trained models demonstrated significant advantages during fine-tuning. In the Ant-Stairs environment, our proposed model reached eight increasingly difficult goals faster and with higher average returns compared to the baseline, which struggled to adapt to the stair-climbing tasks. The success of the higher KL divergence threshold suggests that the conservative nature of modern RL might hinder discovery during the reward-free "practice" phase.

Conclusion and Future Work

This work demonstrates that loosening the conservative constraints of traditional RL—specifically by increasing KL thresholds and dynamically adjusting risk tolerance—can significantly enhance unsupervised discovery. Future research will explore learning the KL threshold dynamically and incorporating learned inverse dynamics to further improve feature representation in visual environments.

Summary updated

BibTeX
@misc{dewan2024curiosity,
  author = {Shaurya Dewan and Anisha Jain and Zoe LaLena and Lifan Yu},
  title = {{Curiosity \& Entropy Driven Unsupervised RL in Multiple Environments}},
  year = {2024},
  eprint = {2401.04198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04198},
}
Figure