Why Policy Gradient Algorithms Work for Undiscounted Total-Reward MDPs

Jongmin Lee, Ernest K. Ryu · DOI

Abstract

While most reinforcement learning (RL) theory relies on a discount factor ($\gamma < 1$) to ensure mathematical stability, modern applications such as training Large Language Models (LLMs) via Reinforcement Learning from Human Feedback (RLHF) often operate in the undiscounted total-reward regime ($\gamma = 1$). This paper establishes the first rigorous theoretical foundation for policy gradient methods in this setting. By introducing a "transient visitation measure" and focusing on the policy interior, the authors resolve issues of discontinuity and infinite measures. They provide convergence guarantees for Projected Policy Gradient (PPG) and Natural Policy Gradient (NPG), showing that adaptive NPG achieves linear convergence, matching discounted settings.

Introduction

In classical RL theory, the discount factor $\gamma$ acts as a mathematical safety net, ensuring that the value function remains finite and smooth. However, in many real-world tasks, rewards are summed without discounting. This "undiscounted total-reward" setting is notoriously difficult because the value function can become discontinuous at the boundaries of the policy space, and standard state visitation measures can become infinite. This work bridges the gap between theory and practice by providing convergence proofs for policy gradient methods in undiscounted MDPs.

Theoretical Framework

The authors utilize Recurrent-Transient Theory from Markov chain analysis to address the mathematical pathologies of undiscounted MDPs. Their approach rests on two key pillars:

  • Transient Visitation Measure: In a well-behaved undiscounted MDP, rewards at recurrent states (states visited infinitely often) must be zero to keep the total reward finite. Thus, optimization only needs to consider transient states. The authors define a "transient visitation measure" that remains finite even when $\gamma = 1$.
  • Policy Interior Restriction ($\Pi_+$): Pathologies like discontinuities typically occur when action probabilities are exactly zero. By restricting the search to policies that assign a non-zero probability to every action—a common practice in deep RL using softmax layers—the value function remains smooth and differentiable.

Algorithms and Convergence

The paper analyzes two primary algorithms in the tabular setting:

  1. Projected Policy Gradient (PPG): Employs direct parameterization and is proven to converge at a sublinear rate of $O(1/k)$.
  2. Natural Policy Gradient (NPG): Utilizes softmax parameterization and the Fisher Information Matrix. With a constant step size, NPG converges sublinearly. Remarkably, with an adaptive step size, NPG achieves linear convergence ($O(e^{-k})$), mirroring the best-known rates for discounted MDPs.

Experimental Evaluation

The theory was validated on several environments, including Frozenlake, Cliffwalk, and a custom "Pathological MDP."

Figure 1: The Pathological MDP designed to demonstrate value function discontinuities at the policy boundary.

The Pathological MDP (Figure 1) illustrates how a tiny change in policy can lead an agent into an infinite loop, causing catastrophic changes in total reward. However, the authors demonstrate that within the "safe" interior of the policy space, standard optimization methods remain effective.

Key Results

Empirical results across these environments confirm the theoretical predictions. Adaptive NPG significantly outperforms other variants, reaching optimal policies much faster than constant-step variants.

Figure 3: Convergence performance of PPG and NPG variants. Adaptive NPG (solid blue line) demonstrates superior linear convergence rates across different iterations.

As shown in Figure 3, NPG with an adaptive step size reaches zero error much faster than PPG or constant-step NPG, validating the linear convergence proof. For the stochastic setting, the authors also derived a sample complexity of $\tilde{O}(1/\epsilon^2)$ for adaptive NPG to reach an $\epsilon$-optimal policy.

Conclusion and Future Work

This work provides a solid theoretical footing for undiscounted RL, explaining why policy gradient methods work in practice for LLM training. While the current focus is on the tabular setting, future research will aim to extend these guarantees to function approximation (neural networks) and relax the requirement for a generative model during sample complexity analysis.

Summary updated

BibTeX
@misc{lee2025why,
  author = {Jongmin Lee and Ernest K. Ryu},
  title = {{Why Policy Gradient Algorithms Work for Undiscounted Total-Reward MDPs}},
  year = {2025},
  eprint = {2510.18340},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.18340},
}
Figure