A unified view of entropy-regularized Markov decision processes

Gergely Neu, Anders Jonsson, Vicenç GómezarXiv 2017

Abstract

This paper establishes a formal mathematical bridge between two historically distinct branches of reinforcement learning (RL): value-based dynamic programming and policy-based search. By framing entropy regularization as a convex optimization problem, the authors demonstrate that state-of-the-art algorithms, including Trust Region Policy Optimization (TRPO) and Asynchronous Advantage Actor-Critic (A3C), are specific instances of classic optimization techniques—namely Mirror Descent and Dual Averaging. This unification provides new convergence guarantees and theoretical clarity for the use of entropy in modern RL.

Introduction

In Reinforcement Learning, agents frequently encounter the "greedy trap," where they converge on sub-optimal strategies early in training and cease exploring the environment. To mitigate this, practitioners often employ entropy regularization, which provides a functional "bonus" for maintaining stochasticity in action selection. While empirically successful, the field has long been divided between value-based methods (rooted in Bellman equations) and policy-based methods (rooted in gradient search).

Before this work, the connection between these two paradigms was largely heuristic. There was no unified theory explaining why adding entropy to a policy gradient update should relate to the fundamental Bellman equations that govern optimal decision-making. This paper addresses this gap by utilizing the language of convex optimization to provide a rigorous framework for entropy-regularized MDPs.

Theoretical Framework

The authors bridge the gap between policy search and dynamic programming through a three-step optimization approach:

  1. The Primal Problem: The authors begin with the classic Linear Programming (LP) formulation of an MDP, which seeks the optimal distribution of state-action pairs. They modify this objective by adding a convex regularization term—specifically conditional entropy (the uncertainty of an action given a state).
  2. Lagrangian Duality: By applying duality theory to this regularized primal problem, they derive a set of nonlinear equations termed the Regularized Bellman Optimality Equations.
  3. Algorithmic Mapping: The core contribution lies in showing that iterative methods used to solve these dual equations correspond exactly to well-known RL algorithms:
  4. Mirror Descent (an incremental optimization step) with conditional entropy regularization is shown to be the theoretical backbone of TRPO.
  5. Dual Averaging (another optimization family) corresponds to the policy updates used in A3C.

Key Insights and Algorithmic Implications

The Role of Conditional Entropy

A critical finding of the paper is that the use of conditional entropy is what allows the mathematical alignment with Bellman equations. This specific form of regularization ensures that the optimization landscape remains well-behaved and consistent with the recursive nature of MDPs.

Convergence and Stability

The unification allows the authors to import convergence proofs from the optimization literature into RL:

  • TRPO as MDP-E: The authors demonstrate that the exact version of TRPO is mathematically identical to an older algorithm known as MDP-E. Because MDP-E has established convergence proofs, the authors can rigorously state that TRPO converges to the global optimal policy in stationary settings, rather than merely finding a local improvement.
  • The Risks of Heuristics in A3C: The analysis reveals that heuristic approximations often used in A3C—specifically ignoring how policy changes affect the underlying state distribution—can break the convexity of the objective. This suggests that while A3C is computationally efficient, it may technically fail to converge or become trapped in local optima where TRPO would succeed.

Empirical Validation

To validate these theoretical insights, the authors utilized a Custom Grid-World MDP. This environment was designed as a classic exploration test: an agent must navigate a 2D space containing walls (penalties) and rewards. Crucially, a small, easily accessible reward is placed near the start, while a much larger reward is placed at a distance.

The experiments highlighted a "Goldilocks zone" for the learning rate ($\eta$), which dictates the level of regularization:

  • High Regularization (Small $\eta$): The agent remains too random and fails to consolidate its learning into a coherent path.
  • Low Regularization (Large $\eta$): The agent greedily settles for the nearest small reward, failing to explore enough to find the distant diamond.
  • Optimal Regularization: The agent explores effectively, eventually discovering and committing to the optimal long-distance path.

In these tests, Dual Averaging variants (DA-RV) demonstrated slightly more consistent performance than Mirror Descent variants.

Conclusion and Future Work

This research provides a powerful unification of RL methodology, showing that Value Iteration, Policy Iteration, and Policy Gradient methods are simply different ways of traversing the same convex landscape. However, several challenges remain. The current theoretical guarantees are limited to the "tabular" setting (finite states and actions); extending these proofs to deep RL with neural network function approximation is a significant next step. Additionally, while the paper explains the optimization benefits of entropy, the statistical justification for why entropy aids exploration in entirely unknown environments remains an open area for research.

Summary updated

BibTeX
@misc{neu2017unified,
  author = {Gergely Neu and Anders Jonsson and Vicenç Gómez},
  title = {{A unified view of entropy-regularized Markov decision processes}},
  year = {2017},
  eprint = {1705.07798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.07798},
}
Figure