The impact of intrinsic rewards on exploration in Reinforcement Learning

Aya Kayal, Eduardo Pignatelli, Laura Toni · DOI

Introduction

In Reinforcement Learning (RL), "sparse reward" environments present a significant challenge: an agent receives no feedback until it successfully completes a task, making the discovery of the goal akin to finding a needle in a haystack. To overcome this, researchers utilize intrinsic rewards—a form of artificial curiosity that motivates an agent to explore its environment even in the absence of external signals.

While various intrinsic reward mechanisms exist, they are often categorized by their underlying mechanics (e.g., novelty vs. prediction error). This paper addresses a critical gap in the literature by investigating how the level of diversity targeted by these rewards—ranging from simple state visitation to complex skill discovery—affects exploration patterns and sample efficiency across different observation complexities.

A Taxonomy of Diversity Levels

The authors propose a taxonomy of four diversity levels, selecting a representative algorithm for each to evaluate within a Proximal Policy Optimization (PPO) framework:

  1. State Level (State Count): Rewards the agent for visiting infrequently seen states. In high-dimensional spaces, the authors employ SimHash to group similar states into buckets.
  2. State + Dynamics Level (Intrinsic Curiosity Module - ICM): Rewards the agent based on prediction error. The agent is motivated to seek out transitions where it cannot accurately predict the outcome of its own actions.
  3. Policy Level (Maximum Entropy RL): Encourages the agent to maintain a high-entropy action distribution, preventing premature convergence by keeping the policy as random as possible.
  4. Skill Level (Diversity Is All You Need - DIAYN): A competence-based approach where the agent learns a set of distinct "skills" (latent-conditioned policies) that a discriminator can easily distinguish from one another.

Experimental Setup

The study utilizes the MiniGrid environment, a procedurally generated 2D grid world. The agents were tested on four layouts: Empty (control), DoorKey (requires a sequence of finding a key and unlocking a door), FourRooms (a sparse-reward maze), and RedBlueDoors (requires cognitive flexibility).

Crucially, the researchers evaluated two distinct observation types: Grid Encodings (low-dimensional, symbolic representations) and Partial RGB Images (high-dimensional, pixel-based observations). This allowed the team to observe how the complexity of the input data impacts the effectiveness of different exploration strategies.

Key Insights and Results

The Fragility of State Counting

In low-dimensional, symbolic environments, State Count is the "gold standard." In the DoorKey 16x16 task, it was often the only method to solve the environment consistently, converging significantly faster than ICM or Max Entropy. However, this success is fragile. When transitioned to RGB observations, the hashing mechanism (SimHash) failed to capture meaningful features, causing exploration to collapse. In FourRooms RGB, State Count's performance degraded so sharply that the baseline PPO agent discovered rewards faster.

The Robustness of Randomness

While Maximum Entropy (Policy Level) is rarely the top performer in simple tasks, it proved to be the most robust across different observation types. It is less susceptible to the "representation learning trap" that plagues count-based and curiosity-based methods when dealing with raw pixels. This suggests that maintaining a high-entropy policy is a more reliable fallback when state abstractions are difficult to learn.

The "Curse of Diversity" in Skill Learning

Perhaps the most surprising finding is that DIAYN (Skill Level) performed the worst for pure exploration. In almost all scenarios, DIAYN required 2-10x more frames to discover the first reward compared to State Count or ICM. The authors argue that DIAYN prioritizes discriminability (making skills look different) over visitation (reaching new areas). Consequently, the agent often gets "stuck" in easy-to-distinguish corners of the map rather than pushing into the unknown.

Conclusion

The research demonstrates that the effectiveness of intrinsic rewards is deeply tied to the representation of the environment. While state-counting is highly efficient in symbolic spaces, its reliance on effective state abstraction makes it unreliable in pixel-based settings. Furthermore, the failure of skill-based methods like DIAYN suggests that diversity in behavior does not automatically translate to diversity in state coverage.

Future work must focus on developing better representation learning techniques to allow count-based methods to scale to high-dimensional spaces and finding ways to align skill discovery more closely with the objective of uniform state visitation.

Summary updated

BibTeX
@article{kayal2025impact,
  author = {Aya Kayal and Eduardo Pignatelli and Laura Toni},
  title = {{The impact of intrinsic rewards on exploration in Reinforcement Learning}},
  journal = {Neural Computing and Applications},
  year = {2025},
  doi = {10.1007/s00521-025-11340-0},
}
Figure