NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Entropy Regularization with Discounted Future State Distribution in Policy Gradient Methods

Riashat Islam, Raihan Seraj, Pierre-Luc Bacon, Doina PrecuparXiv 2019

Abstract

The policy gradient theorem is defined based on an objective with respect to the initial distribution over states. In the discounted case, this results in policies that are optimal for one distribution over initial states, but may not be uniformly optimal for others. Furthermore, to obtain unbiased gradient estimates, the starting point of the policy gradient estimator requires sampling states from a normalized discounted weighting of states. However, the difficulty of estimating this distribution is well-known. In this work, we propose exploration in policy gradient methods based on maximizing the entropy of the discounted future state distribution. We provide a practically feasible algorithm to estimate this distribution and demonstrate that entropy regularization with the discounted state distribution increases state space coverage and accelerates learning across complex tasks.

Introduction

Policy gradient methods are a cornerstone of modern reinforcement learning, yet they often struggle with high sample complexity and local optima. A common remedy is policy entropy regularization, which encourages action-level diversity. However, action-level randomness does not guarantee exploration of the state space, especially in environments with sparse rewards or complex bottlenecks. This paper argues for a shift from action-level entropy to state-level entropy, specifically regularizing the objective with the entropy of the discounted future state distribution ($d_{\pi_\theta}$).

Methodology

The core contribution is the regularization of the policy objective using the entropy of the discounted future state distribution. This distribution represents the long-term likelihood of an agent visiting specific states under a policy $\pi_\theta$.

Neural Density Estimation

Since the true state distribution is typically unknown, the authors employ a neural density estimator—specifically a Variational Autoencoder (VAE)—to track state visitation. By making this estimator a function of the policy parameters, the agent can compute gradients that directly encourage movement toward under-explored regions.

Three Time-Scale Algorithm

To maintain stability, the approach utilizes a three time-scale framework:

  1. Fastest Scale: The density estimator learns the current state distribution.
  2. Intermediate Scale: The critic estimates the value function.
  3. Slowest Scale: The actor (policy) updates its parameters based on the stable estimates from the faster scales.

Importance Sampling Correction

To practically estimate the discounted distribution from standard undiscounted trajectories, the authors introduce a weighted importance sampling correction. This allows the algorithm to be used with standard RL experience buffers without requiring specialized sampling procedures.

Experimental Evaluation

The proposed method was evaluated on several benchmarks, ranging from toy MDPs to complex continuous control tasks.

Performance in Sparse Reward Tasks

In environments like FrozenLake-v0, where rewards are sparse and exploration is critical, the discounted state entropy regularization significantly outperformed standard baselines. As shown in the results, the "Discounted StateEnt" approach achieves higher cumulative returns and faster convergence than both the baseline and unnormalized state entropy methods.

Cumulative returns on FrozenLake-v0 comparing discounted state entropy regularization against baselines.

Robustness in Grid Worlds

The method also demonstrated superior performance in WindyGridWorld-v0. By explicitly seeking to maximize the entropy of visited states, the agent avoids getting stuck in local sub-optimal regions, leading to more efficient discovery of the goal compared to standard policy entropy methods.

Learning curves on WindyGridWorld-v0 showing the advantage of state entropy regularization in reaching optimal returns.

Conclusion

This work highlights that maximizing action diversity is often a poor proxy for exploring complex environments. By regularizing policy gradients with the entropy of the discounted future state distribution, agents can achieve maximal state-space coverage. The proposed three time-scale algorithm provides a theoretically grounded and practically effective way to implement this exploration strategy, leading to substantial performance gains in both discrete and continuous reinforcement learning tasks.

Summary updated

BibTeX
@misc{islam2019entropy,
  author = {Riashat Islam and Raihan Seraj and Pierre-Luc Bacon and Doina Precup},
  title = {{Entropy Regularization with Discounted Future State Distribution in Policy Gradient Methods}},
  year = {2019},
  eprint = {1912.05104},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.05104},
}
Figure