Abstract
Entropy regularization is used to get improved optimization performance in reinforcement learning tasks. A common form of regularization is to maximize policy entropy to avoid premature convergence and lead to more stochastic policies for exploration through action space. However, this does not ensure exploration in the state space. In this work, we instead consider the distribution of discounted weighting of states, and propose to maximize the entropy of a lower bound approximation to the weighting of a state, based on latent space state representation. We propose entropy regularization based on the marginal state distribution, to encourage the policy to have a more uniform distribution over the state space for exploration. Our approach based on marginal state distribution achieves superior state space coverage on complex gridworld domains, that translate into empirical gains in sparse reward 3D maze navigation and continuous control domains compared to entropy regularization with stochastic policies.
Introduction
Standard Reinforcement Learning (RL) often struggles with "sparse rewards"—scenarios where the agent receives no feedback until a complex task is completed. Traditional exploration relies on policy entropy regularization, which encourages stochasticity in action selection. However, high action entropy does not guarantee effective state-space exploration; an agent might select diverse actions yet remain trapped in a small region of the environment. This work addresses the need for explicit state-space exploration by maximizing the entropy of the marginal state distribution.
Methodology: MaxEntState
We introduce MaxEntState, a model-free approach to state entropy regularization. The core objective is to maximize the entropy of the discounted weighting of states, $H(d_\pi)$, alongside standard rewards.
To make this tractable in high-dimensional or continuous environments, we employ a variational approximation:
- Latent Representation: We train an encoder $q_\theta(z|s)$ to map states $s$ into a latent space $z$.
- Differentiable Regularizer: By maximizing the entropy of this latent distribution, we create a direct gradient signal for the policy parameters. Unlike reward-shaping methods that use novelty bonuses, this approach bakes exploration directly into the policy optimization process, leading to more stable and purposeful discovery of new states.
Experimental Results
The proposed method was evaluated across gridworlds, 3D navigation tasks (MiniWorld), and continuous control benchmarks (MuJoCo).
State Space Coverage
In complex gridworlds like the multi-room maze, standard policy entropy methods often fail to navigate through bottlenecks. In contrast, MaxEntState successfully explores the entire environment by actively seeking out under-visited states.
Performance Gains
Empirical results demonstrate that state entropy regularization significantly improves sample efficiency and final performance in sparse reward settings.
In 3D navigation tasks where standard baselines often fail to receive any reward, MaxEntState consistently discovers the goal and solves the task. Furthermore, in dense-reward MuJoCo tasks, the method improves stability and sample efficiency for algorithms like DDPG.
Conclusion and Future Work
MaxEntState offers a powerful alternative to standard policy entropy by focusing on where the agent goes rather than just what it does. While it excels in sparse reward environments, we observed that in dense reward tasks, excessive exploration can occasionally lead to sub-optimal convergence. Future research will explore balancing marginal and stationary distributions to further refine exploration behavior in diverse RL settings.
Summary updated