Why Policy Gradient Algorithms Work for Undiscounted Total-Reward MDPs
Jongmin Lee, Ernest K. Ryu
TL;DR
This work develops policy-gradient theory for undiscounted total-reward infinite-horizon MDPs by introducing a recurrent-transient decomposition and a transient visitation measure to overcome discontinuities that arise when gamma equals 1. It proves that state classifications are invariant on the interior policy set Pi_+ and derives a transient policy-gradient formula, enabling nonasymptotic convergence results for both projected policy gradient and natural policy gradient in the tabular setting. The results show sublinear convergence for projected policy gradient and either sublinear or linear convergence for natural policy gradient depending on step-size regimes, with experiments on Frozenlake and CliffWalk validating the theory and illustrating differences from pathological cases. Overall, the framework extends policy-gradient guarantees to undiscounted horizons, with implications for RL in large language model contexts and RLHF-like objectives.
Abstract
The classical policy gradient method is the theoretical and conceptual foundation of modern policy-based reinforcement learning (RL) algorithms. Most rigorous analyses of such methods, particularly those establishing convergence guarantees, assume a discount factor $γ< 1$. In contrast, however, a recent line of work on policy-based RL for large language models uses the undiscounted total-reward setting with $γ= 1$, rendering much of the existing theory inapplicable. In this paper, we provide analyses of the policy gradient method for undiscounted expected total-reward infinite-horizon MDPs based on two key insights: (i) the classification of the MDP states into recurrent and transient states is invariant over the set of policies that assign strictly positive probability to every action (as is typical in deep RL models employing a softmax output layer) and (ii) the classical state visitation measure (which may be ill-defined when $γ= 1$) can be replaced with a new object that we call the transient visitation measure.
